InvalidCastException at GetAttachmentsFixed

Failed to call hook 'OnDeathNotice' on plugin 'DiscordDeath v2.1.0' (InvalidCastException: Object must implement IConvertible.) at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in :0 at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in :0 at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <9882f28dc2204b4dba514a9ad18f5042>:0 at Oxide.Plugins.DiscordDeath.GetAttachments (HitInfo info) [0x0000e] in :0 at Oxide.Plugins.DiscordDeath.CreateDeathData (Oxide.Plugins.DiscordDeath+DeathNotesData data, System.String message) [0x001b3] in :0 at Oxide.Plugins.DiscordDeath.OnDeathNotice (System.Collections.Generic.Dictionary`2[TKey,TValue] data, System.String message) [0x00112] in :0 at Oxide.Plugins.DiscordDeath.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019e] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0 [Death Notes] eduardoc303 did not want to be a part of the Dr. Poole's experiments. Dr. Poole[6685402] was killed by eduardoc303[76561############] Failed to call hook 'OnDeathNotice' on plugin 'DiscordDeath v2.1.0' (InvalidCastException: Object must implement IConvertible.) at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in :0 at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in :0 at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <9882f28dc2204b4dba514a9ad18f5042>:0 at Oxide.Plugins.DiscordDeath.GetAttachments (HitInfo info) [0x0000e] in :0 at Oxide.Plugins.DiscordDeath.CreateDeathData (Oxide.Plugins.DiscordDeath+DeathNotesData data, System.String message) [0x001b3] in :0 at Oxide.Plugins.DiscordDeath.OnDeathNotice (System.Collections.Generic.Dictionary`2[TKey,TValue] data, System.String message) [0x00112] in :0 at Oxide.Plugins.DiscordDeath.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019e] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0 [Death Notes] eduardoc303 did not want to be a part of the Dr. Powell's experiments. Dr. Powell[7969752] was killed by eduardoc303[76561############] Failed to call hook 'OnDeathNotice' on plugin 'DiscordDeath v2.1.0' (InvalidCastException: Object must implement IConvertible.) at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in :0 at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in :0 at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <9882f28dc2204b4dba514a9ad18f5042>:0 at Oxide.Plugins.DiscordDeath.GetAttachments (HitInfo info) [0x0000e] in :0 at Oxide.Plugins.DiscordDeath.CreateDeathData (Oxide.Plugins.DiscordDeath+DeathNotesData data, System.String message) [0x001b3] in :0 at Oxide.Plugins.DiscordDeath.OnDeathNotice (System.Collections.Generic.Dictionary`2[TKey,TValue] data, System.String message) [0x00112] in :0 at Oxide.Plugins.DiscordDeath.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019e] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

I am seeing stuff like this as wellย 

Failed to call hook 'OnDeathNotice' on plugin 'DiscordDeath v2.1.0' (InvalidCastException: Object must implement IConvertible.)
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <9882f28dc2204b4dba514a9ad18f5042>:0
6kb/s in, 40kb/s out
at Oxide.Plugins.DiscordDeath.GetAttachments (HitInfo info) [0x0000e] in <2ecbd10f77eb412d8cf87ff49d944ad7>:0
at Oxide.Plugins.DiscordDeath.CreateDeathData (Oxide.Plugins.DiscordDeath+DeathNotesData data, System.String message) [0x001b3] in <2ecbd10f77eb412d8cf87ff49d944ad7>:0
at Oxide.Plugins.DiscordDeath.OnDeathNotice (System.Collections.Generic.Dictionary`2[TKey,TValue] data, System.String message) [0x00112] in <2ecbd10f77eb412d8cf87ff49d944ad7>:0
at Oxide.Plugins.DiscordDeath.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019e] in <2ecbd10f77eb412d8cf87ff49d944ad7>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

Having same errors



Merged post

error is resolved in reverting to previous version of deathnotes. 6.3.5

Merged post

https://github.com/LaserHydra/DeathNotes/issues/7

ย 

Thank you @shady14u for your investigative work.

Failed to call hook 'OnDeathNotice' on plugin 'DiscordDeath v2.1.0' (InvalidCastException: Object must implement IConvertible.)
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in :0
at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in :0
at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Plugins.DiscordDeath.GetAttachments (HitInfo info) [0x0000e] in :0
at Oxide.Plugins.DiscordDeath.CreateDeathData (Oxide.Plugins.DiscordDeath+DeathNotesData data, System.String message) [0x001b3] in :0
at Oxide.Plugins.DiscordDeath.OnDeathNotice (System.Collections.Generic.Dictionary`2[TKey,TValue] data, System.String message) [0x00112] in :0
at Oxide.Plugins.DiscordDeath.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019e] in :0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

i keep getting those errors.

I also encountered this error. Discord only displays animal kills

i getting this error on console !pls help me
Thanks

Failed to call hook 'OnDeathNotice' on plugin 'DiscordDeath v2.1.0' (InvalidCastException: Object must implement IConvertible.)
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Plugins.DiscordDeath.GetAttachments (HitInfo info) [0x0000e] in <2788d400f4c448afa4a035eea18abc29>:0 
  at Oxide.Plugins.DiscordDeath.CreateDeathData (Oxide.Plugins.DiscordDeath+DeathNotesData data, System.String message) [0x001b3] in <2788d400f4c448afa4a035eea18abc29>:0 
  at Oxide.Plugins.DiscordDeath.OnDeathNotice (System.Collections.Generic.Dictionary`2[TKey,TValue] data, System.String message) [0x00112] in <2788d400f4c448afa4a035eea18abc29>:0 
  at Oxide.Plugins.DiscordDeath.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019e] in <2788d400f4c448afa4a035eea18abc29>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0 

nvm, i solved this by myself. i changed deathnotes to older version and its working fine.

buenas. tengo este error y no envia a discord

(15:08:58) | Failed to call hook 'OnDeathNotice' on plugin 'DiscordDeath v2.1.0' (InvalidCastException: Object must implement IConvertible.)

at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0

at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0

at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <9882f28dc2204b4dba514a9ad18f5042>:0

at Oxide.Plugins.DiscordDeath.GetAttachments (HitInfo info) [0x0000e] in <a6a08cafc78347ad97bf6540a5c352d7>:0

at Oxide.Plugins.DiscordDeath.CreateDeathData (Oxide.Plugins.DiscordDeath+DeathNotesData data, System.String message) [0x001b3] in <a6a08cafc78347ad97bf6540a5c352d7>:0

at Oxide.Plugins.DiscordDeath.OnDeathNotice (System.Collections.Generic.Dictionary`2[TKey,TValue] data, System.String message) [0x00112] in <a6a08cafc78347ad97bf6540a5c352d7>:0

at Oxide.Plugins.DiscordDeath.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019e] in <a6a08cafc78347ad97bf6540a5c352d7>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

DeathNotes pushed an update that is not compatible with this version and breaks the plugin due to internal changes. I have summited a request to update the plugin so that this plugin can work again. Until then you will need to downgrade to DeathNotes version < 6.3.5

@MJSU, thanks, we're waiting! ๐Ÿ˜Ž

I'm also seeing the same error:

Failed to call hook 'OnDeathNotice' on plugin 'DiscordDeath v2.1.0' (InvalidCastException: Object must implement IConvertible.)
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <12678b905a6d43c3a9cc366104306651>:0 
  at Oxide.Plugins.DiscordDeath.GetAttachments (HitInfo info) [0x0000e] in <26d9bdac8e0e4576af7d485fdf00ebed>:0 
  at Oxide.Plugins.DiscordDeath.CreateDeathData (Oxide.Plugins.DiscordDeath+DeathNotesData data, System.String message) [0x001b3] in <26d9bdac8e0e4576af7d485fdf00ebed>:0 
  at Oxide.Plugins.DiscordDeath.OnDeathNotice (System.Collections.Generic.Dictionary`2[TKey,TValue] data, System.String message) [0x00112] in <26d9bdac8e0e4576af7d485fdf00ebed>:0 
  at Oxide.Plugins.DiscordDeath.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019e] in <26d9bdac8e0e4576af7d485fdf00ebed>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <12678b905a6d43c3a9cc366104306651>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <12678b905a6d43c3a9cc366104306651>:0โ€‹

I have the same problem:

Failed to call hook 'OnDeathNotice' on plugin 'DiscordDeath v2.1.0' (InvalidCastException: Object must implement IConvertible.)
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <12678b905a6d43c3a9cc366104306651>:0 
  at Oxide.Plugins.DiscordDeath.GetAttachments (HitInfo info) [0x0000e] in <657c395c48494c5eb72546a17ebcf628>:0 
  at Oxide.Plugins.DiscordDeath.CreateDeathData (Oxide.Plugins.DiscordDeath+DeathNotesData data, System.String message) [0x001b3] in <657c395c48494c5eb72546a17ebcf628>:0 
  at Oxide.Plugins.DiscordDeath.OnDeathNotice (System.Collections.Generic.Dictionary`2[TKey,TValue] data, System.String message) [0x00112] in <657c395c48494c5eb72546a17ebcf628>:0 
  at Oxide.Plugins.DiscordDeath.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019e] in <657c395c48494c5eb72546a17ebcf628>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <12678b905a6d43c3a9cc366104306651>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <12678b905a6d43c3a9cc366104306651>:0โ€‹

Can someone help me?

I get this after killing a pig.ย  I do get some messages in Discord but when I killed this pig it didn't show in Discord.ย  Am I missing something or does the plugin just need to be updated?

Failed to call hook 'OnDeathNotice' on plugin 'DiscordDeath v2.1.0' (InvalidCastException: Object must implement IConvertible.)
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
7kb/s in, 74kb/s out
at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <12678b905a6d43c3a9cc366104306651>:0
at Oxide.Plugins.DiscordDeath.GetAttachments (HitInfo info) [0x0000e] in <25e3d57654cc48fe80bd94663c4c9882>:0
at Oxide.Plugins.DiscordDeath.CreateDeathData (Oxide.Plugins.DiscordDeath+DeathNotesData data, System.String message) [0x001b3] in <25e3d57654cc48fe80bd94663c4c9882>:0
at Oxide.Plugins.DiscordDeath.OnDeathNotice (System.Collections.Generic.Dictionary`2[TKey,TValue] data, System.String message) [0x00112] in <25e3d57654cc48fe80bd94663c4c9882>:0
at Oxide.Plugins.DiscordDeath.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019e] in <25e3d57654cc48fe80bd94663c4c9882>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <12678b905a6d43c3a9cc366104306651>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <12678b905a6d43c3a9cc366104306651>:0

Has anyone been able to fix the plugin?

Locked automatically