clean-sys / musicbee-rich-presence

Provides Enhanced Rich Presence for MusicBee with Album Artworks, Track Names, Durations, etc...
Do What The F*ck You Want To Public License
16 stars 5 forks source link

Unable to Enable plugin inside MusicBee #1

Closed Senchi3 closed 3 years ago

Senchi3 commented 3 years ago

I've tried everything I can, from running the program with admin privileges, to getting Visual Studio and building the DLL myself, to just flat out reinstalling MusicBee and I just have no idea what's going on. Will post the error log below:

30/04/2021 22:41:25 - 10.0.19042.0 - 3.4.7764.37422D - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: The format of value '' is invalid. at System.Net.Http.Headers.HttpHeaderParser.ParseValue(String value, Object storeValue, Int32& index) at System.Net.Http.Headers.HttpHeaders.ParseAndAddValue(String name, HeaderStoreItemInfo info, String value) at System.Net.Http.Headers.HttpHeaders.Add(String name, String value) at MusicBeePlugin.Plugin.Initialise(IntPtr apiInterfacePtr) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at #=z_aDAVc7sMkwkYxQETg==..ctor(#=zoKrwgApZgrrQua03HQ== #=zmYRlZmg=)

And here is the error message: image

clean-sys commented 3 years ago

Looks like your auth token isn't being set for some reason, are you logged into discord app and do you have .ldb files in %appdata%\discord\Local Storage\leveldb ?

Senchi3 commented 3 years ago

I do have .ldb files in %appdata%\discord\Local Storage\leveldb, and I am logged into Discord.

clean-sys commented 3 years ago

Forgot about this for a couple days, plugin should now be working without any issues. Feel free to try it out