deanishe/awgo

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

aloha-zzz opened this issue · 1 comments

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 ?

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,