asanawarrior icon indicating copy to clipboard operation
asanawarrior copied to clipboard

Error: invalid character '<' looking for beginning of value

Open adishap opened this issue 9 years ago • 8 comments

AW throwed an error 2016/09/26 22:54:20 cache.update: projects: Unmarshal: invalid character '<' looking for beginning of value and terminated.

adishap avatar Sep 28 '16 11:09 adishap

Any ideas about how to reproduce this?

manishrjain avatar Oct 01 '16 09:10 manishrjain

No, even I tried to reproduce it but was not successful.

adishap avatar Oct 01 '16 10:10 adishap

I got the error similar to the above one Starting sync at 2016-09-28 14:16:32.331007892 +0000 UTC 2016/09/28 14:16:57 getTasks for project: Development: Unmarshal: invalid character 'B' looking for beginning of value

@manishrjain Can you increase logs, it will be easier to debug.

adishap avatar Oct 03 '16 09:10 adishap

What's the version of AW that you're running?

manishrjain avatar Oct 07 '16 07:10 manishrjain

I cloned AW's github repo and but the latest commit matches the version 1.0.

adishap avatar Oct 07 '16 07:10 adishap

@manishrjain Thanks for increasing logs. I again got this error.(Attached the error log)

Starting sync at 2016-10-15 01:01:06.986319836 +0000 UTC
2016/10/15 01:02:23 invalid character 'S' after top-level value
Unmarshal: "{\"errors\":[{\"message\":\"Oops! An unexpected error occurred while processing this request. The input may have contained something the server did not know how to handle. For more help, please contact [email protected] and include the error phrase from this response.\",\"phrase\":\"10 young bobcats jostle slowly\"}]}SERIOUS: Exception reached the event loop. Don't just fix the immediate cause, fix the reason it wasn't caught too please!\n"
github.com/manishrjain/asanawarrior/asana.runGetter
        /home/ubuntu/work/src/github.com/manishrjain/asanawarrior/asana/asana.go:59
github.com/manishrjain/asanawarrior/asana.getTasks
        /home/ubuntu/work/src/github.com/manishrjain/asanawarrior/asana/asana.go:146
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:2086
getTasks for project: Technical
github.com/manishrjain/asanawarrior/asana.getTasks
        /home/ubuntu/work/src/github.com/manishrjain/asanawarrior/asana/asana.go:147
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:2086

adishap avatar Oct 18 '16 07:10 adishap

Error in asana warrior

2016/11/05 07:36:51 invalid character 'B' looking for beginning of value
Unmarshal: "Backend exited unexpectedly"
github.com/manishrjain/asanawarrior/asana.runGetter
        /home/ubuntu/work/src/github.com/manishrjain/asanawarrior/asana/asana.go:59
github.com/manishrjain/asanawarrior/asana.getTasks
        /home/ubuntu/work/src/github.com/manishrjain/asanawarrior/asana/asana.go:146
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:2086
getTasks for project: Github
github.com/manishrjain/asanawarrior/asana.getTasks
        /home/ubuntu/work/src/github.com/manishrjain/asanawarrior/asana/asana.go:147
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:2086

Created a PR So AW will not stop execution when asana api throws error when tasks are being fetched.

adishap avatar Nov 07 '16 06:11 adishap

@manishrjain I think I can also close this issue. It is also fixed.

adishap avatar Nov 20 '16 11:11 adishap