Comments (5)
I'm not able to reproduce the problem Michael (@aixtools). I get a 404 NotFound error as expected rather than a NetworkError which is what you noted.
Please can you retry and see if the networking error still occurs?
from api.adoptium.net.
I think the issue is you have given a url that actually exists, so should not 404, in fact will 302 you to the binary you requested, unfortunately what probably happened is that your browser blocked the 302 redirect to github due to CORS.
from api.adoptium.net.
Leaving this open in case we can figure out a CORS workaround.
from api.adoptium.net.
I don't think it is a 302 blocking - why for this site only?
a) iirc, the old swagger api redirect to the new site - and those work fine.
b) this is not a browser failing - initially - but a 'fetch' using adoptium. The display above was to make it clearer why what was being returned by the API was not working.
from api.adoptium.net.
I could reproduce the problem with firefox. Debugging it on firefox shows a CORS Missing Allow origin error.
Also looking at the request being made to github.com, there are no cors request headers present, although it is configured in the application.properties file.
Looking at the configuration at
the problem might be with the use of wildcards:
quarkus.http.cors=true
quarkus.http.cors.origins=*
quarkus.http.cors.methods=*
quarkus.http.cors.headers=*
quarkus.http.cors.methods does not support a '*' wildcard afaict from the source code:
so the configuration would specify that for a '*' request, the cors headers are added, but a request method like that does not exist ofc. I would suggest to explicitly set this to 'GET, OPTIONS', or leave that setting empy which should default to all afaict.
Link to the quarkus documentation: https://quarkus.io/guides/http-reference#cors-filter
from api.adoptium.net.
Related Issues (20)
- Have cloudflare stats reported to API Admins on a regular basis HOT 1
- Get visibility on when GitHub rejects or rate limits when a user gets 302'd to them via the API
- Extract VersionParser to common library that can be reused in the build process HOT 2
- Add instructions to pass in GITHUB_TOKEN and APP_INSIGHTS instrumentation key.
- certification archive lacks sha256sum line in json file HOT 4
- No Checksum for AQAvit Results HOT 2
- JDK17 EA downloads ambiguous response from /v3/binary/latest/17/ea/linux/aarch64/jdk/hotspot/normal/eclipse HOT 3
- Use of scm_ref and openjdk_scm_ref in marketplace JSON HOT 2
- Add architecture alias x86_64 for x64 to allow for easier uname mapping
- Only the latest version can be selected on the marketplace HOT 2
- JDK19 pre-release builds are incorrectly marked GA
- Version filter no longer supports `semver` version string HOT 8
- Update marketplace updater for Microsoft build of OpenJDK
- Consider a workflow that automatically alerts to the presences of new TAP results
- Reorganize the tap result link aqavit_tapresult_link HOT 4
- api.adoptium.net giving 403/Forbidden to the web site HOT 3
- Temurin 21 binary builds not accessible through API HOT 6
- Python requests banned? HOT 3
- Docker Builds failing MongoTests HOT 1
- mvnw clean install site -Padoptium fails in site reporting for api-v3-updater due to Quarkus code generation failure HOT 1
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 api.adoptium.net.