-
Notifications
You must be signed in to change notification settings - Fork 51
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
TypeError: Cannot read property 'error' of undefined #313
Comments
Thank you for the report, @pavanwashimkar ! This particular error...may stem from a serverless API change, which we'll look into. But for that error to be triggered, you likely had trouble fetching your New Relic account information. Have you verified that the values of your account ID and API key are correct in your serverless.yml? |
Hi Newrelic/Serverless-Newrelic-Lambda-Layers,
Yes I have verified the new relic account details and they are correct.
Regards,
Pavan
On Thu, 19 Jan 2023 at 11:04 PM, Maurice Rickard ***@***.***> wrote:
Thank you for the report, @pavanwashimkar
<https://github.com/pavanwashimkar> ! This particular error...may stem
from a serverless API change, which we'll look into. But for that error to
be triggered, you likely had trouble fetching your New Relic account
information. Have you verified that the values of your account ID and API
key are correct in your serverless.yml?
—
Reply to this email directly, view it on GitHub
<#313 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN475XJZDXNCO4TRZFQ42PDWTF3L3ANCNFSM6AAAAAAT6UW5G4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
--
Thanks and Regards
Pavan
|
Hi All, Just to update. I have edited the file api.js. Added the logger to check if proxy is causing the issue. Added below logger: |
@pavanwashimkar I'm not familiar at all with the What does your (sanitized) serverless.yml look like? |
@pavanwashimkar One other thought: is the API key you're using an ingest key? Or a personal API key? The key required in the serverless.yml should be a personal API key, and not an ingest key. |
Tried the steps mentioned for integration with new Relic of lambda written in node.js and getting below error.
Plugins: ["serverless-pseudo-parameters","serverless-newrelic-lambda-layers"]
× Stack bamboo-trigger-gui-test-01-dev failed to deploy (21s)
Environment: win32, node 14.20.0, framework 3.26.0, plugin 6.2.2, SDK 4.3.2
Credentials: Local, environment variables
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues
Error:
TypeError: Cannot read property 'error' of undefined
at D:\project\lambda\node_modules\serverless-newrelic-lambda-layers\dist\api.js:31:21
at processTicksAndRejections (internal/process/task_queues.js:95:5)
Can someone please suggest the solution for this error.
The text was updated successfully, but these errors were encountered: