question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting a type error on newrelic agent version ^6.7.1 and aws-sdk ^2.681.0

See original GitHub issue

Getting a type error on newrelic agent version ^6.7.1 and aws-sdk ^2.681.0

Description

NOTE: Getting the following error when running the latest agent

TypeError: Cannot read property 'lastIndexOf' of undefined
at grabLastUrlSegment (/usr/src/app/node_modules/@newrelic/aws-sdk/lib/sqs.js:44:30)
at features.constructor.recordMessageApi (/usr/src/app/node_modules/@newrelic/aws-sdk/lib/sqs.js:33:21)
at features.constructor.consumeRecorder (/usr/src/app/node_modules/newrelic/lib/shim/message-shim.js:428:24)

Steps to Reproduce

when reading from sqs newrelic agent throws the error

return Promise.resolve(sqs.receiveMessage({
    AttributeNames: [],
    MessageAttributeNames: [
      'All',
    ],
    MaxNumberOfMessages: max,
    VisibilityTimeout: config.queue.sqs.VisibilityTimeout,
    WaitTimeSeconds: config.queue.sqs.WaitTimeSeconds,
  })).then((data) => {
  ....

Your Environment

Running a node docker container image node:carbon

Additional context

Everything works as expected running agent version ^3.0.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nambokcommented, May 21, 2020

yip, just wanted to make sure you guys were aware. Thanks! 😄

1reaction
carlo-808commented, May 21, 2020

@nambok Thank you for clarifying 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java agent error configuration | New Relic Documentation
Go to the server-side configuration menu for the application with errors you want to mark as expected.
Read more >
Get error "Errors during harvest!" - New Relic Explorers Hub
Hi guys, My project is using nodejs language, the version is: 8.12 and configured the newrelic version is the latest: 5.6.3.
Read more >
Update the Node.js agent | New Relic Documentation
Recommendation: Test your updated version before moving it into production. If you have problems, follow the Node.js agent troubleshooting procedures.
Read more >
[Java] New Relic Java Agent 5.14.0 java.lang ...
Agents question template. Hello, I'm seeing this exception when using AWS SQS with the latest version of the New Relic java agent: java.util ......
Read more >
Java agent release notes - New Relic Documentation
Download this agent version New features and improvements Added the following Jakarta EE 9/9.1 compatible instrumentation: Jetty 11 Tomcat…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found