You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { Elysia, t } from 'elysia'; const app = new Elysia() .post('/some', ({ body }) => 'one', { body: t.Object({ name: t.String(), }), })
When I try to access the above route, it returns error with 500 code, and in the command line of the server, it doesn't show anything. And in the response it is showing empty curly bracket {}.
When using primitive types for the body, it is working as expected.
I tried to find the issue in the github issues, there is this closed issue #148.
The text was updated successfully, but these errors were encountered:
Ok, so I installed some other packages, and interestingly now it is working as expected. I didn't make any change in the code. So I am closing the issue.
import { Elysia, t } from 'elysia'; const app = new Elysia() .post('/some', ({ body }) => 'one', { body: t.Object({ name: t.String(), }), })
When I try to access the above route, it returns error with 500 code, and in the command line of the server, it doesn't show anything. And in the response it is showing empty curly bracket {}.
When using primitive types for the body, it is working as expected.
I tried to find the issue in the github issues, there is this closed issue #148.
The text was updated successfully, but these errors were encountered: