Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Setup] Error when trying to get a token #120

Open
RSant0s opened this issue Nov 4, 2022 · 3 comments
Open

[Setup] Error when trying to get a token #120

RSant0s opened this issue Nov 4, 2022 · 3 comments
Assignees

Comments

@RSant0s
Copy link

RSant0s commented Nov 4, 2022

Hi team,

I'm facing a problem on the step :
appium driver run tizentv pair-remote

I wasn't able to get the token and the following error was triggered.

RMS@RMS-MacBook-Pro tizen % sdb devices                                           
List of devices attached 
10.0.0.43:26101         device          HG49EJ690U
RMS@RMS-MacBook-Pro tizen % sdb connect 10.0.0.43                                 
10.0.0.43:26101 is already connected
RMS@RMS-MacBook-Pro tizen % appium driver run tizentv pair-remote --host 10.0.0.43
[STDERR] 
[STDERR] /Users/RMS/.appium/node_modules/appium-tizen-tv-driver/node_modules/@headspinio/tizen-remote/lib/tizen-remote.js:795
[STDERR]       throw new Error(`Could not get token; server responded with: ${format('%O', res)}`);
[STDERR]             ^
[STDERR] Error: Could not get token; server responded with: {
[STDERR]   data: { clients: [ [Object] ], id: '555ae14d-bc28-419c-9d21-576c53c016f8' },
[STDERR]   event: 'ms.channel.connect'
[STDERR] }
[STDERR]     at TizenRemote.getToken (/Users/RMS/.appium/node_modules/appium-tizen-tv-driver/node_modules/@headspinio/tizen-remote/lib/tizen-remote.js:795:13)
[STDERR]     at processTicksAndRejections (node:internal/process/task_queues:95:5)
[STDERR]     at pairRemote (/Users/RMS/.appium/node_modules/appium-tizen-tv-driver/lib/rc-pair.js:14:19)
[STDERR]     at main (/Users/RMS/.appium/node_modules/appium-tizen-tv-driver/lib/rc-pair.js:68:5)
✖ Encountered an error when running 'pair-remote': Process ended with exitcode 1 (cmd: '/usr/local/bin/node ./build/lib/rc-pair.js --host 10.0.0.43')
RMS@RMS-MacBook-Pro tizen % 

Appium Version: 2.0.0-beta.46

Can you please help me ?

@jlipps
Copy link
Collaborator

jlipps commented Nov 4, 2022

@boneskull any ideas?

@boneskull boneskull self-assigned this Nov 4, 2022
@boneskull
Copy link
Collaborator

@RSant0s @jlipps I'll look into this, but the driver now retrieves and persists a token automatically on first connection, so you may not need to run pair-remote at all.

@boneskull
Copy link
Collaborator

@RSant0s I'm unable to reproduce this. Do you have any more information about the device? Please try this and attach the output to this issue:

DEBUG='tizen-remote*' appium driver run tizentv pair-remote --host 10.0.0.43

Note that depending on the version of Tizen running on the device, it may require you to interact with it to allow the new device (and thus issue a token). Older versions will timeout after some time, automatically accept the new connection, and issue a new token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants