An item with the same key has already been added. Key: User-AgentFixed

Hi Guys,

New error, any idea?


[uMod] 3:54 PM [Info] Loading uMod v1.0.1102...
[uMod] 3:54 PM [Info] Loading core extensions...
[uMod] 3:54 PM [Info] Unity version: 2019.4.20f1
[uMod] 3:54 PM [Info] Loaded extension uMod.Unity v1.0.412 by uMod Project Team and Contributors
[uMod] 3:54 PM [Info] Loaded extension uMod.Valheim v1.0.155 by uMod Project Team and Contributors
[uMod] 3:54 PM [Info] Using universal provider for game 'Valheim'
[uMod] 3:54 PM [Info] [Valheim] uMod version 1.0.1102 running on Valheim server version 0.147.3
[uMod] 3:54 PM [Info] IP address from external API: *.*.*.*
[uMod] 3:55 PM [Info] Loading user extensions...
[uMod] 3:55 PM [Info] Loading plugins...
[uMod] 3:55 PM [Error] Database failure: Database disconnected message was null
[uMod] 3:55 PM [Error] Database failure: Database *.*.*.* was closed unexpectedly
[uMod] 3:55 PM [Error] Exception while calling NextTick callback (ArgumentException: An item with the same key has already been added. Key: User-Agent)
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at uMod.Web.Request.GetData () [0x00037] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Web.Request.Invoke () [0x0000a] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Web.Client.Request (uMod.Common.Web.WebRequestMethod method, System.String url, System.Collections.Generic.IDictionary`2[TKey,TValue] headers, System.String body, System.Collections.Generic.IDictionary`2[TKey,TValue] cookies, System.Single timeout) [0x00048] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Web.Client.Post (System.String url, System.Collections.Generic.IDictionary`2[TKey,TValue] headers, System.String body, System.Collections.Generic.IDictionary`2[TKey,TValue] cookies, System.Single timeout) [0x00000] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.SentryLogger.SendSentryEvent (System.String message, System.Exception exception) [0x00182] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.SentryLogger.Write (uMod.Common.LogLevel level, System.String message) [0x00004] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.StackLogger.Write (uMod.Common.LogLevel level, System.String message) [0x0001f] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.PipeLogger.Write (uMod.Common.LogLevel level, System.String message) [0x00023] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.Logger.Error (System.String message) [0x00000] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Apps.Database.OnFailed (System.String reason) [0x00096] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Apps.BaseApp+<>c__DisplayClass33_0.<Fail>b__0 () [0x00000] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Module.OnFrame (System.Single delta) [0x0004c] in <97dbb7fcea6b4351bd80aecb35b4db55>:0

It isn't something to worry about, but we'll get it fixed. Thanks for the report!

Thanks Wulf, but none of my plugins work? is that normal?

The above error is related to webrequests, not plugin loading. I do not see any plugins even trying to load according to your log, do you have them under umod/plugins? That log is also dated as being old, are you sure uMod is installed?

Hey,

Yes this is the full log, and its up to date, its 4:40pm in my country now


