Crash - "RangeError: Invalid string length" #260

Open
opened 9 months ago by TheFrenchGhosty · 1 comments

My teddit instance crashed (and for whatever reason the Docker health-check didn't restart it):

Fetched the JSON from reddit.com/r/[REDACTED]/comments/[REDACTED]/[REDACTED]/[REDACTED]/.
/teddit/node_modules/postman-request/request.js:1518
      response.body = strings.join('')
                              ^

RangeError: Invalid string length
    at Array.join (<anonymous>)
    at Request.<anonymous> (/teddit/node_modules/postman-request/request.js:1518:31)
    at Request.emit (events.js:315:20)
    at IncomingMessage.<anonymous> (/teddit/node_modules/postman-request/request.js:1403:12)
    at Object.onceWrapper (events.js:421:28)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! teddit@0.3.1 start: `node app.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the teddit@0.3.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
My teddit instance crashed (and for whatever reason the Docker health-check didn't restart it): ``` Fetched the JSON from reddit.com/r/[REDACTED]/comments/[REDACTED]/[REDACTED]/[REDACTED]/. /teddit/node_modules/postman-request/request.js:1518 response.body = strings.join('') ^ RangeError: Invalid string length at Array.join (<anonymous>) at Request.<anonymous> (/teddit/node_modules/postman-request/request.js:1518:31) at Request.emit (events.js:315:20) at IncomingMessage.<anonymous> (/teddit/node_modules/postman-request/request.js:1403:12) at Object.onceWrapper (events.js:421:28) at IncomingMessage.emit (events.js:327:22) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! teddit@0.3.1 start: `node app.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the teddit@0.3.1 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. ```
teddit added the
bug
label 9 months ago
Owner

I experienced this as well: #58.

Haven't had this error for almost a year now.

Could be postman-request related error.

I experienced this as well: https://codeberg.org/teddit/teddit/issues/58. Haven't had this error for almost a year now. Could be `postman-request` related error.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: teddit/teddit#260
Loading…
There is no content yet.