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

[BUG] Upload fails with InvalidOperationException #105

Closed
LukasQ opened this issue Aug 21, 2024 · 3 comments
Closed

[BUG] Upload fails with InvalidOperationException #105

LukasQ opened this issue Aug 21, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@LukasQ
Copy link

LukasQ commented Aug 21, 2024

Hi there

I'm on windows11 and Slackord:latest and this pops up all the time. Restart or reconnect don't help
It is somehow random. If I retry in some channels, it's again working, others keep failing.

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at Slackord.Classes.DiscordBot.PostMessagesToDiscord(UInt64 guildID, SocketInteraction interaction) in D:\GitHub Projects\Slackord\Slackord\Classes\DiscordBot.cs:line 293
   at Slackord.Classes.DiscordBot.SlashCommandHandler(SocketSlashCommand command) in D:\GitHub Projects\Slackord\Slackord\Classes\DiscordBot.cs:line 98
   at Discord.EventExtensions.InvokeAsync[T](AsyncEvent`1 eventHandler, T arg)
   at Discord.WebSocket.DiscordSocketClient.TimeoutWrap(String name, Func`1 action)```
@LukasQ LukasQ added the bug Something isn't working label Aug 21, 2024
@LukasQ LukasQ changed the title [BUG] [BUG] Upload fails with InvalidOperationException Aug 21, 2024
@LukasQ
Copy link
Author

LukasQ commented Aug 21, 2024

Could it be the case that the deconstruction of larger channels take ages and, as it says, I try to push these in the ETL phase and thus to early?

That's the log msg while importing:

Parsing Users for import...
Successfully parsed 18 users.
Begin parsing JSON data for general with 705 JSON files...
This import appears to be quite large. Reconstructing will take a very long time and the UI may freeze until completed. Please be patient!
Deconstruction/Reconstruction process started...
Exception processing file canvas_in_the_conversation.json: DeconstructMessage(): Error processing property 'editor_id' with value '' in JSON
Completed importing channel general.


Deconstructing 8432 messages for general

and later

Deconstructing 8432 messages for general
Found 140 threads in general.
Reconstructed 8434 messages for general
ReconstructAsync(): Collection was modified; enumeration operation may not execute.

@LukasQ
Copy link
Author

LukasQ commented Aug 22, 2024

Yes, it's the case, I looked only to the progress bar, but not to the logs.
See: #106

@thomasloupe
Copy link
Owner

Tracking this, thanks very much for the detailed report! Have left this closed and am replying in #106 :)

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

2 participants