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!
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
contentstack-java/src/main/java/com/contentstack/sdk/CSHttpConnection.java
Line 187 in 0e3d917
The "environment" gets removed from any
getServicecall, which causes the issue.We have a workaround now is to call
setHeaderevery time before making fetch calls, please provide a fix for it. Thank you!