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

Could not return device to the STF. Status: 403 #902

Open
akamarouski opened this issue Feb 28, 2024 · 1 comment
Open

Could not return device to the STF. Status: 403 #902

akamarouski opened this issue Feb 28, 2024 · 1 comment
Labels
Milestone

Comments

@akamarouski
Copy link

akamarouski commented Feb 28, 2024

When running automation we got such error when grid tries to return reserved device to the STF:
Could not return device to the STF. Status: 403. At the same moment we got Could not disconnect 'remoteConnect'. error. This error appears with different android and iOS devices.
Visually they were disconnected in STF for a certain period of time.

These endpoints need to be tested under high load for a long time.

@vdelendik vdelendik added this to the 2.7 milestone Mar 19, 2024
@vdelendik vdelendik modified the milestones: 2.7, 3.0 May 20, 2024
@ignacionar
Copy link
Collaborator

ignacionar commented Jun 14, 2024

The response with 403 status will be returned if:

  1. The device is not being used/controlled in STF by the user
  2. The submitted token does not belong from the user controlling the device or from an Admin. user

It could be good to check if a user is using the device first, if this request returns 403, there's no user controlling the device:

curl -H "Authorization: Bearer <adminUser-token>" -H 'Content-Type: application/json' <stf-url>/api/v1/users/devices/{serial}

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

No branches or pull requests

3 participants