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

_pruneEvents(): TypeError: Cannot read property 'length' of null #67

Open
dortonway opened this issue Dec 10, 2020 · 2 comments
Open

_pruneEvents(): TypeError: Cannot read property 'length' of null #67

dortonway opened this issue Dec 10, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@dortonway
Copy link

Expected Behavior

Events have to be emitted.

Current Behavior

Some events are not sent to the Amplitude because of an error:
2020-12-08T23:15:37: TypeError: Cannot read property 'length' of null 2020-12-08T23:15:37: at /var/www/socialcomm/source/server/node_modules/@amplitude/node/src/retryHandler.ts:91:18 2020-12-08T23:15:37: at Array.forEach (<anonymous>) 2020-12-08T23:15:37: at RetryHandler._pruneEvents (/var/www/socialcomm/source/server/node_modules/@amplitude/node/src/retryHandler.ts:89:12) 2020-12-08T23:15:37: at RetryHandler.<anonymous> (/var/www/socialcomm/source/server/node_modules/@amplitude/node/src/retryHandler.ts:51:31) 2020-12-08T23:15:37: at step (/var/www/socialcomm/source/server/node_modules/tslib/tslib.js:141:27) 2020-12-08T23:15:37: at Object.next (/var/www/socialcomm/source/server/node_modules/tslib/tslib.js:122:57) 2020-12-08T23:15:37: at /var/www/socialcomm/source/server/node_modules/tslib/tslib.js:115:75 2020-12-08T23:15:37: at new Promise (<anonymous>) 2020-12-08T23:15:37: at Object.__awaiter (/var/www/socialcomm/source/server/node_modules/tslib/tslib.js:111:16) 2020-12-08T23:15:37: at RetryHandler.sendEventsWithRetry (/var/www/socialcomm/source/server/node_modules/@amplitude/node/dist/src/retryHandler.js:40:24)

  • SDK Version: 1.1.0
  • Node version: 15.3.0
@dortonway dortonway added the bug Something isn't working label Dec 10, 2020
@jooohhn
Copy link
Contributor

jooohhn commented Dec 14, 2020

Thanks for reporting this, we'll take a look at a fix

@Amareis
Copy link

Amareis commented Mar 10, 2022

For me it appears when call setUserId(null) or clearUserProperties() in latest amplitude version, rollback to 8.13.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants