Coder Social home page Coder Social logo

Comments (7)

fschulze avatar fschulze commented on June 19, 2024

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.

Agalin avatar Agalin commented on June 19, 2024

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.

Agalin avatar Agalin commented on June 19, 2024

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="&gt;=3.4" >avro-python3-1.9.0-snapshot-20190725.tar.gz</a><br/>
    </body>
</html>

from devpi.

fschulze avatar fschulze commented on June 19, 2024

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.

Agalin avatar Agalin commented on June 19, 2024

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.

fschulze avatar fschulze commented on June 19, 2024

I also have to check whether ETag handling conflicts with the Refresh button.

You didn't mention replicas before.

from devpi.

Agalin avatar Agalin commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.