Skip to content

Undefined array key "content-type" #885

@flaviencrochard

Description

@flaviencrochard

Hello,
When a feed has no results :

* Uses proxy env variable no_proxy == 'localhost,127.0.0.0/8,::1'
*   Trying 172.16.1.129:8011...
* Connected to 172.16.1.129 (172.16.1.129) port 8011 (#0)
> GET /merlin-service/rest/api/product/185070/restricted-prescriptions HTTP/1.1
> Host: 172.16.1.129:8011
> User-Agent: curl/7.88.1
> Accept: */*
> 
< HTTP/1.1 204 
< ETag: "1724277600000"
< Expires: -1
< Cache-Control: no-cache, no-transform, must-revalidate
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET, POST, OPTIONS
< Date: Mon, 23 Sep 2024 07:33:35 GMT
< 
* Connection #0 to host 172.16.1.129 left intact

If the Content-Type header is missing, it throws an ErrorException and the execution stops :
image

Could it be repaired to get another exception or empty collection ?

Thanks for your help !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions