Hello,
I am building an app that receives a webhook (for instance from Shopify, everytime an order is paid). To validate the call, I must generate a HMAC from the request’s body.
My problem is that the “request’s raw body” in bubble is not the same as the JSON in the body of the original request, so my HMAC is never correct.
For instance, in bubble for the raw body I will have :
{“company”: “RBN & CI”,
“admin_graphql_api_id”: “gid://shopify/Order/11111”}
But the original raw body is :
{“company”: “RBN \u0026 CI”,
“admin_graphql_api_id”: “gid://shopify/Order/11111”}
Is there an efficient way to “revert” the encoding and get the original json from the one transformed by bubble ? I would like to avoid “find & replace” all the possible special characters…
Thanks for the help !
EDIT : apparently it happens here too, since I’m trying to write
gid: \ / \ / shopify \ / Order \ / 11111 (without the spaces)
and it shows gid://shopify/Order/11111