Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

I only have one res.send and no res.cookie/status or anything
after res.send I only have some closed curly brackets and still I am getting this error
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

I think its already late to reply, but in case someone in the future has the same problem,
try to add ‘return’ before your ‘res.send()’ even if its the last line to execute
this works for me