nminaya / grammar-nazi-bot

Bot that corrects spelling mistakes.
MIT License
31 stars 8 forks source link

Application Exception: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. #138

Closed nminaya closed 3 years ago

nminaya commented 3 years ago

This is an issue created automatically by GrammarNazi when an exception was captured.

Date (UTC): 02/26/2021 17:53:18

Exception:

Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() 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 GrammarNazi.Core.Clients.SentimApiClient.GetSentimentResult(String text) in /src/GrammarNazi.Core/Clients/SentimApiClient.cs:line 29 at GrammarNazi.Core.Services.SentimentAnalysisService.GetSentimentAnalysis(String text) in /src/GrammarNazi.Core/Services/SentimentAnalysisService.cs:line 23 at GrammarNazi.App.HostedServices.TwitterBotHostedService.LikeRepliesToBot(List`1 tweets) in /src/GrammarNazi.App/HostedServices/TwitterBotHostedService.cs:line 209 at GrammarNazi.App.HostedServices.TwitterBotHostedService.ExecuteAsync(CancellationToken stoppingToken) in /src/GrammarNazi.App/HostedServices/TwitterBotHostedService.cs:line 150

nminaya commented 3 years ago

The Sentiment Analysis API is down: https://sentim-api.herokuapp.com/api/v1/

https://github.com/nminaya/grammar-nazi-bot/blob/b62a65aad0e07b32c1e300fdd0dc40406b86653b/GrammarNazi.Core/Clients/SentimApiClient.cs#L21-L24

nminaya commented 3 years ago

The API is already running ok.