You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting below error out of sudden without any code changes on AWS Lambda.
TypeError: Cannot convert undefined or null to object
at Function.keys ()
at Transport.queryParser (/opt/nodejs/node_modules/newrelic/lib/instrumentation/@elastic/elasticsearch.js:58:49)
at DatastoreShim.parseQuery (/opt/nodejs/node_modules/newrelic/lib/shim/datastore-shim.js:456:35)
at Transport.queryRecord (/opt/nodejs/node_modules/newrelic/lib/shim/datastore-shim.js:670:25)
at Transport.wrapper (/opt/nodejs/node_modules/newrelic/lib/shim/shim.js:850:33)
at Client.getApi [as get] (/var/task/node_modules/@elastic/elasticsearch/api/api/get.js:62:25)
at e.exports.get (/var/task/functions/graphql.js:1:95039)
at e.exports.get (/var/task/functions/graphql.js:1:120393)
at Object.part (/var/task/functions/graphql.js:1:39923)
at field.resolve (/var/task/node_modules/apollo-server-core/dist/utils/schemaInstrumentation.js:56:26)
The text was updated successfully, but these errors were encountered:
Hi @ddbhagat sorry for your troubles. This is a duplicate of newrelic/node-newrelic#1809. We hope to have a fix released this week. I'm going to close this one and I'll let you know when we have released the fix.
@ddbhagat It is a bug in the new elasticsearch instrumentation, perhaps you upgraded but didn't hit this codepath before? We got lucky because it got detected in E2E our tests.
Getting below error out of sudden without any code changes on AWS Lambda.
TypeError: Cannot convert undefined or null to object
at Function.keys ()
at Transport.queryParser (/opt/nodejs/node_modules/newrelic/lib/instrumentation/@elastic/elasticsearch.js:58:49)
at DatastoreShim.parseQuery (/opt/nodejs/node_modules/newrelic/lib/shim/datastore-shim.js:456:35)
at Transport.queryRecord (/opt/nodejs/node_modules/newrelic/lib/shim/datastore-shim.js:670:25)
at Transport.wrapper (/opt/nodejs/node_modules/newrelic/lib/shim/shim.js:850:33)
at Client.getApi [as get] (/var/task/node_modules/@elastic/elasticsearch/api/api/get.js:62:25)
at e.exports.get (/var/task/functions/graphql.js:1:95039)
at e.exports.get (/var/task/functions/graphql.js:1:120393)
at Object.part (/var/task/functions/graphql.js:1:39923)
at field.resolve (/var/task/node_modules/apollo-server-core/dist/utils/schemaInstrumentation.js:56:26)
The text was updated successfully, but these errors were encountered: