You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({})
HTTP response body: {"message":"Body should be a JSON object","took":0.003,"requestId":"b5648d74-cee1-47ed-b8d7-1d458f31101a"}
I believe this section of the Swagger API code is at least partly responsible for this:
Not all requests require a body, however it looks like the Swagger API does not permit a request with an empty body.
For example, the close alert method does not have any mandatory JSON body fields, which implies you should be able to call it like this:
Or more explicitly:
However both of these fail with:
I believe this section of the Swagger API code is at least partly responsible for this:
https://github.com/opsgenie/opsgenie-python-sdk/blob/master/opsgenie/swagger_client/rest.py#L152
My current workaround is to always specify
source
for these requests.The text was updated successfully, but these errors were encountered: