Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI-1273: Cryptic errors for 500 responses #453

Merged
merged 7 commits into from
Apr 16, 2024

Conversation

danepowell
Copy link
Collaborator

@danepowell danepowell commented Apr 16, 2024

500 responses return HTML instead of JSON, which in turn causes the JSON parser to throw a syntax error exception. This is pretty confusing for an end user.

@danepowell danepowell added the bug label Apr 16, 2024
use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Exception\BadResponseException;
use AcquiaCloudApi\Exception\ApiErrorException;
use Psr\Http\Message\StreamInterface;
use RuntimeException;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D'oh... #382

@danepowell danepowell merged commit 8ddea75 into typhonius:master Apr 16, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant