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

Error is not thrown when API request body is wrong #69

Open
CountTo25 opened this issue Jun 22, 2021 · 0 comments
Open

Error is not thrown when API request body is wrong #69

CountTo25 opened this issue Jun 22, 2021 · 0 comments

Comments

@CountTo25
Copy link

Whenever you pass data that is not formed according do spec, sendpulse class fails silently. This need to be thrown out

stdClass Object
(
    [message] => Badly formed data. Check API documentation
    [error_code] => 21356
    [is_error] => 1
    [http_code] => 422
    [headers] => HTTP/2 422
server: nginx/1.14.0 (Ubuntu)
date: Tue, 22 Jun 2021 10:58:55 GMT
content-type: application/json
x-powered-by: PHP/7.1.33
cache-control: no-cache
x-sp-pr: lpr7


    [curlErrors] =>
    [ip] => 168.119.2.85
    [method] => POST:https://api.sendpulse.com/addressbooks/******/emails
    [timestamp] => 2021-06-22 01:58:46+03:00
)
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