SyntaxError: Unexpected end of JSON input
SyntaxError: Unexpected end of JSON input
at Object.parse (native)
at got.then.then.response (/Users/shawnmiller/GitHub/mehdown/node_modules/captionbot/index.js:36:26)
at process._tickCallback (internal/process/next_tick.js:103:7)
Looks like captionbot is returning an empty response. Any ideas?
Can confirm; getting
(node:9594) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): SyntaxError: Unexpected end of JSON input
in my console. Doesn't look like CB is liking the input.
Same problem here. Did you guys find the solution
It looks like they are returning an empty string instead of a JSON object. Maybe Microsoft has changed the API in some way?
I'm happy to accept a pull request that fixes the problem.
Yeah, same problem here... I would like to use this for my thesis. Any solution?
I've crated a pull request (#3), should work with that.
I would really appreciate it, if you could merge the pull request, because i want to use this in my project :D
@dylang pr(#3) doesn't seem to have any issues (although I don't personally like the hardcoded array access)