functions-samples
functions-samples copied to clipboard
[BUG] in vision-annotate-images: Unexpected token o in JSON at position 1
Which sample has a bug?
vision-annotate-images
How to reproduce the issue
Deploy the function as documented, then call it from Swift, it returns the following error:
Debug output
Optional(__C.FIRFunctionsErrorCode)
Unexpected token o in JSON at position 1
Errors in the console logs
Screenshots
Expected behavior
The function should return a json string containing the text boxes.
Actual behavior
It crashed and returned nil.
The problem is still here.
Problem still in here. I think is something about the way JSON is parsed, but its almost 9 months and no response
This helped me: https://www.buzzphp.com/posts/cloud-function-annotateimage-returns-unexpected-token-o-in-json-at-position-1
Hi. I also have to change the default function on the server. I made two new functions one for a image in base64 format and another when I use the URI
Thanks for the help. Your solution is the one that I needed. Too much time for Google/Firebase to help