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

Role sync lacks error handling for members not being in the Discord server #15

Open
Dinty1 opened this issue Feb 1, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Dinty1
Copy link
Member

Dinty1 commented Feb 1, 2025

[17:45:50 ERROR]: [DiscordSRV-Ascension] Error in Group sync muted<->795445511863009331 for c1570a34-8b42-3ba9-8ba6-cdfb5f98f990 (sync cause: Joined game)
com.discordsrv.dependencies.net.dv8tion.jda.api.exceptions.ErrorResponseException: 10007: Unknown Member
	at DiscordSRV-Bukkit-3.0.0-SNAPSHOT-45073c8-1738431721267.jar/com.discordsrv.dependencies.net.dv8tion.jda.api.exceptions.ErrorResponseException.create(ErrorResponseException.java:206) ~[DiscordSRV-Bukkit-3.0.0-SNAPSHOT-45073c8-1738431721267.jar:?]
...
	at DiscordSRV-Bukkit-3.0.0-SNAPSHOT-45073c8-1738431721267.jar/com.discordsrv.dependencies.net.dv8tion.jda.api.requests.RestAction.submit(RestAction.java:703) ~[DiscordSRV-Bukkit-3.0.0-SNAPSHOT-45073c8-1738431721267.jar:?]
	at com.discordsrv.common.discord.api.entity.guild.DiscordGuildImpl.lambda$retrieveMemberById$1(DiscordGuildImpl.java:67) ~[?:?]
	at com.discordsrv.common.discord.api.DiscordAPIImpl.mapExceptions(DiscordAPIImpl.java:92) ~[?:?]
	at com.discordsrv.common.discord.api.entity.guild.DiscordGuildImpl.retrieveMemberById(DiscordGuildImpl.java:66) ~[?:?]
	at com.discordsrv.common.feature.groupsync.GroupSyncModule.getDiscord(GroupSyncModule.java:211) ~[?:?]
	at com.discordsrv.common.feature.groupsync.GroupSyncModule.getDiscord(GroupSyncModule.java:47) ~[?:?]
	at com.discordsrv.common.abstraction.sync.AbstractSyncModule.resync(AbstractSyncModule.java:372) ~[?:?]
	at com.discordsrv.common.abstraction.sync.AbstractSyncModule.lambda$resyncAll$10(AbstractSyncModule.java:342) ~[?:?]
	at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:684) ~[?:?]
	at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:662) ~[?:?]
	at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2200) ~[?:?]
	at com.discordsrv.common.abstraction.sync.AbstractSyncModule.resyncAll(AbstractSyncModule.java:333) ~[?:?]
	at com.discordsrv.common.abstraction.sync.AbstractSyncModule.onPlayerConnected(AbstractSyncModule.java:166) ~[?:?]
Caused by: com.discordsrv.dependencies.net.dv8tion.jda.api.exceptions.ContextException

	at com.discordsrv.common.core.eventbus.EventBusImpl.publishEvent(EventBusImpl.java:258) ~[?:?]
	at com.discordsrv.common.core.eventbus.EventBusImpl.publish(EventBusImpl.java:204) ~[?:?]
	at com.discordsrv.common.abstraction.player.provider.AbstractPlayerProvider.lambda$addPlayer$0(AbstractPlayerProvider.java:71) ~[?:?]
	at com.discordsrv.common.core.scheduler.StandardScheduler.lambda$wrap$0(StandardScheduler.java:95) ~[?:?]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) ~[?:?]
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
	... 3 more

Some irrelevant lines removed
Debugger: https://discordsrv.vankka.dev/debug/1r1hzgwt8t#uApp12yfw35cQFuZK6Ovww

@Dinty1 Dinty1 added the bug Something isn't working label Feb 1, 2025
@Dinty1 Dinty1 changed the title Role sync seems unable to handle members not being in the Discord server Role sync lacks error handling for members not being in the Discord server Feb 1, 2025
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

1 participant