swagger-parser
swagger-parser copied to clipboard
NetworkError when attempting to fetch resource. - https://apitools.dev/swagger-parser/online/
https://apitools.dev/swagger-parser/online/ NetworkError when attempting to fetch resource. Error downloading https://www.micro-work.net/covid/v1/jhu/swagger.json
NetworkError when attempting to fetch resource. o@https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:73766 parseSwagger/<@https://apitools.dev/swagger-parser/online/js/bundle.min.js:17:227596
o@https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:73766 download/</<@https://apitools.dev/swagger-parser/online/js/bundle.min.js:1:28426
2020-04-08 12:43 UTC+2 - was this tool in maintenance mode?
I have no idea, why I did not want to fetch my swagger. Or does it work only with yaml?
The links to the javascript was working fine for my internet client.
Looks to me like a CORS issue.
This is from the browser console:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.micro-work.net/covid/v1/jhu/swagger.json. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
@matjung - As @jdegre pointed out, the reason you're getting an error is that the server (www.micro-work.net
) does not have CORS configured to allow remote requests. You'll need to talk to whoever manages that server and ask them to enable CORS, which will allow websites such as Swagger Parser to access files on the server.