Petstore no longer honouring explicit HTTPS scheme, and using HTTP instead?
See original GitHub issueFrom @alzadude on April 11, 2017 13:37
A recent change to the Petstore seems to have broken the explicit HTTPS api call behaviour.
Steps to reproduce:
- Go to http://petstore.swagger.io
- Enter swagger url for the api, using HTTPS (e.g. for one of our api calls, use
https://imin-platform-api.imin.co/v1/swagger.json) - Specify scheme
HTTPS - Enter required api parameters (e.g. for one of our api calls, use
GET/v1/search/sessions) - Click
Execute
Expected: Petstore executes api call using HTTPS as specified.
Actual:
Petstore appears to execute api call using HTTP (which for our api, doesn’t work unfortunately), and Swagger then shows TypeError: NetworkError when attempting to fetch resource.
Would someone be able to investigate this issue to determine why making the HTTPS scheme explicit isn’t working, and why HTTP is being used instead?
Thanks 😃
Copied from original issue: swagger-api/swagger-core#2171
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Petstore no longer honouring explicit HTTPS scheme, and ...
A recent change to the Petstore seems to have broken the explicit HTTPS api call behaviour. Steps to reproduce:.
Read more >swagger ui - petstore URL not disabled in SpringDoc OpenAPi
It just seems like Swagger is keeping a cache or something, but saving a configured OAS_3 seems to let Swagger know to stop...
Read more >Release Notes | Learn UIlicious - What is UI-licious
Switching away from the Editor tab in large projects with many files is now much quicker and should no longer result in the...
Read more >rcouch - Read the Docs
https scheme instead of the http. Actually, it's a synonym for X-Forwarded-Proto: https header, but used by some reverse proxies: [httpd].
Read more >Untitled - Squarespace
use a common property regime, but that regime does not constitute the commons. Common (noun). While some traditionalists use the term “the common”...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Latest master doesn’t exhibit this problem (very likely that #2927 fixed it).
Getting a CORS error with this spec:
We’re requesting with
https, so this looks fixed.@alzadude, this will be included in our Friday release. If you see any lingering problems, please reply here and I’ll look into it.
Closing!
Solving it by enabling CORS on the aiohttp server side (using aiohttp_cors)