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

Failed to fetch the OpenAPI document at /swagger/json Error: [fetchWithProxyFallback] Can’t fetch URL: undefined #902

Open
tuanyh11 opened this issue Oct 29, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@tuanyh11
Copy link

tuanyh11 commented Oct 29, 2024

What version of Elysia is running?

latest

What platform is your computer?

mac air m1

What steps can reproduce the bug?

Screenshot 2024-10-29 at 23 22 57 Screenshot 2024-10-29 at 23 23 16

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Have you try removing the node_modules and bun.lockb and try again yet?

No response

@tuanyh11 tuanyh11 added the bug Something isn't working label Oct 29, 2024
@tuanyh11
Copy link
Author

Screenshot 2024-10-29 at 23 27 24

@dfalgout
Copy link

Same issue here. I removed node_modules, bun.lockb and tried again - still happening.

@hmartins370
Copy link

hmartins370 commented Oct 31, 2024

this happens in python fastAPI too with scalar-fastapi

@nad-au
Copy link

nad-au commented Nov 26, 2024

I've downgraded @elysiajs/swagger package to 1.1.1 to get it working again. All versions after break with the above.

@stevekrenzel
Copy link

This commit appears to be what broke it fyi. It forces relative urls to become absolute urls, which is not the intended behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants