API not working after upgrade to v2020.3.1

Hi Team,

I have created a project in Octopus to update a specific LibraryVariableSet through API.
How its working:

  1. Taking all variable Data in CSV.
  2. Converting it to json.
  3. using below API to update LibraryVariableSet.
    PUT https://xxxxxxx/Octopus/api/Spaces-1/variables/variableset-LibraryVariableSets-218

Earlier it was working fine, but post upgrade to v2020.3.1 getting below error.

Error: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Though it was a running project I have to fix it ASAP, please help me to resolve it. Thanks

Vivek Rai

Hi @raivivek1989,

Thanks for getting in touch!

I’ve tested that API call and it does seem to be working as expected with a simple test script.
If you can share the script that you are running(and a sample of the CSV content) I can run some tests with that.

Also, when the error is occurring, do you see any related entries in the Octopus Server log in Configuration > Diagnostics?

Regards,
Paul