Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
MultiJson::DecodeError on 401 response #80
Occasionally, my app seems to be receiving unexpected 401 error responses from the LinkedIn API, confusing the error-handling in the linked in gem. More specifically, the API appears to be returning an HTML payload, but the gem expects JSON.
Here's the corresponding backtrace:
I think the gem needs to be more resilient in the face of this type of error.