New relic lambda integration issue


I am trying to add lambda monitoring to my new relic account from “Entity Explorer >> add more data >> lambda (from under the section Cloud and platform technologies)”

and selected below options
Are you using the Serverless framework? Yes
Do you have a Node or Python Lambda Function to instrument? Yes
Do you want to deliver your function’s telemetry with our Lambda Extension, or through a Cloudwatch Logs subscription? Lambda Extension

followed all other section and successfully connected to my AWS account and added the below displayed code snippet to my serverless.yml file.

but when trying to serverless deploy, I’m getting the following error.

Fetch Error --------------------------------------------

FetchError: invalid json response body at reason: Unexpected token < in JSON at position 0
at /opt/atlassian/pipelines/agent/build/node_modules/node-fetch/lib/index.js:272:32
at processTicksAndRejections (internal/process/task_queues.js:97:5)

My newrelic account is in the EU region. But from the error, what I found is the API URL trying to access ( is for the US region which is the default region.
So is there any way to add/change my newrelic region in serverless.yml , so that I can access the API URL ( for the eu region.

By the way, trying the below from terminal with api url “” …I’m getting a valid response.

curl -X POST
-H ‘Content-Type: application/json’
-H ‘API-Key: NRAK-xxxxxxxxxxxxxxxxxxxxxxxxx’
-d '{ “query”: “{ requestContext { userId apiKey } }” } ’

Hi, Sorry you have been waiting awhile for a response from our community. I’m going to bring this back to the attention of our support team. Thanks for your patience!

Neal Mc