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

TypeError: Cannot read property 'NORMAL_SPEED' of undefined #108

Open
GPlay97 opened this issue May 31, 2019 · 1 comment
Open

TypeError: Cannot read property 'NORMAL_SPEED' of undefined #108

GPlay97 opened this issue May 31, 2019 · 1 comment
Labels
bug 🐛 (critical) bug / error or misbehavior

Comments

@GPlay97
Copy link
Member

GPlay97 commented May 31, 2019

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


TypeError: Cannot read property 'NORMAL_SPEED' of undefined
  File "/home/gplay97/EVNotifyBackend/modules/helper/index.js", line 89, in Object.calculateTime
            estimatedNormalTime: ((!port || port === 'normal_charge_port') ? parseFloat((amountToCharge / (realChargingSpeed || speeds[car].NORMAL_SPEED)).toFixed(2)) : null),
  File "/home/gplay97/EVNotifyBackend/modules/qr/index.js", line 242, in qrStatus
                        codeObj.estimatedTime = helper.calculateTime(
  File "/home/gplay97/EVNotifyBackend/modules/qr/index.js", line 95, in db.query
            callback(err, ((!err && dbRes && dbRes[0]) ? dbRes[0] : null));
  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 502, in Query.<anonymous>
          fn.apply(this, arguments);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/Connection.js", line 468, 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 123, in Query.EofPacket
      this._handleFinalResultPacket(packet);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/protocol/Protocol.js", line 278, in Protocol._parsePacket
      sequence[packetName](packet);
  File "/home/gplay97/EVNotifyBackend/node_modules/mysql/lib/protocol/Parser.js", line 76, in Parser.write
          this._onPacket(this._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 502, 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
  File "_stream_readable.js", line 208, in Socket.Readable.push
  File "net.js", line 601, in TCP.onread
@GPlay97 GPlay97 added the bug 🐛 (critical) bug / error or misbehavior label May 31, 2019
@lkreimann
Copy link
Contributor

Da sollte man vielleicht mal einen weiteren Check einbauen 🤔 würde ich mir sonst die Tage mal angucken 👍

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

2 participants