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

unpkg.com Returning Errors for Swagger UI Assets #1523

Open
mdaneri opened this issue Mar 15, 2025 · 0 comments · May be fixed by #1522
Open

unpkg.com Returning Errors for Swagger UI Assets #1523

mdaneri opened this issue Mar 15, 2025 · 0 comments · May be fixed by #1522
Labels

Comments

@mdaneri
Copy link
Contributor

mdaneri commented Mar 15, 2025

Issue Summary

Requests to unpkg.com for Swagger UI assets (e.g., CSS and JavaScript files) are failing due to server-side errors. This issue affects Pode's ability to serve Swagger UI correctly when relying on unpkg.com as the default CDN.

Affected URLs

The following Swagger UI assets hosted on unpkg.com are currently returning errors:

  • 🔴 https://unpkg.com/swagger-ui-dist@5/swagger-ui.css
  • 🔴 https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js

Steps to Reproduce

  1. Open a web browser or use curl to request any of the affected URLs.
  2. Observe that unpkg.com fails to serve the requested assets.
  3. Check browser dev tools (F12 > Network Tab) or the console for error messages.

Expected Behavior

Swagger UI assets should load correctly from unpkg.com without returning errors.

Actual Behavior

Requests to unpkg.com return HTTP errors (e.g., 504 Not Found ). This prevents Pode from correctly serving Swagger UI when unpkg.com is used as the static asset source.

Workaround

Switching to a different CDN, such as https://cdn.jsdelivr.net/npm

Proposed Resolution

Implement a configurable CDN setting

Additional Information

  • Pode users relying on unpkg.com for Swagger UI may experience broken UI or missing assets.
  • The issue affects all Pode instances using unpkg.com for static content delivery.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

Successfully merging a pull request may close this issue.

1 participant