All Apps and Add-ons

Nest Add-on for Splunk: Receiving "Authorization Code Not Found" error when trying to run the command in step 4

lgrover
New Member

Hello,

I am receiving the following error when attempting to run the command in step 4:

{"error":"oauth2_error","error_description":"authorization code not found","instance_id":"b575b4e8-5b32-4df4-8625-f148beba2141"}

I followed the steps outlined and pasted my auth code into the command. When executing the command, I received the aforementioned error. I tried different auth codes with the same result. I also ran through the troubleshooting steps and was not able to resolve the issue.

Any help would be much appreciated.

Thanks

0 Karma

ryanoconnor
Builder

I think there may have been an issue with the instructions and how the markdown language formatted it which I just corrected. The error you're receiving usually means you've entered an invalid authorization code. Take a look at the following code sample and note the highlighted section in bold.

curl -X POST "https://api.home.nest.com/oauth2/access_token?client_id=f4151b70-db18-43ac-a12b-1fbcd5f1cba9&code=****&client_secret=mdM3hEligo2PfGBsOMsaHFdvI&grant_type=authorization_code"

You'll want to replace that with the authorization code provided from the following URL

https://home.nest.com/login/oauth2?client_id=f4151b70-db18-43ac-a12b-1fbcd5f1cba9&state=STATE

Then you should receive your access_token.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...