Forum Discussion

kpeachmanStrasz's avatar
kpeachmanStrasz
Occasional Visitor
12 months ago

Error message Can't read from file myWebsite.com:443/swagger/docs/v1

Hi everyone, I am dealing with a peculiar validation error on our swagger UI implementation. The swagger validator is marking the website as invalid, and when you click on the validator link it returns the error message: 

{"schemaValidationMessages":[{"level":"error","message":"Can't read from file https://mywebsite.com:443/swagger/docs/v1"}]}

the strange thing is that if I browse to https://mywebsite.com:443/swagger/docs/v1 from an external computer The text of the documentation is displayed, so the url is publicly accessible. 

 

Any ideas?

1 Reply

  • JOHNSMITH167's avatar
    JOHNSMITH167
    Occasional Contributor

    The error suggests a Swagger validation issue with your website's Swagger UI, stating it can't read from the specified file. Verify that your Swagger documentation adheres to a valid Swagger/OpenAPI specification, check Swagger UI configuration for the correct documentation URL, address potential CORS concerns, ensure proper HTTPS setup, confirm accurate base path configuration, check file permissions, and examine firewall/proxy settings. Utilize debugging tools to inspect network requests for more insights. This systematic approach should help identify and resolve the problem.