Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception in GetUpdates #35

Closed
appa1303 opened this issue Sep 5, 2015 · 1 comment
Closed

exception in GetUpdates #35

appa1303 opened this issue Sep 5, 2015 · 1 comment

Comments

@appa1303
Copy link

appa1303 commented Sep 5, 2015

Hi,

I am using the last NuGet package 2.0.0.248
After long period of calling GetUpdates in a loop (a few hours)
the following exception is sometimes thrown (from GetUpdates):

System.Net.Http.UnsupportedMediaTypeException: No MediaTypeFormatter is available to read an object of type 'ApiResponse1' from content with media type 'text/html'. at System.Net.Http.HttpContentExtensions.ReadAsAsync[T](HttpContent content, Type type, IEnumerable1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)
at System.Net.Http.HttpContentExtensions.ReadAsAsync[T] (HttpContent content, Type type, IEnumerable1 formatters, IFormatterLogger formatterLogger)
at System.Net.Http.HttpContentExtensions.ReadAsAsync[T] (HttpContent content, IEnumerable1 formatters) at System.Net.Http.HttpContentExtensions.ReadAsAsync[T] (HttpContent content) at Telegram.Bot.Api.<SendWebRequest>d__241.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Telegram.Bot.Api.d__4.MoveNext()

@deinemutterduspasst
Copy link

please update to the new version maybe the problems are solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants