Base solution for your next web application
Open Closed

v5.2.0 swagger issue #4742


0
kythor created

I upgraded all nuget packages for the new v5.2.0 version. I get an error when running the webhost. Although the page is loaded and i see all the services:

The source map 'swagger-ui-bundle.js.map' for file 'mdha:http://localhost:22742/swagger/swagger-ui-bundle.js' could not be read from the specified location due to error 'Exception of type 'TypeScriptSourceMapReader.SourceMapReadFailedException' was thrown.'.The source map 'swagger-ui-standalone-preset.js.map' for file 'mdha:http://localhost:22742/swagger/swagger-ui-standalone-preset.js' could not be read from the specified location due to error 'Exception of type 'TypeScriptSourceMapReader.SourceMapReadFailedException' was thrown.'.

At the bottom of the swagger page, is see an error button. When I click on it, i get

{"schemaValidationMessages":[{"level":"error","message":"Can't read from file /swagger/v1/swagger.json"}]}

what to do?


1 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Might be related to <a class="postlink" href="https://github.com/domaindrivendev/Swashbuckle/issues/971">https://github.com/domaindrivendev/Swas ... issues/971</a>.