Skip to content

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

@CountTo25

Description

@CountTo25

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
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions