question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get Token/Code UI incorrectly tries to load localhost

See original GitHub issue

What went wrong?

After following the Setup Authentication Guide there was an error loading the Get Token experience which went to load localhost (of which there is no local web server running).

  1. Now grant permission to the project by clicking on “Continue”

url: http://localhost/?code=<valid-code-to-copy>&scope=https://www.googleapis.com/auth/assistant-sdk-prototype

image

What did you expect to happen?

  1. You will now be presented with the authorization code screen. Click on the copy button

The above was the expectation from the setup guide, but there was no UI for selecting/copying the token. Though I’ve done one of these consent apps before and knew that the URI parameter was correct and valid to copy into the Google Assistant Desktop client successfully.

Steps to reproduce the bug

Follow the instructions in https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/wiki/Setup-Authentication-for-Google-Assistant-Unofficial-Desktop-Client (making sure to download the .json credentials file a second time (as per the other issue reported -> https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/issues/671

App Version

v1.0.0

OS Version

MacOS 12.3

Relevant Assets

Based on the conversation in a few other issues I’ve decided to open a new one tracking this specific aspect to the authentication process / token generation.

https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/issues/671#issuecomment-1073370268 https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/issues/342#issuecomment-1072985533

Pre-submission Checklist

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Ronith-91608commented, May 5, 2022

I found the fix 😄 Just copy the code in the url of the local host site and paste it in the token area and you are done

1reaction
Killakercommented, Dec 2, 2022

I have fixed this error on my installation simply changing the protocol from https to http at this point of the installation guide:

  1. Update the redirct URI under the Authorized redirect URIs section to:

https://localhost:5754/auth/handler

To: http://localhost:5754/auth/handler

Hope it will help somebody!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Oops! Something went wrong" when trying to get spotipy token
I'm trying to access my library using spotipy and have the following code: ... 'localhost:8888/callback' def getToken(SPOTIPY_CLIENT_ID, ...
Read more >
IdentityServer4: Building a Simple Token Server and ...
In this demo we are going to use JWT as access token which contains a JSON data payload that is signed and serialized....
Read more >
BIG-IP 14.1.4.5 Fixes and Known Issues - AskF5
1026549-4, 3-Major, Incorrect BIG-IP Virtual Edition interface state changes ... 751032-3, 4-Minor, TCP receive window may open too slowly after zero-window ...
Read more >
keycloak assign role to user api
Under Role Actions, click Add. Obtain the master realm admin access-token¶ ... Before we start with our nodejs code, let us complete our...
Read more >
Acquire a token to call a web API interactively (desktop app)
WithParentActivityOrWindow · On . · On Windows, you must call AcquireTokenInteractive from the UI thread so that the embedded browser gets the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found