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

STF do not return remoteConnectUrl #975

Open
akamarouski opened this issue Jun 5, 2024 · 3 comments
Open

STF do not return remoteConnectUrl #975

akamarouski opened this issue Jun 5, 2024 · 3 comments
Labels

Comments

@akamarouski
Copy link

We request remoteConnectUrl from STF with another information about device for mcloud-grid but from time to time this information missed from STF.

This issue happens randomly.

@akamarouski akamarouski added the bug label Jun 5, 2024
@vdelendik
Copy link
Contributor

reoteConnectUrl is inited only after start using device because stf start adb proxying and can utilize range of ports as I remember.

@ignacionar
Copy link
Collaborator

Yes, the value needs to be generated first with these conditions:

  • The android device is available
  • The android device is being used
  • The android device owner matches with the device user, or the user is an Admin

The remoteConnectUrl value can be generated with this endpoint, but needs to follow the same conditions:

curl -X POST -H "Authorization: Bearer <token>" -H 'Content-Type: application/json' <stf-url>/api/v1/users/<email>/devices/<udid>/remoteConnect

@akamarouski
Copy link
Author

All this conditions done before we trying to get remoteConnectUrl in mcloud-grid.

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

No branches or pull requests

3 participants