Internal Server Error in Environment API Calls Version 19.1.0 #5807
We are creating the environments from config-repo, everything was working fine in the old version, 18.12.0. But after upgrading gocd to 19.1.0, we are facing the problems in all Environment related API calls.
GoCD environment using is 19.1.0. We are getting internal server error occurred in the environment related api calls if and only if we have atleast one environment created from code (environment as code, in config-repo)
Basic environment details
Steps to regenerate the issue:
service must return the environment details response
500 Internal Server Error
Any other info
This issue will happen only when you have atleast one environment generated from config-repo.
@justinmathewbiji the Environments API had some performance issues as reported in #5698. To fix this we had to re-implement the endpoint which seems to have introduced this issue while referring environments defined in ConfigRepo.
While we fix this issue, you should be able to switch back to older implementation by turning on the toggle using the below command.