zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

Delete operations are failing with RestApiHandler and NextRequestHandler

Open hasan-aa opened this issue 1 year ago • 0 comments

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

hasan-aa avatar Aug 28 '24 17:08 hasan-aa