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

Errors given by local api do not match exported errors #6960

Open
Arctomachine opened this issue Jun 27, 2024 · 0 comments
Open

Errors given by local api do not match exported errors #6960

Arctomachine opened this issue Jun 27, 2024 · 0 comments
Labels
created-by: Contributor status: needs-triage Possible bug which hasn't been reproduced yet v3

Comments

@Arctomachine
Copy link
Contributor

Link to reproduction

https://github.com/Arctomachine/payload-error-bug-v3

Payload Version

3.0.0-beta.55

Node Version

20.12.2

Next.js Version

15.0.0.-rc.0

Describe the Bug

Errors returned from payload.find and other methods do not match errors exported from payload.
In v2 same errors are exported from payload/errors and they match returned errors.

Reproduction Steps

Start server and open home page, look at server console.

Constructor name: NotFound
Instance of NotFound false

Uncomment lines 18 and 19 in page.tsx (override access and user)

Constructor name: Forbidden
Instance of Forbidden false

Adapters and Plugins

No response

@Arctomachine Arctomachine added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
created-by: Contributor status: needs-triage Possible bug which hasn't been reproduced yet v3
Projects
None yet
Development

No branches or pull requests

1 participant