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

Updating sets on Discord driver unsuccessful #43

Closed
LuciousLisa opened this issue Oct 1, 2020 · 10 comments
Closed

Updating sets on Discord driver unsuccessful #43

LuciousLisa opened this issue Oct 1, 2020 · 10 comments
Labels
drivers/discord Discord driver related issues help wanted Extra attention is needed

Comments

@LuciousLisa
Copy link

SeAT v4
SeAT Connector v2.0.2
Discord Connector v5.0.0

Expected result: being able to choose Discord roles so that they can be assigned.
Current result: no Discord roles available to assign to SeAT roles, corp titles, etc.

Steps to reproduce:

  • On Discord: drag bot role to top of roles list in server settings
  • On SeAT: navigate to Connector > Settings
  • Select Discord in drivers dropdown, click Update Sets button
  • Keep an eye on Horizon jobs to see the job DriverUpdateSets running (orange pause icon)
  • After several minutes, see Horizon job get red cross icon, indicating failure (note that the job does not show under Failed Jobs in Horizon)
  • Navigate to Connector > Access Management
  • Select type: Role Filters, select role: Full members
  • Type in Set field Mem (from Members role available on Discord)
  • Result: No results found

Please let me know if I'm doing something wrong or if there's something else I could be doing to resolve this issue. If not, then please consider this a bug report. If more info is needed I'll be happy to provide logs, screenshots etc.

@warlof
Copy link
Owner

warlof commented Oct 1, 2020

After several minutes, see Horizon job get red cross icon, indicating failure (note that the job does not show under Failed Jobs in Horizon)

What's the reason of the failure? You should get it by going in the job. In all case, if the job is failing, you can't get anything in SeAT.

@LuciousLisa
Copy link
Author

LuciousLisa commented Oct 1, 2020

Where should I be able to find a reason for the failure? I'll add the following screenshots to illustrate what I'm seeing in Horizon.

I understand that failed jobs result in a lack of data. Please advice on how to proceed to resolve this issue.

@AstralDestiny
Copy link

AstralDestiny commented Oct 14, 2020

GuzzleHttp\Exception\ClientException: Client error: GET https://discord.com/api/guilds/734916090597212221/roles resulted in a 401 Unauthorized response:

{"message": "401: Unauthorized", "code": 0}
in /var/www/seat/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113

I pretty much get this, Don't know what I'm doing wrong if anything?
Same steps as the above but confused on the 401 Unauthorized response when I try and pull roles.

@AstralDestiny
Copy link

Warlof\Seat\Connector\Jobs\DriverUpdateSets
Stack Trace from Horizon https://pastebin.com/KXsGThnD
And
Warlof\Seat\Connector\Jobs\DriverApplyPolicies
Stack Trace from Horizon https://pastebin.com/r9MRx3yj

DATA:
{ client: null, driver: "discord", tags: [ "connector", "discord" ], job: null, connection: null, queue: "high", chainConnection: null, chainQueue: null, delay: null, middleware: [ ], chained: [ ] }

@AstralDestiny
Copy link

Ah nvm Got it all working :)

@LuciousLisa
Copy link
Author

Ah nvm Got it all working :)

Would you mind telling us how? I have yet to receive a reply from the dev and would love to solve this as well. Please provide the steps you took to resolve the problem.

@AstralDestiny
Copy link

Ah nvm Got it all working :)

Would you mind telling us how? I have yet to receive a reply from the dev and would love to solve this as well. Please provide the steps you took to resolve the problem.

I thought I needed
warlof/seat-discord-connector and warlof/seat-connector for the discord driver to function but no just needed the First :)

@kevinouw
Copy link

@LuciousLisa
Copy link
Author

Note that neither of these solutions (remove connector & reassign bot) have resulted in a fix for this issue.

@warlof
Copy link
Owner

warlof commented Nov 10, 2020

Hi,

what about this check on the bot app ?
seems a new thing, according to some user, it seems to fix the sync.

image

@warlof warlof added drivers/discord Discord driver related issues drivers/other Driver related issues help wanted Extra attention is needed and removed drivers/other Driver related issues labels Nov 10, 2020
@warlof warlof closed this as completed Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drivers/discord Discord driver related issues help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants