DiscordBee icon indicating copy to clipboard operation
DiscordBee copied to clipboard

Can't get image uploading to work.

Open Miguel-Heijmans opened this issue 2 years ago • 2 comments

Describe the bug I can't get the image uploading to work no matter what i try. i've tried looking at older issues and using those possible solutions but no dice. everything else is working as it should.

To Reproduce Steps to reproduce the behavior: start musicbee with discordbee plugin enabled follow instructions in readme check error log See error

Expected behavior images to be uploaded to imgur and be shown in the discord rich presence

Error Log 15/07/2022 22:01:08 - 10.0.19044.0 - 3.5.8150.17011D - System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.Net.Http.HttpRequestException: Error while copying content to a stream. ---> System.IO.IOException: Unable to read data from the transport connection: A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call. ---> System.Net.Sockets.SocketException: A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call at System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state) at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state) --- End of inner exception stack trace --- at System.Net.GZipWrapperStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state) at System.Net.Http.HttpClientHandler.WebExceptionWrapperStream.BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state) at System.Net.Http.StreamToStreamCopy.StartRead() --- End of inner exception stack trace --- at RestSharp.ResponseThrowExtension.ThrowIfError(RestResponse response) at RestSharp.RestClient.<ExecuteAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at RestSharp.RestClientExtensions.<ExecuteAsync>d__111.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at RestSharp.RestClientExtensions.<PostAsync>d__161.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MusicBeePlugin.ImgurClient.ImgurClient.<UploadImage>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MusicBeePlugin.DiscordTools.Assets.Uploader.ImgurUploader.<UploadAsset>d__12.MoveNext() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.Net.Http.HttpRequestException: Error while copying content to a stream. ---> System.IO.IOException: Unable to read data from the transport connection: A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call. ---> System.Net.Sockets.SocketException: A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call at System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state) at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state) --- End of inner exception stack trace --- at System.Net.GZipWrapperStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state) at System.Net.Http.HttpClientHandler.WebExceptionWrapperStream.BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state) at System.Net.Http.StreamToStreamCopy.StartRead() --- End of inner exception stack trace --- at RestSharp.ResponseThrowExtension.ThrowIfError(RestResponse response) at RestSharp.RestClient.<ExecuteAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at RestSharp.RestClientExtensions.<ExecuteAsync>d__111.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at RestSharp.RestClientExtensions.<PostAsync>d__161.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MusicBeePlugin.ImgurClient.ImgurClient.<UploadImage>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MusicBeePlugin.DiscordTools.Assets.Uploader.ImgurUploader.<UploadAsset>d__12.MoveNext()<---

Environment (please complete the following information):

  • MusciBee version: 3.5.8150
  • Plugin Version: 3.0.1
  • Discord Astra client version 1.0.0
  • latest windows 10 version

Additional context the imgur uploader health status is "false" even after refresh

Miguel-Heijmans avatar Jul 15 '22 20:07 Miguel-Heijmans

Have you made sure that your firewall isn't blocking the plugin/MusicBee?

Svarr avatar Jul 21 '22 15:07 Svarr

it is not being blocked by my firewall or by malwarebytes, windows defender has been turned off completely.

Miguel-Heijmans avatar Jul 21 '22 18:07 Miguel-Heijmans