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

Misleading error reporting when upload of package fails. #16

Open
keroami opened this issue Feb 12, 2023 · 1 comment
Open

Misleading error reporting when upload of package fails. #16

keroami opened this issue Feb 12, 2023 · 1 comment
Labels
bug Something isn't working help wanted Contributions encouraged

Comments

@keroami
Copy link

keroami commented Feb 12, 2023

publish_package_response produces LateModification on UNPROCESSABLE_ENTITY.

The handling suggests it is expecting late modification, somehow, but the code stems from http, which has no such notion?

The default handler provides us with unexpected_response, including body, which may contain useful information (it did in my case, I was stuck until I printed it and learned what the real problem was, instead of 'late modification').

@lpil lpil added bug Something isn't working help wanted Contributions encouraged labels Feb 13, 2023
@lpil
Copy link
Member

lpil commented Feb 13, 2023

Thanks for the report. I agree this is insufficient and at times misleading. Unfortunately the Hex API docs are very lackluster so at the time of writing it seemed that this was an appropriate error to surface.

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

No branches or pull requests

2 participants