firebase / firebase/functions-samples

[BUG] in vision-annotate-images: Unexpected token o in JSON at position 1

Open
#850 4 comments 1 reaction 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
12.2k
Forks
3.8k
Avg merge
3d 23h
Merged PRs (30d)
1

Description

### 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](https://console.firebase.google.com/project/_/functions/logs?search=&severity=DEBUG)**

**Screenshots**

### Expected behavior

The function should return a json string containing the text boxes.

### Actual behavior

It crashed and returned nil.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.