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

[BUG] Swagger UI no longer loads #2683

Closed
VictoriqueMoe opened this issue Apr 27, 2024 · 5 comments · Fixed by #2684
Closed

[BUG] Swagger UI no longer loads #2683

VictoriqueMoe opened this issue Apr 27, 2024 · 5 comments · Fixed by #2684
Assignees

Comments

@VictoriqueMoe
Copy link

Describe the bug

After updating from 7.67.3 to 7.68.2. my swagger UI no longer loads. it seems the assets it tries to load just now 404

[2024-04-27T16:55:07.701] [ERROR] [TSED] - {
  method: 'GET',
  url: '/api-docs/swagger-ui-bundle.js',
  route: '/api-docs',
  headers: {
    host: '127.0.0.1:8081',
    connection: 'keep-alive',
    'sec-ch-ua': '"Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    dnt: '1',
    'upgrade-insecure-requests': '1',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36',
    accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
    'sec-fetch-site': 'same-origin',
    'sec-fetch-mode': 'navigate',
    'sec-fetch-user': '?1',
    'sec-fetch-dest': 'document',
    'accept-encoding': 'gzip, deflate, br, zstd',
    'accept-language': 'en-GB,en;q=0.9',
    cookie: 'login_view=VictoriqueMoe; login=victoriquemoe; ALPHA_KEY=2726042b42a211d84c4a302c81510ee0c0170a9e8f2a87f6931be317cfee1cc9'
  },
  body: {},
  query: {},
  params: {},
  reqId: '3b80203505814fa0a30051b3c00e7234',
  time: 2024-04-27T15:55:07.701Z,
  duration: 3,
  event: 'request.end',
  status: 404,
  status_code: '404',
  state: 'KO'
}

In fact, no assets load, this includes /swagger-ui-bundle.js, /swagger-ui-standalone-preset.js, /swagger-ui.css, etc...

my swagger config has not changed:

swagger: [
        {
            path: "/api-docs",
            specVersion: "3.0.3",
            options: {
                withCredentials: true,
                supportedSubmitMethods: isProduction ? [] : undefined,
            },
        },
    ],

I also tried the new 3.1.0 but that didn't do anything.

Did the config change and i am not aware?

To Reproduce

  1. set up swagger
  2. try to load page

Expected behavior

swagger UI loads

Code snippets

No response

Repository URL example

No response

OS

Windows 11

Node version

v20.11.0

Library version

7.68.2

Additional context

I am using ESM

Copy link

🎉 Are you happy?

If you appreciated the support, know that it is free and is carried out on personal time ;)

A support, even a little bit makes a difference for me and continues to bring you answers!

github opencollective

@Romakita
Copy link
Collaborator

🎉 This issue has been resolved in version 7.68.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Romakita
Copy link
Collaborator

Fixed and released @VictoriqueMoe ;)

@VictoriqueMoe
Copy link
Author

Fixed and released @VictoriqueMoe ;)

thank you as always!

@VictoriqueMoe
Copy link
Author

@Romakita sorry, i just got around to testing this, and the issue is still there, i updated lib to 7.68.3 but still, i can not get to swagger, same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants