Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Can't set headers after they are sent. #114

Open
GPlay97 opened this issue Jun 4, 2019 · 0 comments
Open

Error: Can't set headers after they are sent. #114

GPlay97 opened this issue Jun 4, 2019 · 0 comments
Labels
bug 🐛 (critical) bug / error or misbehavior

Comments

@GPlay97
Copy link
Member

GPlay97 commented Jun 4, 2019

View details in Rollbar: https://rollbar.com/gplay97/EVNotifyBackend/items/182/


Error: Can't set headers after they are sent.
  File "_http_outgoing.js", line 491, in validateHeader
  File "_http_outgoing.js", line 498, in ServerResponse.setHeader
  File "/home/gplay97/EVNotifyBackend/node_modules/express/lib/response.js", line 771, in ServerResponse.header
        this.setHeader(field, value);
  File "/home/gplay97/EVNotifyBackend/node_modules/express/lib/response.js", line 170, in ServerResponse.send
          this.set('Content-Type', setCharset(type, 'utf-8'));
  File "/home/gplay97/EVNotifyBackend/node_modules/express/lib/response.js", line 267, in ServerResponse.json
      return this.send(body);
  File "/home/gplay97/EVNotifyBackend/modules/integrations/abrp/index.js", line 23, in db.query
                        res.json({
  File "/home/gplay97/EVNotifyBackend/modules/db/index.js", line 30, in Query.db.query
                    if (typeof callback === 'function') callback(err, queryRes);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/Connection.js", line 525, in Query.<anonymous>
          fn.apply(this, arguments);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/Connection.js", line 491, in Query._callback
          ret = fn.apply(this, arguments);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/protocol/sequences/Sequence.js", line 83, in Query.Sequence.end
            this._callback.apply(this, arguments);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/protocol/sequences/Query.js", line 139, in Query._handleFinalResultPacket
      this.end(this._loadError, results, fields);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/protocol/sequences/Query.js", line 72, in Query.OkPacket
        this._handleFinalResultPacket(packet);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/protocol/Protocol.js", line 291, in Protocol._parsePacket
      sequence[packetName](packet);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/protocol/Parser.js", line 433, in Parser._parsePacket
        this._onPacket(packetHeader);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/protocol/Parser.js", line 43, in Parser.write
        this._parsePacket(packetHeader);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/protocol/Protocol.js", line 38, in Protocol.write
      this._parser.write(buffer);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/Connection.js", line 91, in Socket.<anonymous>
          connection._protocol.write(data);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/Connection.js", line 525, in Socket.<anonymous>
          fn.apply(this, arguments);
  File "events.js", line 116, in emitOne
  File "events.js", line 211, in Socket.emit
  File "_stream_readable.js", line 263, in addChunk
  File "_stream_readable.js", line 250, in readableAddChunk
@GPlay97 GPlay97 added the bug 🐛 (critical) bug / error or misbehavior label Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 (critical) bug / error or misbehavior
Projects
None yet
Development

No branches or pull requests

1 participant