Skip to content
This repository was archived by the owner on Jul 20, 2020. It is now read-only.

Conversation

@Salakar
Copy link

@Salakar Salakar commented Aug 5, 2019

This example wasn't working out the box for addresses or names with special characters, all requests were coming back as INVALID unless they had no special characters.

This issue relates to converting to JSON via express body-parser and then trying to convert back to a raw string via querystring.

As you can now access the raw body in GCP Functions (and Firebase) via rawBody (docs), I've swapped out querystring for using rawBody instead.

Tested on my project and now works correctly without INVALID messages.

@Salakar Salakar changed the title [gcp] Use rawBody on IPN sample (fixes INVALID responses) [GCP] Use rawBody on IPN sample (fixes INVALID responses) Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant