assistant-relay icon indicating copy to clipboard operation
assistant-relay copied to clipboard

Stuck on Tokens screen at set up,

Open genericeventhandler opened this issue 5 years ago • 4 comments

Cloned repo installed, and run, does oauth authentication, and paste token into box on page 3. Finish button doesn't do anything.

Steps to reproduce the behavior:

  1. Clone repo
  2. cd relay
  3. npm install
  4. open browser to ip port 3000.
  5. follow steps and authenticate with google.
  6. paste token into box.
  7. press finish.

Expected behavior expected that finish does something, and writes the token into the bin/config.json file.

Installed on Raspberry PI 3 Called from Windows 10, Chrome latest patches.

Please provide a sample of the config.json with xxxx'd out token so I can force the token into the config.json

genericeventhandler avatar Jun 28 '20 18:06 genericeventhandler

Are you looking to develop or install?

If you're installing, follow these instructions: https://greghesp.github.io/assistant-relay/docs/getting-started/installation/#installation

greghesp avatar Jun 29 '20 08:06 greghesp

Hi thanks for the quick reply.

I tried following those instructions first, couldn't get it to work. so I cloned the master branch built and ran, which worked. problem is the token ,

const accesstoken = users[0].tokens.access_token;

I've tried adding the token into config.json using this bit of code as a guideline, but it still won't read it. Can I have an example please of how the token should look in the config file? Thanks

genericeventhandler avatar Jul 01 '20 17:07 genericeventhandler

Ah, I've just realised what I think the problem is, although I had thought i'd resolved this in the latest push.

FYI: If you want to use this as an end user, you need to be downloading the release.zip, not cloning the repo.

When I cloned the repo on my mac to develop on, it installed the latest version of ant.design which changed how forms work. Thought this was fixed, but if you're doing this to develop, can you check something for me

In this function: https://github.com/greghesp/assistant-relay/blob/master/client/src/views/setup/EnterToken/index.js#L10

Could you log out to see if the value passed is your auth token please? If it is, then it might be server side

greghesp avatar Jul 02 '20 09:07 greghesp

@genericeventhandler Can you confirm if this resolved your issue?

greghesp avatar Jul 13 '20 16:07 greghesp