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

Response success status validated incorrectly #4338

Open
slyapustin opened this issue Dec 5, 2024 · 1 comment · May be fixed by #4339
Open

Response success status validated incorrectly #4338

slyapustin opened this issue Dec 5, 2024 · 1 comment · May be fixed by #4339
Labels
bug Something isn't working

Comments

@slyapustin
Copy link

Describe your environment

OS: (e.g, Ubuntu)
Python version: (e.g., Python 3.8.10)
SDK version: (e.g., 1.25.0)
API version: (e.g., 1.25.0)

What happened?

There are some places, where success status of the request validated based on only 200 and 202 status code:

Steps to Reproduce

Receive the HTTP 204 succes status code

Expected Result

204 status to be treated as a success status

Actual Result

204 status code treated as an error

Additional context

Relevant issue (fixed) about the same behavior in another module: #3621

Would you like to implement a fix?

None

@slyapustin slyapustin added the bug Something isn't working label Dec 5, 2024
@codefromthecrypt
Copy link
Contributor

zipkin doesn't define its HTTP POST status as returning 204, rather 202 as the code already does.

https://github.com/openzipkin/zipkin-api/blob/master/zipkin-api.yaml#L83

What product is returning 204? Can you raise an issue with them to switch it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants