Open purei opened 6 years ago
I keep getting this as well, it happens pretty often, upon which then I have to manually reboot (why is that getting a nil
, why is it not supervised so it restarts?).
10:38:35.996 [error] GenServer :"Elixir.Alchemy.EventStage.Cacher.2" terminating
** (BadMapError) expected a map, got: nil
(stdlib) :maps.values(nil)
(alchemy) lib/Cache/guilds.ex:79: anonymous fn/1 in Alchemy.Cache.Guilds.de_index/1
(elixir) lib/map.ex:766: Map.get_and_update/3
(alchemy) lib/Cache/guilds.ex:79: anonymous fn/2 in Alchemy.Cache.Guilds.de_index/1
(elixir) lib/enum.ex:1826: Enum."-reduce/3-lists^foldl/2-0-"/3
(alchemy) lib/Discord/events.ex:48: Alchemy.Discord.Events.handle/2
(elixir) lib/enum.ex:1270: Enum."-map/2-lists^map/1-0-"/2
(alchemy) lib/EventStage/cacher.ex:27: Alchemy.EventStage.Cacher.handle_events/3
Last message: {:"$gen_consumer", {#PID<0.336.0>, #Reference<0.3966592715.874250244.217763>}, [{"GUILD_UPDATE", %{"afk_channel_id" => "...
...
Any thoughts as to cause?
Odd that it doesn't restart, considering that it is supervised...
Getting this quite often as well, if it is related, or should it be a new bug report?
(BadMapError) expected a map, got: nil
(stdlib) :maps.values(nil)
(alchemy) lib/cache.ex:189: anonymous fn/1 in Alchemy.Cache.search/2
(elixir) lib/stream.ex:444: anonymous fn/3 in Stream.flat_map/2
(elixir) lib/stream.ex:867: Stream.do_transform_user/6
(elixir) lib/stream.ex:1536: Enumerable.Stream.do_each/4
The bot was logged in to Discord, but user commands were erroring out with this error. Restarting the app fixed things.