You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
📚 Documentation: Manual execution JSON example in Cloud Functions is incorrect #6247
Currently, in the Cloud Functions JSON example, the example has no quotes
As you can see in the image above, the JSON example doesn't have any quotes around the property name.
When I run my function and pass JSON without quotes around property names, I get an error:
But when I run the function with quotes, like so:
The function executed successfully.
So the JSON example is incorrect and it should show quotes around property names
I'm not sure if this is fixed in the newer versions or if newer versions support JSON without quotes, but in the current version that Cloud is using, I get an error.
👀 Have you spent some time to check if this issue has been raised before?
@ItzNotABug Ok thanks. For clarity, does the fix change the example to have quotes, or does the fix allow you to pass unquoted properties in the payload?
Activity
ItzNotABug commentedon Sep 15, 2023
This was fixed on later versions, I believe (can confirm for
1.3.8).Cloud is soon going to be updated to
1.4xwhich will anyway contain the fix.JorensM commentedon Sep 16, 2023
@ItzNotABug Ok thanks. For clarity, does the fix change the example to have quotes, or does the fix allow you to pass unquoted properties in the payload?
ItzNotABug commentedon Sep 16, 2023
@JorensM
The example is fixed.
You should always use the standard JSON format with double quotes for sending payloads.
JorensM commentedon Sep 16, 2023
@ItzNotABug Ok, thanks. I will close this now.