ClientLibrary Error

Hi Sebastian,

Sometimes I get an error on line 69 in the AuthenticatingHttpMessageHandler class on the clientlibrary in a project and the application crashes.

Error log: Collection was modified; enumeration operation may not execute.

Do you have any idea about this issue? can you help?

Which Version? There is no line 69 in current Version


Current main repo.

this method.

I think this occurs when trying to edit the headers.authorization section.

There should be no concurrency involved…weird

Do you have the full stack trace? I have also found this:

Do you use NewRelic?

I solved this problem after a long struggle. Your version is not faulty. I was adding the x-language parameter related to Graphql to the http requests every time, which increased the size of the requests and caused completely different errors after a while.