Skip to content

shipment is not handling errors #32

@Majklas

Description

@Majklas

Getting lots of errors on not handling bad responses, like:
PHP Fatal error: Uncaught ProductFlow\KauflandPhpClient\Exceptions\KauflandException: Kaufland error: {"message":"Validation Failed","errors":[{"field":"error_code","message":"order_unit_already_marked_as_sent"},{"field":"id_order_unit","message":XXXXXXXX}]} in /var/www/public_html/XXXXX/productflowbv/kaufland-php-client/src/Connection.php:122

when using : $kaufland->orderUnit()->send($v['id_order_unit'],$itm);
could we fix them? Or at least show how to make it work and skip such errors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions