Connection race condition #1

Open
opened 2026-01-25 16:39:46 +00:00 by Izwzyzx · 0 comments
Owner

Since the last major changes to connection by Furret, the bot sometimes tries to start communicating with Discord either before the connection is finished or before the bot is properly authenticated:

hxdiscord/endpoints/Endpoints.hx:107: An error has occurred: Failed to connect on discord.com:443
hxdiscord/endpoints/Endpoints.hx:108: null
hxdiscord/utils/Http.hx:155: 

onequestionmark solves this with a one-second sleep at the top of onReady(), but it should probably be fixed in the library itself.

Since the last major changes to connection by Furret, the bot sometimes tries to start communicating with Discord either before the connection is finished or before the bot is properly authenticated: ```bash hxdiscord/endpoints/Endpoints.hx:107: An error has occurred: Failed to connect on discord.com:443 hxdiscord/endpoints/Endpoints.hx:108: null hxdiscord/utils/Http.hx:155: ``` onequestionmark solves this with a one-second sleep at the top of `onReady()`, but it should probably be fixed in the library itself.
Izwzyzx self-assigned this 2026-01-25 16:39:46 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Izwzyzx/hxdiscord#1
No description provided.