-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
HTTP ERROR 404 when generating client using HTTPS URL #1532
Comments
@FredrikErikJohansson are you able to provide more information or replication steps? I am unable to replicate with the same command in a |
@mrlubos same issue here. As you can see I first tested connection manually with response 200, later with |
I confirm |
Can others here confirm this issue occurs with Node 18? @cpoftea any chance you can switch to Node 20 or 22 to check if the issue persists? It seems like a good starting point, everything else looks similar and you're not even using HTTPS |
@mrlubos It doesn't look like a Node version problem. But here it is - issue persist. v20
v22
|
@cpoftea Does your URL work when you call it with HEAD method instead of GET? What kind of server is it? |
@mrlubos I tried calling our swagger with HEAD instead of GET and it returns 404 |
I have same error with 0.61.1 version, API: https://bloshinyj-rynok-api.spaceapp.ru/swagger/v1/swagger.json
node 22.10.0 |
@epfn thank you for providing the URL, should be way faster to fix |
Hey all, this will be fixed in the next release and separately I will work on improving the watch mode #1542 |
Description
From v0.61.0 the CLI returns
HTTP ERROR 404
when generating the client using a HTTPS URL to a swagger.jsonv0.60.1 works as expected
Reproducible example or configuration
openapi-ts -i https://valid-url.com/swagger.json -o src/client -c legacy/fetch
OpenAPI specification (optional)
No response
System information (optional)
No response
The text was updated successfully, but these errors were encountered: