-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
json.decoder.JSONDecodeError during find_all_packages #89
Comments
Since it is not reproducible, can you inspect what is the response content, around exactly this line:
Print |
so indeed, an unterminated json text... Questions:
|
Note that I can reproduce the exception with this simple code:
which gives
Note that everything is fine with pip in the same environment (Gitlab CI). In particular |
Did this line play an important role in reproducing the issue? |
No. This line was only to visualize what happens, i.e. the response is truncated. |
If requests itself can reproduce this, why not asking it there? I don't think there is any behavior of requests that can be tweaked via arguments to bypass this. |
On a Gitlab CI, I get a traceback using PDM (pdm-project/pdm#2532). I think that the problem is related to unearth. The exception can be reproduced only with unearth:
Interestingly, (i) this code runs fine locally (and even locally in the same Docker image used for the CI) and (ii) I can install packages with pip in the Gitlab CI.
System (please complete the following information):
unearth
version: 0.12.1Additional context
Cause pdm-project/pdm#2532
The text was updated successfully, but these errors were encountered: