-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Release 3.0.6 breaks HTTPS support #2919
Comments
One step forward, two steps back.... Thanks for filing this, @Bert-R! From the Swagger 2.0 Specification:
Looks like we aren't considering the effective URL scheme of relative paths correctly, which is a bug. In the meantime, adding this to your spec should get things working again: schemes:
- https |
To work around swagger-api/swagger-ui#2919
Note: this is now testable via https://spotty-cloth.surge.sh/?url=./swagger.yaml, as @Bert-R's URL has been updated with the |
@Bert-R, this should be fixed in master now. Please reply if you continue to experience this issue, and I'll reopen. Thanks for using Swagger! |
Thanks for fixing this! Swagger UI is a wonderful tool that we really appreciate. I'll wait for the 3.0.7 release to upgrade, so we are on a defined version. |
Expected to solve swagger-api/swagger-ui#2919.
This works fine in 3.0.7. Thanks a lot! |
Hey guys, I've just grabbed master (3.0.19) and am having this exact same issue, see my Stackoverflow post here: https://stackoverflow.com/questions/45156665/swagger-ui-typeerror-failed-to-fetch-on-valid-response In a nutshell, I've simply upgraded to 3.0.19 then forced a 403 error, instead of getting a 403 - forbidden, it's returning "TypeError: Failed to fetch". Everything that should be needed is in the Stackoverflow post. |
@ShaneGMamet, sorry you're having trouble! What version were you on before you upgraded to the current version? Also - can you share your spec, or a proof of concept that will help us see the problem? |
Hey @shockey thanks for the quick response;
Even better, here's the actual Swagger page currently with the issue: https://api-swagger-uk-test.leap.services/#/ Please let me know if there is more needed? Thanks |
@ShaneGMamet, I tried out your Swagger-UI deploy and could only squeeze a 500 out of your server, since I don't have a valid Authorization token. A couple questions:
|
@shockey 2 - The URL is HTTPS: https://uk-test-api.leap.services/api/v1/cards |
@ShaneGMamet Gotcha. This issue is about fetch failures related to the incorrect URL scheme being used for requests - can I ask you to open a new issue in this repository, so we don't keep nudging the folks that previously commented? |
@shockey I'll happily open a new issue but how is this related to an incorrect URL scheme? |
Sorry, my sentence was ambiguous 😄 The issue we're commenting on was originally about a problem with the UI incorrectly selecting Since your request is going through as HTTPS, I'm fairly sure that isn't the source of your trouble, even though you're getting the same error message - so it'd be best to move this discussion into a new GitHub issue. |
With build 3.0.5, HTTPS worked, though the curl command was wrong. With 3.0.5, the curl command is right, but HTTPS does not work anymore.
To test it go to https://beta.prd.yona.nu/swagger-ui/index.html and try out the first operation, entering asdf in both input fields.
That should result in an error from the server, but currently shows "TypeError: Failed to fetch"
The text was updated successfully, but these errors were encountered: