API error 500

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”.

same for me to delete folders / tags from a note. laurent opened an issue on github.