I’m probably doing something stupid, but…
curl -X DELETE http://localhost:41184/notes/ff8...?token=...
This gives an error result “500 OK”. The delete is, however, correctly executed.
The returned result is not a JSON structure, but the text “First argument must be a string or Buffer”.