Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request payload is different from one sent, due to json parsing #78

Closed
CRogers opened this issue Aug 18, 2021 · 3 comments
Closed

Request payload is different from one sent, due to json parsing #78

CRogers opened this issue Aug 18, 2021 · 3 comments

Comments

@CRogers
Copy link

CRogers commented Aug 18, 2021

When you hit smee with some json data, for example:

{
   "a": 2
}

smee parses the json and then reformats it when you get it out of the request:

data: {"host":"my-local-smee",...,"body":{"a":2},...}

This is unfortunate as you don't get the exact same data back. In my case, I'm also getting a shared-secret HMAC signature along with the payload, which no longer matches the expected signature. This means that I can't test my payload signature checking code is working with the external service and have to disable it, which is sad.

@CRogers
Copy link
Author

CRogers commented Aug 18, 2021

I guess #5 is also an effect of this (content-length changes due to the payload being changed).

@mosheco
Copy link

mosheco commented Aug 28, 2022

When can a new Smee release , fixing this issue, be expected ?

@wolfy1339
Copy link
Contributor

wolfy1339 commented Jul 23, 2024

I don't have control of the infrastructure running the website code.
I merged #55 which allows you to have the raw body of a request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants