Backup via REST API no longer works since update to version 2020.2.1

Answered

I have set up a build that calls TeamCity REST API to launch a backup job daily and this worked great.

Since updating to 2020.2.1 yesterday, I noticed that the job failed overnight and failed consistently.

I am getting this as a response for the same API call that used to work :

Error has occurred during request processing, status code: 500 (Internal Server Error). Details: java.lang.NullPointerException Error occurred while processing this request.

0
2 comments

Hello Jean-Francois,

Apologies for the delay here.
This is a known regression in 2020.2.1 - https://youtrack.jetbrains.com/issue/TW-69356 - which has already been addressed and the fix will be available with 2020.2.2 release. In the meantime, you could either get an updated version of REST API plugin which is attached to the issue, or use one of the previous version endpoints (e.g. /app/rest/2017.2/server...).

I hope this helps! Please let me know if there is anything else I could assist with.

0
Avatar
Permanently deleted user

I used the older version of the API (2017.2) as a fallback and that works for now.

 

I will monitor the next update, thank you.

0

Please sign in to leave a comment.