UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object code example
Example: The "chunk" argument must be one of type string or Buffer. Received type object nodejs
//change res.end() to res.send()