openapi-typescript
openapi-typescript copied to clipboard
ResolveError: Failed to load https://****.*****.com/****/****: 404 Not Found
Description
After updating the package from 6.7.6 to 7.3.0 I see the below error log when fetching data from certain URLs that I need to build my app with,
Basically it is a simple npm i which inside runs npm run tsDefinition:****:****.
When I curl -I my-url , I get a 200 OK message but during the build it fails and returns 404 Not Found.
I am not sure where this issue is arising from so I would appreciate some insights/ideas for a solution.
Works perfect until version 6.7.6
But breaks from 7.0.0
npm run tsDefinition:****:**** exited with code 1
/builds/*****/******/node_modules/@redocly/openapi-core/lib/resolve.js:113
throw new ResolveError(error);
ResolveError: Failed to load https://****.******.com/****/****: 404 Not Found
| Name | Version |
|---|---|
openapi-typescript |
7.3.0 |
| Node.js | 20.11.1 |
| OS + version | Windows 11 |
Reproduction
described in the description
Checklist
- [ ] My OpenAPI schema passes the Redocly validator (
npx @redocly/cli@latest lint) - [ ] I’m willing to open a PR (see CONTRIBUTING.md)