elysiajs / elysia

Ergonomic Framework for Humans
https://elysiajs.com
MIT License
10.59k stars 226 forks source link

The error message is being returned as "[object Object]." #895

Open k3341095 opened 4 weeks ago

k3341095 commented 4 weeks ago

What version of Elysia is running?

1.1.23

What platform is your computer?

Linux 6.8.0-47-generic x86_64 x86_64

What steps can reproduce the bug?

const { data, error, response } = await $client.api.auth[ "send-pin-code" ].post({ email: email.value, password: password.value, refCode: refCode || "", });

When making a request using the Eden client, a 404 is returned, but error.message returns "[object Object]."

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

SaltyAom commented 3 weeks ago

Can you also provide an Elysia code that produces this error as well, thanks