-
Notifications
You must be signed in to change notification settings - Fork 301
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
HTTPError: 400 Client Error: Bad Request for url: {URL} #632
Comments
We don't know:
In short, you ignored the issue template which has information we need, and have given us nothing we can use to actually help you. Without any of this information, I'm closing the issue. |
Hi @sigmavirus24, Thanks for your quick response and sorry for the inconvenience. I have modified my post adding the information missing. I added all the versions and a description of the setup. I also added an example where we can see that I can reach the package server in the browser with the specified URL. Also, I added the PKG-INFO of the package I'm trying to upload. I hope that with this new information you can consider to open the issue. Many thanks for your support and kind regards |
Have you tried adding the documented trailing |
Hi @sigmavirus24 , Thanks for your quick response. Sure I did, I tried some combinations, with and without the trailing and adding or not the "simple" to the end but the results it's pretty much the same:
The problem is that even adding the Any ideas about where could I obtain more logs or info? Many thanks |
https://pypiserver.readthedocs.io/en/latest/README.html#uploading-packages-from-sources-remotely Indicates that There's not much else I think we can do to help you solve this. It would almost seem like there's an intermediary between you and the server that's rejecting the POST. Are there proxies or anything else that you can think of which might be involved? |
Hi @sigmavirus24, Once again, thank you very much for your help and support. I had a look over the ubuntu firewall to check if was it enabled:
And is not there. I tried to push the package using the
This is a task that was done usually by jenkins but I stopped working at some point. I've been looking at the logs of jenkins of the first time I saw it fail around a month ago and I've discover this:
I remember then I did an update of the libraries to see if that could change the problem and the 400 started to show up instead the 405. I also sniffed the packages from my machine with wireshark to see if I could get any additional info, but I don't see any additional data in the HTTP traces: I changed the url to Thanks for your support |
Hi everybody,
I have been experiencing an error since a while already and I cannot figure out what am I doing wrong. I have a
pypiserver
running in a machine in my local network and every time I try to push a new package to it I'm getting a 400 Client error with no description at all.The
pypiserver
runs on a Ubuntu machine using supervisor, and this is the configuration:The
pypiserver
version is:So it's serving here
![image](https://user-images.githubusercontent.com/35104136/82751846-66a83900-9dba-11ea-946d-e0f5b8da31da.png)
http://quality-agent:8000/
and I can verify that it's reachable by accessing in the browser:My
.pypirc
file looks like this:For example:
The
PKG-INFO
of this upload example is here:PKG-INFO.txt
But I've seen it with every package I've tried, this is just an example.
My guess is that the problem is somewhere in twine because I cannot see any log trace in my
pypiserver
, and I'm running it with the-vvv
verbose option.To confirm that the problem is not any of my packages, I'm trying to build and push to my
pypiserver
a working package available in pypi. In the example we can see that I usedtavern
.My
pypiserver
is running in a ubuntu machine and I'm trying to push the packages from the same Ubuntu machine or even from my Windows machine with the same result.In my Ubuntu machine I use python 3.7.5 and twine
jenkins@quality-agent:~/workspace$ pipenv run python --version Python 3.7.5
In my Windows setup I tried with python 3.8.3 and twine:
Does anyone knows what the problem could be? I'm running out of ideas about where to look to obtain more info or logs to analyze.
In case it helps, I add here some lines of the
pypiserver
logs, but as commented before, it throws nothing when executing the twine command to upload any package:Instead we can see the logs of the GET requests when accessing to the HTML representation in the browser to visualize the content of the package folder.
Many thanks
The text was updated successfully, but these errors were encountered: