openapi-typescript icon indicating copy to clipboard operation
openapi-typescript copied to clipboard

ResolveError: Failed to load https://****.*****.com/****/****: 404 Not Found

Open Jacobify opened this issue 1 year ago • 4 comments

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

Jacobify avatar Aug 08 '24 13:08 Jacobify