Best answer

New Relic error: Authentication failed; the app returned `{"message": "Could not retrieve a list of accounts."}

  • 18 January 2024
  • 6 replies
  • 109 views

Userlevel 1

I’m trying to put the new relic API key, and it keeps failing , im the admin , and nothing works.. following error

 

“authentication failed: The app returned `{"message":"Could not retrieve a list of accounts."} What happened: Executing authentication.test with bundle {"message":"Could not retrieve a list of accounts."} Console logs: ` as error, which we cannot read.”

icon

Best answer by ken.a 19 January 2024, 10:21

View original

6 replies

Userlevel 7
Badge +11

Hi and welcome to the Community @nadavaha! 🎉 

Could there be an issue with the API perhaps? I know that New Relic has a number of different API keys available so it may be that the wrong one has been used here. See: https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/

It looks like it’s the User Key type that you’d need.

Can you try regenerating the key and then reconnect the New Relic app account using that new API key to see if that sorts it? 

Keen to help get to the bottom of this so please keep us updated on how you get on with that!

Userlevel 1

Hi Sam, 

 

Thanks for your reply.

I have tried all 3 types and sadly not one of them worked… i really am clueless why none of them worked while I’m the admin.

Can you please try and test it on your end, register a free account in New relic, create an API and try to ZAP from google analytics to new relic. Will be interesting to find out if you managed or not.

Userlevel 7
Badge +6

Hi there @nadavaha,

I’m jumping in to see if I can help!

I tried connecting New Relic to Zapier and I was able to successfully connect my account using the Rest API key. Here’s how I achieved it:

5226121277c9b39b51747d5d5dacdc61.png
(view larger)

b99d9c44d735702f886fd47bd884ebfc.png
(view larger)

63b7232aa07ec9b70767a9e7518a0042.png
(view larger)

Hopefully, this helps!

Userlevel 1

YEP Perfect - i didnt know that the REST API key on the right side brings you o somewhere else.. works !!

I think this solution no longer works. Because Newrelic REST API key was deactivated in March 2024:

So, I keep getting this error when Trying to connect new relic in a recent created zapier account:

I already tried with user key, ingest licence, ingest browser and nothing seems to work.

Error:
 

We hit an error adding your new account

authentication failed: The app returned `{"message":"Could not retrieve a list of accounts."} What happened: Executing authentication.test with bundle {"message":"Could not retrieve a list of accounts."} Console logs: ` as error, which we cannot read.

  1. Make sure you click "Allow" or "Accept" on the permission popup
  2. Double check your Account has the correct permissions
  3. Check out our help docs for more information

 

Userlevel 7
Badge +11

Thanks so much for bringing this to our attention @autow

With the older REST API Keys now being deprecated and the User API Keys not being accepted this definitely seems like it’s a bug. I’d recommend reaching out to our Support team about this here as they’ll be able to dig into the logs for your Zap and can open up a bug report so that this can be investigated further. 

Sorry to not have a more immediate solution or workaround to suggest. Please do keep us updated on how you get on with them! 🙂

Reply