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

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

Open
k3341095 opened this issue Oct 25, 2024 · 2 comments
Open

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

k3341095 opened this issue Oct 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@k3341095
Copy link

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

@k3341095 k3341095 added the bug Something isn't working label Oct 25, 2024
@SaltyAom
Copy link
Member

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

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

3 participants
@k3341095 @SaltyAom and others