We have seen the following stacktrace when attempt to fetch data
Cannot read property 'bucket' of undefined TypeError: Cannot read property 'bucket' of undefined\n at /opt/haven/app/node_modules/@havenlife/persistor/dist/lib/knex/query.js:420:47\n at /opt/haven/app/node_modules/underscore/underscore.js:188:11\n at Function..each..forEach (/opt/haven/app/node_modules/underscore/underscore.js:103:9)\n at Function..filter..select.
Investigating further this is bad promise handling in line 420 of query.js, with using the async pattern in a forEach loop. Fixing it to for of...resolved the problem
We have seen the following stacktrace when attempt to fetch data
Cannot read property 'bucket' of undefined TypeError: Cannot read property 'bucket' of undefined\n at /opt/haven/app/node_modules/@havenlife/persistor/dist/lib/knex/query.js:420:47\n at /opt/haven/app/node_modules/underscore/underscore.js:188:11\n at Function..each..forEach (/opt/haven/app/node_modules/underscore/underscore.js:103:9)\n at Function..filter..select
.Investigating further this is bad promise handling in line 420 of query.js, with using the async pattern in a forEach loop. Fixing it to for of...resolved the problem