Not possible to try out openapi endpoints with auth and payload
See original GitHub issueWith fresh backstage
when trying to try out any endpoint which is protected with auth and has payload (methods POST
, DELETE
, etc.) the UI stucks and there is an error in the console.


Expected Behavior
It works, like it worked before
Current Behavior
It does not work
Possible Solution
🤷♂️, do not use fresh backstage, which uses fresh swagger-ui-react
Steps to Reproduce
- install fresh
backstage
usingnpx @backstage/create-app
- run it with
yarn dev
- open http://localhost:3000/catalog/default/api/spotify/definition#/category-follow/endpoint-unfollow-artists-users and try to execute that
Context
This is major feature of the backstage
itself, it stops us from keeping the backstage
fresh. Currently we can not update dependencies.
Try out
in swagger UI still works with endpoints where no auth is configures (petstore example).
It looks it is related to this issue and connected with some fresh update of swagger-ui-react
: https://github.com/swagger-api/swagger-ui/issues/7797#issuecomment-1028835529 . Long ago there was also an issue in the React
repo: https://github.com/facebook/react/issues/14484, seems that this is happening when there is some React
versions mismatch.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (10 by maintainers)
Ok, new input. When I add resolution like this:
Then it seems to work. In the
yarn.lock
I then get:This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.