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

Delete operations are failing with RestApiHandler and NextRequestHandler #1668

Open
hasan-aa opened this issue Aug 28, 2024 · 0 comments
Open

Comments

@hasan-aa
Copy link

Description and expected behavior
When using RestApiHandler with NextRequestHandler delete operations are failing.
RestApiHandler is returning undefined on the body after successful delete.
Then NextRequestHandler is trying to serialize it as JSON and failing.
"message": "An unhandled error occurred: TypeError: Value is not JSON serializable"

Screenshots
server/api/rest/index.js
Screenshot 2024-08-28 at 20 34 04

app-route-handler.js
Screenshot 2024-08-28 at 20 34 31

Environment (please complete the following information):

  • ZenStack version: 2.4.1
  • Prisma version: 5.18.0
  • Database type: Postgresql
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

1 participant