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

Getting error 422 when running setPresenter query #20

Open
gwhizoftv opened this issue Nov 9, 2022 · 0 comments
Open

Getting error 422 when running setPresenter query #20

gwhizoftv opened this issue Nov 9, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gwhizoftv
Copy link

gwhizoftv commented Nov 9, 2022

Describe the bug
When trying to start screenshare in appbuilder, we run the setPresenter query, and after setNormal:

`
const SET_PRESENTER = gql
mutation setPresenter($uid: Int!, $passphrase: String!) {
setPresenter(uid: $uid, passphrase: $passphrase)
}
;

const SET_NORMAL = gql
mutation setNormal($passphrase: String!) {
setNormal(passphrase: $passphrase)
}
;`

setPresenterQuery({ variables: { uid: screenShareUid, passphrase: phrase, }, }) .then((res) => { if (res.data.setPresenter === 'success') { console.log("button presenter ok " + res.data); } }) .catch((err) => { console.log("button presenter can't add "); console.log(err); });

We catch the error as:

Screen Shot 2022-11-09 at 12 51 34 PM

To Reproduce
Steps to reproduce the behavior:

  1. Log in to (https://www.ugcesports.gg/match/lobby/726e43f6-fe47-4dfb-85ac-a170e0760a33) as player1, password player1
  2. Scroll down and click add webcam. Complete the dialogue to add webcam.
  3. Click on the Screenshare icon
  4. See error in chrome console

Expected behavior
Screenshare works and is visible

Screenshots
If applicable, add screenshots to help explain your problem.
Screen Shot 2022-11-09 at 12 49 05 PM

Environment (please complete the following information):

  • Deployment Method Source->docker
  • Go Version [e.g. 1.15.1] 1.15.1

Additional context
We are not seeing something from the server in /var/log/syslog about this error. Where should we be looking?

In the original code, we set the "phrase" from the URL params of our route.
How should we be setting the "phrase" now?

Backtrace

<backtrace>

@gwhizoftv gwhizoftv added the bug Something isn't working label Nov 9, 2022
@gwhizoftv gwhizoftv changed the title Getting error 422 when running Getting error 422 when running setPresenter query Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants