[GH-ISSUE #615] unable to upload gifs most of the time #506

Closed
opened 2026-02-26 09:31:42 +03:00 by kerem · 7 comments
Owner

Originally created by @kingjasko on GitHub (Mar 16, 2020).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/615

unable to upload gifs most of the time

The remote server returned an error: (400) Bad Request.

at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ScreenToGif.Util.WebHelper.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ScreenToGif.Cloud.Imgur.Imgur.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ScreenToGif.Windows.Other.Encoder.d__24.MoveNext()

Originally created by @kingjasko on GitHub (Mar 16, 2020). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/615 unable to upload gifs most of the time The remote server returned an error: (400) Bad Request. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at ScreenToGif.Util.WebHelper.<SendFile>d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at ScreenToGif.Cloud.Imgur.Imgur.<UploadFileAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at ScreenToGif.Windows.Other.Encoder.<Encode>d__24.MoveNext()
kerem closed this issue 2026-02-26 09:31:42 +03:00
Author
Owner

@NickeManarin commented on GitHub (Mar 16, 2020):

Which version are you using? Also, where did you download it from?
(From the releases, using from the source, third part, etc).

<!-- gh-comment-id:599638097 --> @NickeManarin commented on GitHub (Mar 16, 2020): Which version are you using? Also, where did you download it from? (From the releases, using from the source, third part, etc).
Author
Owner

@kingjasko commented on GitHub (Mar 16, 2020):

2.20.1

from here : https://www.screentogif.com/downloads.html

i will try updating it to latest version i'll let u know if it works

<!-- gh-comment-id:599642476 --> @kingjasko commented on GitHub (Mar 16, 2020): 2.20.1 from here : https://www.screentogif.com/downloads.html i will try updating it to latest version i'll let u know if it works
Author
Owner

@kingjasko commented on GitHub (Mar 16, 2020):

latest 2.22.1 version seems to be working correctly, i'll post here if the problem arises again, thanks for the quick support.

<!-- gh-comment-id:599648259 --> @kingjasko commented on GitHub (Mar 16, 2020): latest 2.22.1 version seems to be working correctly, i'll post here if the problem arises again, thanks for the quick support.
Author
Owner

@NickeManarin commented on GitHub (Mar 16, 2020):

Great. Closing this issue.

<!-- gh-comment-id:599650084 --> @NickeManarin commented on GitHub (Mar 16, 2020): Great. Closing this issue.
Author
Owner

@kingjasko commented on GitHub (Mar 30, 2020):

I got it again on the latest version. Saving the gif to my pc and uploading manually to imgur worked, but uploading through ScreenToGif gave an error. I tested it a few more times and it worked once in about 5-6 tries.

at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ScreenToGif.Util.WebHelper.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ScreenToGif.Cloud.Imgur.Imgur.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ScreenToGif.Windows.Other.Encoder.d__24.MoveNext()

<!-- gh-comment-id:605722806 --> @kingjasko commented on GitHub (Mar 30, 2020): I got it again on the latest version. Saving the gif to my pc and uploading manually to imgur worked, but uploading through ScreenToGif gave an error. I tested it a few more times and it worked once in about 5-6 tries. > at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) > at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) > --- End of stack trace from previous location where exception was thrown --- > at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() > at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) > at ScreenToGif.Util.WebHelper.<SendFile>d__6.MoveNext() > --- End of stack trace from previous location where exception was thrown --- > at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() > at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) > at ScreenToGif.Cloud.Imgur.Imgur.<UploadFileAsync>d__5.MoveNext() > --- End of stack trace from previous location where exception was thrown --- > at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() > at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) > at ScreenToGif.Windows.Other.Encoder.<Encode>d__24.MoveNext()
Author
Owner

@NickeManarin commented on GitHub (Mar 31, 2020):

Can you share with me the project that you are trying to upload?

Perhaps you are hitting a limit (size, length, quantity)...

<!-- gh-comment-id:606641745 --> @NickeManarin commented on GitHub (Mar 31, 2020): Can you share with me the project that you are trying to upload? Perhaps you are hitting a limit (size, length, quantity)...
Author
Owner

@kingjasko commented on GitHub (Jun 22, 2020):

after some more testing, I'm pretty certain the problem might be in size of the gifs im trying to upload, imgur makes the bigger gifs into .mp4 ending, i dont know what connection that would have with anything, but it always fails to upload when that happens, but with smaller gifs (under 10MB it seems) it does the job nicely

The remote server returned an error: (400) Bad Request.

<!-- gh-comment-id:647512234 --> @kingjasko commented on GitHub (Jun 22, 2020): after some more testing, I'm pretty certain the problem might be in size of the gifs im trying to upload, imgur makes the bigger gifs into .mp4 ending, i dont know what connection that would have with anything, but it always fails to upload when that happens, but with smaller gifs (under 10MB it seems) it does the job nicely The remote server returned an error: (400) Bad Request.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#506
No description provided.