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!