[uMod] 4:25 PM [Info] Loading uMod v1.0.1102...
[uMod] 4:25 PM [Info] Loading core extensions...
[uMod] 4:25 PM [Info] Unity version: 2019.4.20f1
[uMod] 4:25 PM [Info] Loaded extension uMod.Unity v1.0.412 by uMod Project Team and Contributors
[uMod] 4:25 PM [Info] Loaded extension uMod.Valheim v1.0.155 by uMod Project Team and Contributors
[uMod] 4:25 PM [Info] Using universal provider for game 'Valheim'
[uMod] 4:25 PM [Info] [Valheim] uMod version 1.0.1102 running on Valheim server version 0.147.3
[uMod] 4:25 PM [Info] IP address from external API: *.*.*.*
[uMod] 4:25 PM [Info] Loading user extensions...
[uMod] 4:25 PM [Info] Loading plugins...
[uMod] 4:25 PM [Error] Database failure: Database disconnected message was null
[uMod] 4:25 PM [Error] Database failure: Database *.*.*.* was closed unexpectedly
[uMod] 4:25 PM [Error] Exception while calling NextTick callback (ArgumentException: An item with the same key has already been added. Key: User-Agent)
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at uMod.Web.Request.GetData () [0x00037] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Web.Request.Invoke () [0x0000a] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Web.Client.Request (uMod.Common.Web.WebRequestMethod method, System.String url, System.Collections.Generic.IDictionary`2[TKey,TValue] headers, System.String body, System.Collections.Generic.IDictionary`2[TKey,TValue] cookies, System.Single timeout) [0x00048] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Web.Client.Post (System.String url, System.Collections.Generic.IDictionary`2[TKey,TValue] headers, System.String body, System.Collections.Generic.IDictionary`2[TKey,TValue] cookies, System.Single timeout) [0x00000] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.SentryLogger.SendSentryEvent (System.String message, System.Exception exception) [0x00182] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.SentryLogger.Write (uMod.Common.LogLevel level, System.String message) [0x00004] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.StackLogger.Write (uMod.Common.LogLevel level, System.String message) [0x0001f] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.PipeLogger.Write (uMod.Common.LogLevel level, System.String message) [0x00023] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.Logger.Error (System.String message) [0x00000] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Apps.Database.OnFailed (System.String reason) [0x00096] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Apps.BaseApp+<>c__DisplayClass33_0.<Fail>b__0 () [0x00000] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Module.OnFrame (System.Single delta) [0x0004c] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
[uMod] 4:25 PM [Error] Exception while calling NextTick callback (ArgumentException: An item with the same key has already been added. Key: User-Agent)
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at uMod.Web.Request.GetData () [0x00037] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Web.Request.Invoke () [0x0000a] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Web.Client.Request (uMod.Common.Web.WebRequestMethod method, System.String url, System.Collections.Generic.IDictionary`2[TKey,TValue] headers, System.String body, System.Collections.Generic.IDictionary`2[TKey,TValue] cookies, System.Single timeout) [0x00048] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Web.Client.Post (System.String url, System.Collections.Generic.IDictionary`2[TKey,TValue] headers, System.String body, System.Collections.Generic.IDictionary`2[TKey,TValue] cookies, System.Single timeout) [0x00000] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.SentryLogger.SendSentryEvent (System.String message, System.Exception exception) [0x00182] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.SentryLogger.Report (System.String message, System.Exception ex) [0x00000] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Logging.StackLogger.Report (System.String message, System.Exception ex) [0x00030] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Module.OnFrame (System.Single delta) [0x00066] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Plugins.PluginProvider.LoadAll (System.Boolean init) [0x000fa] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Module.LoadUserDomain () [0x00155] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
at uMod.Module.OnFrame (System.Single delta) [0x0004c] in <97dbb7fcea6b4351bd80aecb35b4db55>:0
[uMod] 4:30 PM [Info] [Chat] Rislem said: I have arrived!



Merged post

The server is on, and I juts tried to remove the 2 plugins and put them back, nothing happens, compiler doesnt update nor does umod.log

Merged post

update, the CPU is also spiking like a monster, 

Merged post

Cool so I did a reinstall, 
Started the server
Stopped and installed umod. I got the below bottom part so it looks good:

100.00% valheim_server_Data\sharedassets1.resource
Depot 896662 - Downloaded 0 bytes (0 bytes uncompressed)
Total downloaded: 0 bytes (0 bytes uncompressed) from 2 depots
Disconnected from Steam
Downloaded installer valheim-1.0.155-develop (from cache)
Core updated
Valheim server updated
Downloaded installer umod-webclient-1.0.301-develop (from cache)
Downloaded installer umod-compiler-1.0.423-develop (from cache)
Downloaded installer umod-database-1.0.343-develop (from cache)
App update successful
The script has executed successfully. You may close this window.

Now I started the game and get below in my umod.log file
Adding a plugin does nothing, so whatever this error is, it is causing umod to not work at all for me.

Could you verify what the "umod --version" command shows?

PS C:\Users\Administrator> umod --version
uMod Agent - (1.2.312)

Merged post

It seesm I am only getting this on one of my dedicated boxes, is there a way to uninstall the agent ?

dotnet tool uninstall uMod --global

The User-Agent issue will be fixed with the next update.

AKzuDfeqNctLGB1.png Calytic
dotnet tool uninstall uMod --global

The User-Agent issue will be fixed with the next update.

Did you mean install or update?

I want to completely remove umod agent from the server that isnt working, like I said my other dedicated boxes work but not this one, 

Rislem

I want to completely remove umod agent from the server that isnt working, like I said my other dedicated boxes work but not this one, 

The command would be what Calytic provided then.
Locked automatically