Giter Site home page Giter Site logo

Comments (14)

karianna avatar karianna commented on July 28, 2024

Might be a region thing or a VPN thing?

from api.adoptium.net.

mikehearn avatar mikehearn commented on July 28, 2024

Maybe a region thing - that's what I was asking with inconsistent shards. I don't think this customer uses VPNs (and if they did, why would it matter?)

from api.adoptium.net.

karianna avatar karianna commented on July 28, 2024

Maybe a region thing - that's what I was asking with inconsistent shards. I don't think this customer uses VPNs (and if they did, why would it matter?)

VPN might mean they're appearing to come from a different region (e.g., one that we're having challenges with on a given day)

from api.adoptium.net.

mikehearn avatar mikehearn commented on July 28, 2024

Is there a way to download the dataset in bulk and serve it myself as a fallback?

from api.adoptium.net.

karianna avatar karianna commented on July 28, 2024

Is there a way to download the dataset in bulk and serve it myself as a fallback?

https://api.adoptium.net/q/swagger-ui/#/ has all of the API options, you might be able to script a wrapper around some of that?

from api.adoptium.net.

tellison avatar tellison commented on July 28, 2024

@mikehearn I see in your log:
wget https://api.adoptopenjdk.net/v3/binary/latest/22/ga/windows/x64/jdk/hotspot/normal/adoptopenjdk

While we do have redirects in place, the old AdoptOpenJDK API is deprecated and you should preferably be going directly to api.adoptium.net, i.e.

https://api.adoptium.net/v3/binary/latest/22/ga/windows/x64/jdk/hotspot/normal/eclipse

In reality, I suspect that redirect is not causing the problem your user is experiencing. I also cannot reproduce the problem and agree that there is possibly an intermediary causing the 404.

from api.adoptium.net.

mikehearn avatar mikehearn commented on July 28, 2024

Is the only difference the domain name? If so then it should be easy enough to update.

from api.adoptium.net.

karianna avatar karianna commented on July 28, 2024

Is the only difference the domain name? If so then it should be easy enough to update.

There are some subtle differences, but I'd start with that and see what falls out.

from api.adoptium.net.

mikehearn avatar mikehearn commented on July 28, 2024

Could someone with sufficient access please do a consistency check on the replicas? @ennerf is still seeing problems but only when accessing the service from Austria. Accessed from the USA it works. So there's definitely some buggy replication going on here, and it's not fixing itself.

from api.adoptium.net.

johnoliver avatar johnoliver commented on July 28, 2024

This should be resolved as we have merged a fix in #1053 but in general the adoptium api was working in all regions at:

https://api.adoptium.net/v3/binary/latest/22/ga/windows/x64/jdk/hotspot/normal/eclipse

and it was purely an api.adoptopenjdk.net issue. api.adoptopenjdk.net is deprecated, so even going forward you should migrate.

from api.adoptium.net.

karianna avatar karianna commented on July 28, 2024

Closing now that #1053 has landed.

from api.adoptium.net.

mikehearn avatar mikehearn commented on July 28, 2024

Thanks.

from api.adoptium.net.

mikehearn avatar mikehearn commented on July 28, 2024

If I understand correctly, there is no documentation or any other guidance on how to migrate from one domain name to the other? I just tried to do it and I'm getting a 404 for:

https://api.adoptium.net/v3/binary/latest/17/ga/mac/x64/jdk/hotspot/normal/adoptopenjdk

It's unclear why, as the URL appears to have the same form as the example given above. api.adoptopenjdk.net works just fine. The README states only that the old API is deprecated due to a rebrand, so the fact that it appears to have a different backend and gives different answers is a surprise.

This is a great service that's very useful to the JVM community, but I have to say, if you want people to do new work for some obscure reason (what was wrong with the old name anyway), it would really help to have some tutorial on how to migrate. Neither the API website nor the README give any hint of differences but there must be some!

from api.adoptium.net.

karianna avatar karianna commented on July 28, 2024

https://api.adoptium.net will take you to the swagger UI definition, that should give you what the new target URL should be, in your case it should be https://api.adoptium.net/v3/binary/latest/17/ga/mac/x64/jdk/hotspot/normal/eclipse (adoptopenjdk was renamed for legal reasons) - point taken on migration in the future.

from api.adoptium.net.

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.