Error parsing infinity value

Hi, I have ASP.NET MVC project and call the bellow method in its codes but it return an exception with this message: "Error parsing Infinity value. Path '', line 1, position 1." I...

Hi, I have ASP.NET MVC project and call the bellow method in its codes but it return an exception with this message:
"Error parsing Infinity value. Path '', line 1, position 1."
It dose not send the SMS.
It seems the error is about Json Deserializing.

I checked AccountSid, AuthToken, DestinationPhoneNo, Twilio_PhoneNo and Body. All the values are correct!

What is the reason of this problem?

Version:
5.6.0.0

Code

private MessageResource SendSmsByTwilio(IdentityMessage message)
{
        Twilio.TwilioClient.Init(Consts.Twilio_AccountSid, Consts.Twilio_AuthToken);

        return MessageResource.Create(
                to: new PhoneNumber(message.Destination),
                from: new PhoneNumber(Consts.Twilio_PhoneNo),
                body: message.Body);
}

StackTrace

   at Newtonsoft.Json.JsonTextReader.ParseNumberPositiveInfinity(ReadType readType, Boolean matched)
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonTextReader.Read()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Twilio.Clients.TwilioRestClient.ProcessResponse(Response response)
   at Twilio.Clients.TwilioRestClient.Request(Request request)
   at Twilio.Rest.Api.V2010.Account.MessageResource.Create(CreateMessageOptions options, ITwilioRestClient client)
   at Twilio.Rest.Api.V2010.Account.MessageResource.Create(PhoneNumber to, String pathAccountSid, PhoneNumber from, String messagingServiceSid, String body, List`1 mediaUrl, Uri statusCallback, String applicationSid, Nullable`1 maxPrice, Nullable`1 provideFeedback, Nullable`1 validityPeriod, String maxRate, Nullable`1 forceDelivery, String providerSid, ContentRetentionEnum contentRetention, AddressRetentionEnum addressRetention, ITwilioRestClient client)
   .
   .
   .

image

Looks like there is a JSON parse error when I click on something in my library. The program still works until I close the error message.

Error parsing Infinity value. Path », line 1, position 2.

App: LaunchBox
Version: 8.0-beta-5
Type: Newtonsoft.Json.JsonReaderException
Site: System.Object ParseNumberPositiveInfinity(Newtonsoft.Json.ReadType)
Source: Newtonsoft.Json

at Newtonsoft.Json.JsonTextReader.ParseNumberPositiveInfinity(ReadType readType)
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObjectT
at (String , String )
at Unbroken.LaunchBox.RetroAchievements.RetroAchievementsApi.GetConsoles(String username, String apiKey)
at (String , String , IGame )
at Unbroken.LaunchBox.RetroAchievements.RetroAchievementsApi.GetGameInfoWithProgress(String username, String apiKey, IGame launchBoxGame)
at (<>c__DisplayClass80_0 )
at Unbroken.LaunchBox.Desktop.Drawing.GameDetailsGui.<>c__DisplayClass80_0.<RefreshImage>b__0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Recent Log:

8:17:04 AM Music.Pause Start
8:17:04 AM Music.Prepare Start
8:17:04 AM Music.Kill Start
8:17:04 AM Music.Kill Finished
8:17:04 AM Music.NotifyTrackList Start
8:17:04 AM Music.NotifyTrackList Invoke
8:38:05 AM Music.Pause Start
8:38:05 AM Music.Prepare Start
8:38:05 AM Music.Kill Start
8:38:05 AM Music.Kill Finished
8:38:05 AM Music.NotifyTrackList Start
8:38:05 AM Music.NotifyTrackList Invoke
8:51:22 AM Music.Pause Start
8:51:22 AM Music.Prepare Start
8:51:22 AM Music.Kill Start
8:51:22 AM Music.Kill Finished
8:51:22 AM Music.NotifyTrackList Start
8:51:22 AM Music.NotifyTrackList Invoke
8:51:29 AM Music.Pause Start
8:51:29 AM Music.Prepare Start
8:51:29 AM Music.Kill Start
8:51:29 AM Music.Kill Finished
8:51:29 AM Music.NotifyTrackList Start
8:51:29 AM Music.NotifyTrackList Invoke
8:51:38 AM Music.Pause Start
8:51:38 AM Music.Prepare Start
8:51:38 AM Music.Kill Start
8:51:38 AM Music.Kill Finished
8:51:38 AM Music.NotifyTrackList Start
8:51:38 AM Music.NotifyTrackList Invoke
8:51:44 AM GameDetailsGui.RedrawDetails Start
8:51:44 AM GameDetailsGui.RedrawDetails Before ShowDetailRating
8:51:44 AM GameDetailsGui.RedrawDetails Before ShowDetailFileName
8:51:44 AM GameDetailsGui.RedrawDetails Before ShowDetailCustomFields
8:51:44 AM GameDetailsGui.RedrawDetails Before ShowDetailLastPlayed
8:51:44 AM GameDetailsGui.RedrawDetails Before ShowDetailNotes
8:51:44 AM GameDetailsGui.RedrawDetails Before ShowDetailDates
8:51:44 AM GameDetailsGui.RedrawDetails End
8:51:44 AM Music.Play Start
8:51:44 AM Music.Kill Start
8:51:44 AM Music.Kill Finished
8:51:44 AM Music.Play Empty Music Path
8:51:44 AM Music.NotifyTrackList Start
8:51:44 AM Music.NotifyTrackList Invoke
8:51:57 AM Music.Pause Start
8:51:58 AM GameDetailsGui.RedrawDetails Start
8:51:58 AM GameDetailsGui.RedrawDetails Before ShowDetailRating
8:51:58 AM GameDetailsGui.RedrawDetails Before ShowDetailFileName
8:51:58 AM GameDetailsGui.RedrawDetails Before ShowDetailCustomFields
8:51:58 AM GameDetailsGui.RedrawDetails Before ShowDetailLastPlayed
8:51:58 AM GameDetailsGui.RedrawDetails Before ShowDetailNotes
8:51:58 AM GameDetailsGui.RedrawDetails Before ShowDetailDates
8:51:58 AM GameDetailsGui.RedrawDetails End
8:51:58 AM Music.Prepare Start
8:51:58 AM Music.Kill Start
8:51:58 AM Music.Kill Finished
8:51:58 AM Music.NotifyTrackList Start
8:51:58 AM Music.NotifyTrackList Invoke
8:51:58 AM Exception

Sidd

Сообщения
3.708
Solutions
9
Реакции
1.395
SG.Coin

3.455


  • #2

Выглядит как ошибка ответа сервера) Такое каждый раз происходит?

Zlodobut

Сообщения
7
Solutions
1
Реакции
5
SG.Coin

0


  • #3

Выглядит как ошибка ответа сервера) Такое каждый раз происходит?

да, только выбираю сервер, все подвисает (кроме музыки) и выкидывает в браузер ошибку

Sidd

Сообщения
3.708
Solutions
9
Реакции
1.395
SG.Coin

3.455


Сообщения
9
Реакции
4
SG.Coin

0


  • #5

вчера при входе в 31 данж такая фигня раз 5 была пока все файлы не проверил и на всякий англофикатор отрубил)

Сообщения
9
Реакции
4
SG.Coin

0


  • #6

но на фейсбуке админы камуто как раз про такую ошибку писали что надо файлы перепроверить)

TiniToom

Сообщения
4
Реакции
3
SG.Coin

0


  • #7

скачался клиент, скачался патч при попытке зайти на сервер клиент крашится с такой ошибкой:

Server Error in ‘/play/air’ Application.

Error parsing positive infinity value. Path ‘cpu’, line 1, position 5.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Newtonsoft.Json.JsonReaderException: Error parsing positive infinity value. Path ‘cpu’, line 1, position 5.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

кто-то сталкивался с подобным?

оперативки 20гб, игра стоит на SSD, Nvidia 970GTX, CPU i5-4460 3.2 Ghz — что этому клиенту не нравится???

тоже самое до этого все работало без впн когда запускаю такая ошибка с впн нечего не происходит

Zlodobut

Сообщения
7
Solutions
1
Реакции
5
SG.Coin

0


  • #8

попробовал запустить черех exitlag -вроде играбельно, что неужели только через эту прогу можно

Sidd

Сообщения
3.708
Solutions
9
Реакции
1.395
SG.Coin

3.455


  • #9

попробовал запустить черех exitlag -вроде играбельно, что неужели только через эту прогу можно

Exitlag это VPN, она позволяет обходить региональные блокировки, а так же уменьшает пинг, если сервера игры находятся далеко)
Даже если бы игра позволяла играть без впн, то все равно есть риск бана, если в правилах указан доступ только для определенной страны.

Конечно хотелось бы сразу играть в корейские/тайские игры на русском, без впн, без паспортов корейцев и без покупки аккаунтов, еще и донат оплачивать в рублях с яндекс денег или с киви, но это фантастика :DDDDD

Zlodobut

Сообщения
7
Solutions
1
Реакции
5
SG.Coin

0


  • #10

Exitlag это VPN, она позволяет обходить региональные блокировки, а так же уменьшает пинг, если сервера игры находятся далеко)
Даже если бы игра позволяла играть без впн, то все равно есть риск бана, если в правилах указан доступ только для определенной страны.

я в курсе что это впн, спасибо!
Просто было написано что можно играть и без впн.

тему можно закрывать

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

Понравилась статья? Поделить с друзьями:
  • Error parsing http request header java io eofexception null
  • Error parsing http 413 response body invalid character
  • Error parsing http 403 response body unexpected end of json input
  • Error parsing function call
  • Error parsing file arguments