Could function payload lenght #188
-
For some reason my payload is cut off when sending a cloud function call request. Here is the code:
Here is what I see in the serial monitor
Can someone please help me too see what is wrong here? I spend a lot of time reaching the reason WHY the payload is cut. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
As the server returns information, your payload is invalid instead of cut-off string problem. The payload should be a string not JSON representation string. JSON representation or its serialized string is not allowed. |
Beta Was this translation helpful? Give feedback.
-
@mobizt Thanks for your response! I do not understand how "JSON representation or its serialized string is not allowed." Here is why:
I am using a 1st gen HTTP callable function
So:
Should I be doing something differently? Any response will be much appreciated! |
Beta Was this translation helpful? Give feedback.
-
I did not see any issue when sending string with commas. |
Beta Was this translation helpful? Give feedback.
As the server returns information, your payload is invalid instead of cut-off string problem.
The payload should be a string not JSON representation string.
JSON representation or its serialized string is not allowed.
https://cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions/call#request-body