bot
bot copied to clipboard
TypeError: string indices must be integers
Sentry Issue: BOT-34B
TypeError: string indices must be integers
(7 additional frame(s) were not displayed)
...
File "bot/exts/moderation/infraction/_scheduler.py", line 200, in apply_infraction
await action_coro
File "bot/exts/moderation/infraction/infractions.py", line 389, in action
await user.move_to(None, reason=reason)
File "discord/member.py", line 933, in move_to
await self.edit(voice_channel=channel, reason=reason)
File "discord/member.py", line 873, in edit
return Member(data=data, guild=self.guild, state=self._state)
File "discord/member.py", line 343, in __init__
self._user: User = state.store_user(data['user'])
Error in task AntiSpam.punish(message=974314716828680275, member=620164352921829378, rule=duplicates) 140004972291568!
Seems like a possible Discord API/Discord.py bug. WIll investigate further - Chris
Traced it back and the point it gets the wrong type seems to be here: https://github.com/Rapptz/discord.py/blob/7905d63f7c988640a0848cb2a26c8dc3c3eaa862/discord/http.py#L100-L109
(called after the request sent here) https://github.com/Rapptz/discord.py/blob/93e1ff5f074c4a2a65c48e7ca006d0f6b2eb4124/discord/http.py#L440-L444
What I can see seems to suggest discord is responding with a 2xx status code with no content (sentry shows data
is an empty string), Guessing this may be an API error or network issue?
Closing this as I don't think there's anything we can do and it doesn't seem to have appeared since.