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

Hub API calls: print X-Request-Id value in case of server error #906

Closed
Pierrci opened this issue Jun 14, 2022 · 0 comments · Fixed by #909
Closed

Hub API calls: print X-Request-Id value in case of server error #906

Pierrci opened this issue Jun 14, 2022 · 0 comments · Fixed by #909
Assignees
Labels
API enhancement New feature or request

Comments

@Pierrci
Copy link
Member

Pierrci commented Jun 14, 2022

On https://hf.co, every HTTP request is associated with a unique id that we can then use to run some forensics when unexpected behavior happens. It is returned in the response through the X-Request-Id header.

Printing this value in case of error so that users can share it in reports would help with debugging.

Internal slack: https://huggingface.slack.com/archives/C02EMARJ65P/p1653397684145649

(I see it was finally not included in #878 🥲)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants