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

Unable to Handle Empty API Error Responses #4356

Open
simonmsara opened this issue Jan 27, 2025 · 0 comments
Open

Unable to Handle Empty API Error Responses #4356

simonmsara opened this issue Jan 27, 2025 · 0 comments

Comments

@simonmsara
Copy link

A smoke test request was made using the \Alphagov\Notifications\Client::sendSms method.

An error was thrown Warning: Trying to access array offset on null which came from Alphagov\Notifications\Exception\ApiException::__construct at line 19.

From what I can see the APIException is always expecting the body to be defined & have an error key. In this case the stream returned null and led to the error above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant