When an error is thrown from box.com, it is sometimes not formatted according to the API documentation (most likely html/xml output). This commit handles an invalid JSON response and returns the body contents in the error message. This fixes #4283
When an error is thrown from box.com, it is sometimes not formatted according to the API documentation (most likely html/xml output). This commit handles an invalid JSON response and returns the body contents in the error message. This fixes #4283