Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create better Exceptioninfo ;) #20

Open
thejoe8495 opened this issue Mar 9, 2024 · 1 comment
Open

Create better Exceptioninfo ;) #20

thejoe8495 opened this issue Mar 9, 2024 · 1 comment

Comments

@thejoe8495
Copy link
Contributor

url=url, auth=(self.api_id, self.api_password), headers=headers, data=json.dumps(payload)

The error messageblock shows only error, it would be better to return the complete JSON from the server.
In our case the return was an undocumented:
{
"errorCode": 400,
"errorMessage": "Your request is not properly formatted, please refer to the documentation guide for sample requests"
}
The created JSON is valid but Letmeship don't want to accept it. We can reproduce it in the swagger ui of Letmeship and create an Ticket on Letmeship to find out where is the Problem n the JSON.
https://api.letmeship.com/v1/swagger-ui.html#/Available%20Services/getAvailableServicesUsingPOST

@barredterra
Copy link
Collaborator

barredterra commented Mar 9, 2024

I didn't check, but you should probably find the complete error in the Error Log DocType.

Btw, I did test the available services with LetMeShip and it should work fine in the latest release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants