Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON: #86

Open
aloha-zzz opened this issue Sep 6, 2023 · 1 comment

Comments

@aloha-zzz
Copy link

I use this sdk to create my workflow. It works in executable file. but when I use it on alfred, alfred Debugger output Error
JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON:,How to debug it ?

@dineshgowda24
Copy link

It happens if you are directly using fmt to print something for debugging in your code. Since the buffer is sent to STDOUT, Alfred reads it and raises an error since it's not JSON.

Use log.Println and it should fix it,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants