Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try It functionality giving JavaScript error a.forEach is not a function in swagger-ui-bundle.js #10255

Open
sergeycognizant opened this issue Jan 14, 2025 · 0 comments

Comments

@sergeycognizant
Copy link

Q&A

  • OS: Windows 10
  • Browser: Edge
  • Version: 131
  • Method of installation: composer
  • Swagger-UI version: 5.18.2
  • Swagger/OpenAPI version: OpenAPI 3.0
  • Platform: Drupal 10.3
  • Drupal module: openapi_ui 8.x-1.0-rc5

Describe the bug you're encountering

Try it functionality is throwing a JavaScript error in swagger-ui-bundle.js (check screenshot).
The loading screen appears and doesn't render any responses (check screenshot).

To reproduce...

Steps to reproduce the behavior:

  1. Go to the API details page
  2. Click on Authorize
  3. Click Try it
  4. Enter client id and secret and authenticate
  5. Click Execute

Expected behavior

Loading screen should not appear.
Try it should result in rendered responses.

Screenshots

Image
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant