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

Empty Response Body When Bad Request #99

Open
victormongi opened this issue Feb 7, 2024 · 3 comments
Open

Empty Response Body When Bad Request #99

victormongi opened this issue Feb 7, 2024 · 3 comments

Comments

@victormongi
Copy link

victormongi commented Feb 7, 2024

Screenshot 2024-02-07 at 4 19 19 PM

What I expected the validation error from api, but got {}, this the example from postman
Screenshot 2024-02-07 at 4 24 13 PM

@JoeyRichter
Copy link

I am having the same issue. Additionally, if I return a plain text response () => 'Hello, World!', the response body from Scalar is empty. Neither of these issues are present with the swagger-ui provider.

@SelfhostedPro
Copy link

If you're using bun as the runtime, the headers get set as an octet/stream instead of text/html or application/json. With Node, I don't run into the issue. If you go to the api endpoint you'll download a file instead of getting raw json/text/whatever.

1 similar comment
@SelfhostedPro
Copy link

If you're using bun as the runtime, the headers get set as an octet/stream instead of text/html or application/json. With Node, I don't run into the issue. If you go to the api endpoint you'll download a file instead of getting raw json/text/whatever.

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

3 participants