You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Second builder can run.
But when run first builder, i will get:
terminate called after throwing an instance of 'std::invalid_argument'
what(): parse error - unexpected end of input
[1] 2056 abort (core dumped) ./bin/xkcd_bot
Activity
nlohmann commentedon Apr 19, 2017
Can you make sure that the HTTP client is following redirections? I get the following output with httpie;
As you can see, the content-length is 0 bytes, so the error message "unexpected end of input" would make sense ;-)
The redirect URL (https://xkcd.com/614/info.0.json) as well as the second URL return proper JSON with a 200 status code.
alienzj commentedon Apr 20, 2017
OK, I know, thank you very much!
nlohmann commentedon Apr 20, 2017
Was that the issue?
alienzj commentedon Apr 20, 2017
Nothing~