Skip to content

"environment" is removed from header in getService() in version 1.8.x #47

@zxm5010

Description

@zxm5010

We upgraded from 1.4 to 1.8 recently, and noticed an issue in recent 1.8.x versions that the following fetches after first one fails because of error: "error_message":"Failed to fetch entries. Please try again with valid parameters.","error_code":141,"errors":{"environment":["is required."]}}

I think this line causes an issue

this.headers.remove(Constants.ENVIRONMENT);

The "environment" gets removed from any getService call, which causes the issue.

We have a workaround now is to call setHeader every time before making fetch calls, please provide a fix for it. Thank you!

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