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

BAD_REQUEST should not be changed to ReplyError #1753

Open
sssoleileraaa opened this issue Nov 18, 2020 · 0 comments
Open

BAD_REQUEST should not be changed to ReplyError #1753

sssoleileraaa opened this issue Nov 18, 2020 · 0 comments
Labels
bug Something isn't working sdk

Comments

@sssoleileraaa
Copy link
Contributor

Description

The SDK can make it difficult to debug if we change the types of errors that we get back from the server, see #1165 (review), for example, where BAD_REQUEST for a seen request is returned to the client as a ReplyError: https://github.com/freedomofpress/securedrop-sdk/blob/cc5eea0dd4db75f4524ab3d99a31f8efb5a90139/sdclientapi/__init__.py#L205-L206. The client does a lot of response error handling, such as retrying a request based on request type and error, so we should make sure there are not other places in the SDK code that change error types.

@sssoleileraaa sssoleileraaa added the bug Something isn't working label Nov 18, 2020
@legoktm legoktm added the sdk label Jan 5, 2024
@legoktm legoktm transferred this issue from freedomofpress/securedrop-sdk Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sdk
Projects
None yet
Development

No branches or pull requests

2 participants