Getting a type error on newrelic agent version ^6.7.1 and aws-sdk ^2.681.0
See original GitHub issueGetting 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:
- Created 3 years ago
- Comments:9 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yip, just wanted to make sure you guys were aware. Thanks! 😄
@nambok Thank you for clarifying 👍