31 May 2022 04:46 PM - last edited on 01 Jun 2022 10:11 AM by MaciejNeumann
Hi, I'm using python scripts to call the cluster APIs.
The APIs are working fine, they are doing the expected configurations but I have a strange behavior with the last use-case.
As you can see, the API "/api/v1.0/onpremise/users" is responding 200, I can see the configuration applied but is throwing some kind of exception so the GitlabCI job is failing:
The code I'm using is the following:
I'm using the same mechanism for all API calls in the scripts, for the others the behavior is normal when the call is 200 there is no Error! message. Except in the case I described.
Could you please help me understand why?
Thank you for your help.
Elodie
Solved! Go to Solution.
08 Jun 2022 03:14 PM
Hi @elodie_lam,
you are exiting with sys.exit(1) even though there was not error. Usually exit codes != 0 are treated as an error. The pipeline thinks something failed.