Comments (7)
To clarify, you mirror something which isn't pypi.org and it doesn't provide sha256 sums? Could you provide a raw html example (with anonymized package name if needed)?
from devpi.
It's a Nexus mirror which currently provides SHA256 sums. Problem was observed for an old package that was already synced with MD5. Not sure if Nexus is still serving only MD5 for it. I'll see if I can retrieve the Nexus response.
Although line linked should just be fixed anyway:
>>> x = {"foo": "bar"}
>>> next(x.items())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'dict_items' object is not an iterator
>>> next(iter(x.items()))
('foo', 'bar')
from devpi.
Here is the Nexus response - still using md5 for this package.
<html lang="en">
<head><title>Links for avro-python3</title>
<meta name="api-version" value="2"/>
</head>
<body><h1>Links for avro-python3</h1>
<a href="../../packages/avro-python3/1.9.0-snapshot-20190725/avro-python3-1.9.0-snapshot-20190725.tar.gz#md5=07f58693cc10857e520084588394337d" rel="internal" data-requires-python=">=3.4" >avro-python3-1.9.0-snapshot-20190725.tar.gz</a><br/>
</body>
</html>
from devpi.
Ah, I only now realized that this is for an application/vnd.pypi.simple.v1+json
response, not an html one. There was no test for that yet. Your fix looks correct.
The reason you don't always see it is most likely because of caching. The Refresh
button on the simple page should work.
from devpi.
While I'm pretty sure a bug is still there, for some reason I don't see it any more after migrating the stack to the one without replicas.
from devpi.
I also have to check whether ETag handling conflicts with the Refresh
button.
You didn't mention replicas before.
from devpi.
I didn't mention them before because I had no reasons to believe they're related. But now - after switching to a replica-free deployment I no longer see stacktraces in logs.
from devpi.
Related Issues (20)
- [discussion] Asyncio speedups HOT 7
- docs zip contains unwanted package source files HOT 3
- [client] upload `OSError: [Errno 18] Invalid cross-device link '/tmp/devpi-…/dist/….whl' -> 'dist/….whl'` HOT 2
- Cannot load packages when use base auth in gitlab registry mirror HOT 4
- Need help upgrading from 4.4.0 to current HOT 3
- Incorrect version given to doczip with devpi-client version 7.0.0 HOT 7
- All >400 HTTP responses from login provoke a SystemExit, not using fatal, and are not always fatal errors for login HOT 1
- Errors when sharing package files HOT 8
- Option to have the latest available documentation displayed, when a package has no docs HOT 2
- Support PEP 658 / PEP 714 HOT 8
- HTTP error 502 while retrieving a wheel file HOT 6
- Return HTTP 406 instead of HTTP 404 when `Accept` cannot be fulfilled HOT 4
- Support range requests when downloading files HOT 3
- Connection failures when downloading wheels HOT 6
- pytest-flake8 is abandoned
- Support for newer packaging HOT 2
- AttributeError: type object 'PersistentCurrent' has no attribute 'auth' HOT 3
- Failed to upload tensorflow wheel with 400 error HOT 7
- Provide an aiohttp-less version for server HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devpi.