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

Newsletter: This email is only available on devices that support HTML. #1116

Closed
v1rusnl opened this issue Feb 14, 2017 · 15 comments
Closed

Newsletter: This email is only available on devices that support HTML. #1116

v1rusnl opened this issue Feb 14, 2017 · 15 comments

Comments

@v1rusnl
Copy link

v1rusnl commented Feb 14, 2017

Ombi Version:

Tested with 2.1.1401 til 2.1.1412

Update Branch:

Early Access Preview/development (switched to check a behaviour change)

Operating System:

Win7 Enterprise

Mono Version (only if your not on windows)


Applicable Logs (from /logs/ directory or the Admin page):

2017/02/12 15:21:58.979 Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: M. Path '', line 0, position 0.
   bei Newtonsoft.Json.JsonTextReader.ParseValue()
   bei Newtonsoft.Json.JsonTextReader.Read()
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   bei Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   bei Ombi.Api.ApiRequest.ExecuteJson[T](IRestRequest request, Uri baseUri) in C:\projects\requestplex\Ombi.Api\ApiRequest.cs:Zeile 120.
   bei Ombi.Api.EmbyApi.<>c__DisplayClass10_0.<GetInformation>b__2() in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:Zeile 157.
   bei Polly.Policy.<>c__DisplayClass8_0`1.<Execute>b__0()
   bei Polly.RetrySyntax.<>c__DisplayClass14_0.<WaitAndRetry>b__1()
   bei Polly.Retry.RetryEngine.Implementation[TResult](Func`1 action, IEnumerable`1 shouldRetryExceptionPredicates, IEnumerable`1 shouldRetryResultPredicates, Func`1 policyStateFactory)
   bei Polly.RetrySyntax.<>c__DisplayClass14_1.<WaitAndRetry>b__0(Action action, Context context)
   bei Polly.Policy.Execute[TResult](Func`1 action, Context context)
   bei Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:Zeile 154.
   bei Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:Zeile 132.
   bei Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetNewsletterHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:Zeile 82. Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: M. Path '', line 0, position 0.
   bei Newtonsoft.Json.JsonTextReader.ParseValue()
   bei Newtonsoft.Json.JsonTextReader.Read()
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   bei Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   bei Ombi.Api.ApiRequest.ExecuteJson[T](IRestRequest request, Uri baseUri) in C:\projects\requestplex\Ombi.Api\ApiRequest.cs:Zeile 120.
   bei Ombi.Api.EmbyApi.<>c__DisplayClass10_0.<GetInformation>b__2() in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:Zeile 157.
   bei Polly.Policy.<>c__DisplayClass8_0`1.<Execute>b__0()
   bei Polly.RetrySyntax.<>c__DisplayClass14_0.<WaitAndRetry>b__1()
   bei Polly.Retry.RetryEngine.Implementation[TResult](Func`1 action, IEnumerable`1 shouldRetryExceptionPredicates, IEnumerable`1 shouldRetryResultPredicates, Func`1 policyStateFactory)
   bei Polly.RetrySyntax.<>c__DisplayClass14_1.<WaitAndRetry>b__0(Action action, Context context)
   bei Polly.Policy.Execute[TResult](Func`1 action, Context context)
   bei Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:Zeile 154.
   bei Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:Zeile 132.
   bei Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetNewsletterHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:Zeile 82.

Problem Description:

For me, every mail is working except newsletter. When the newsletter is send, Ombi (latest dev build) spits out this error above and the received E-Mail just contains "This email is only available on devices that support HTML."

E-Mails got sent over Gmail. Tried port 465 and 587, sending works with both, but no content is shown. When I first set up Ombi for Emby when it came out, content was shown in newsletter. The problem occured from one version to another.

Reproduction Steps:

  1. Send a test newsletter mail or start the newsletter scheduled task.
@Ombi-robot
Copy link

Hi!
Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.
Before posting make sure you also read our FAQ and known issues.
Make the title describe your issue. Having "not working" or "I get this bug" for 100 issues, isn't really helpful.
If we need more information or there is some progress we tag the issue or update the tag and keep you updated.
Cheers!
Ombi Support Team

@tidusjar
Copy link
Member

In the EAP branch there is additional logging.

Can you please set your logging to DEBUG and then try and send a test and post the results back here?

@v1rusnl
Copy link
Author

v1rusnl commented Feb 18, 2017

Done with latest 2.1.1427 EAP
2017-02-18.txt

@Magikarplvl4
Copy link
Contributor

Magikarplvl4 commented Feb 18, 2017

@tidusjar is working on a fix to solve this problem

@BAS-MB
Copy link

BAS-MB commented Mar 2, 2017

Still same for me on emby server and ombi eap 2.1.1482 need any further logs?

@tidusjar
Copy link
Member

tidusjar commented Mar 6, 2017

@BAS-MB Is there any errors in Emby when you run this?

@applbaum
Copy link

applbaum commented Mar 6, 2017

This is what I am seeing in the logs when the newsletter is triggered to send:

2017/03/04 11:00:10.935 Ombi.Api.EmbyApi Error: Could not get the media item's information 2017/03/04 11:00:10.935 Ombi.Api.EmbyApi Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 198 Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 198 2017/03/04 11:00:11.014 Ombi.Api.EmbyApi Debug: ResponseContent 2017/03/04 11:00:11.029 Ombi.Api.EmbyApi Debug: One or more errors occurred. 2017/03/04 11:00:11.045 Ombi.Api.EmbyApi Debug: ResponseStatusCode 2017/03/04 11:00:11.060 Ombi.Api.EmbyApi Debug: InternalServerError 2017/03/04 11:00:11.060 Ombi.Api.EmbyApi Debug: ResponseError 2017/03/04 11:00:11.076 Ombi.Api.EmbyApi Debug: No Error 2017/03/04 11:00:11.092 Ombi.Api.EmbyApi Debug: ResponseException 2017/03/04 11:00:11.107 Ombi.Api.EmbyApi Debug: System.Exception: Exception of type 'System.Exception' was thrown. System.Exception: Exception of type 'System.Exception' was thrown. 2017/03/04 11:00:11.107 Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 230 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 134 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetNewsletterHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 84 Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 230 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 134 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetNewsletterHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 84 2017/03/04 11:00:11.154 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: 2017/03/04 11:00:11.170 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Entering SendNewsletter 2017/03/04 11:00:11.232 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Created Plain/HTML MIME body 2017/03/04 11:00:12.170 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Sending 2017/03/04 11:00:14.764 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Sent

tidusjar pushed a commit that referenced this issue Mar 6, 2017
tidusjar added a commit that referenced this issue Mar 6, 2017
…s/features (#1215)

* fixup! Reset the branch on v2.1.0 tag to get to a shared state between dev and Master.

* typo

* Fixed a bug in the Plex Newsletter

* Another newsletter fix attempt #1163 #1116
@tidusjar
Copy link
Member

tidusjar commented Mar 6, 2017

can you update to EAP?

@applbaum
Copy link

applbaum commented Mar 6, 2017

Updated to 2.1.1496
Still getting email only available on devices that support HTML. Here are the logs when the newsletter triggers.

2017/03/06 17:20:10.955 Ombi.Api.EmbyApi Error: Could not get the media item's information 2017/03/06 17:20:10.971 Ombi.Api.EmbyApi Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 198 Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 198 2017/03/06 17:20:10.971 Ombi.Services.Jobs.EmbyAvailabilityChecker Debug: Requests that will be updated count 3 2017/03/06 17:20:10.986 Ombi.Api.EmbyApi Debug: ResponseContent 2017/03/06 17:20:11.002 Ombi.Api.EmbyApi Debug: One or more errors occurred. 2017/03/06 17:20:11.018 Ombi.Api.EmbyApi Debug: ResponseStatusCode 2017/03/06 17:20:11.018 Ombi.Api.EmbyApi Debug: InternalServerError 2017/03/06 17:20:11.033 Ombi.Services.Notification.EmbyNotificationEngine Debug: Notifying Users Count 0 2017/03/06 17:20:11.033 Ombi.Api.EmbyApi Debug: ResponseError 2017/03/06 17:20:11.049 Ombi.Api.EmbyApi Debug: No Error 2017/03/06 17:20:11.064 Ombi.Api.EmbyApi Debug: ResponseException 2017/03/06 17:20:11.346 Ombi.Api.EmbyApi Debug: System.Exception: Exception of type 'System.Exception' was thrown. System.Exception: Exception of type 'System.Exception' was thrown. 2017/03/06 17:20:11.361 Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 230 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 134 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetNewsletterHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 84 Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 230 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 134 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetNewsletterHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 84 2017/03/06 17:20:11.381 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: 2017/03/06 17:20:11.397 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Entering SendNewsletter 2017/03/06 17:20:11.475 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Created Plain/HTML MIME body 2017/03/06 17:20:12.275 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Sending 2017/03/06 17:20:16.743 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Sent

@tidusjar
Copy link
Member

tidusjar commented Mar 6, 2017 via email

@applbaum
Copy link

applbaum commented Mar 7, 2017

Same result.

2017/03/06 19:04:03.340 Ombi.Api.EmbyApi Error: Could not get the media item's information 2017/03/06 19:04:03.355 Ombi.Api.EmbyApi Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 198 Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 198 2017/03/06 19:04:03.371 Ombi.Api.EmbyApi Debug: ResponseContent 2017/03/06 19:04:03.387 Ombi.Api.EmbyApi Debug: One or more errors occurred. 2017/03/06 19:04:03.387 Ombi.Api.EmbyApi Debug: ResponseStatusCode 2017/03/06 19:04:03.402 Ombi.Api.EmbyApi Debug: InternalServerError 2017/03/06 19:04:03.418 Ombi.Api.EmbyApi Debug: ResponseError 2017/03/06 19:04:03.434 Ombi.Api.EmbyApi Debug: No Error 2017/03/06 19:04:03.449 Ombi.Api.EmbyApi Debug: ResponseException 2017/03/06 19:04:03.465 Ombi.Api.EmbyApi Debug: System.Exception: Exception of type 'System.Exception' was thrown. System.Exception: Exception of type 'System.Exception' was thrown. 2017/03/06 19:04:03.481 Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 230 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 134 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetNewsletterHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 84 Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonTextReader.Read() 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.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.EmbyApi.GetInformation(String mediaId, EmbyMediaType type, String apiKey, String userId, Uri baseUri) in C:\projects\requestplex\Ombi.Api\EmbyApi.cs:line 230 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 134 at Ombi.Services.Jobs.RecentlyAddedNewsletter.EmbyAddedNewsletter.GetNewsletterHtml(Boolean test) in C:\projects\requestplex\Ombi.Services\Jobs\RecentlyAddedNewsletter\EmbyRecentlyAddedNewsletter.cs:line 84 2017/03/06 19:04:03.496 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: 2017/03/06 19:04:03.512 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Entering SendNewsletter 2017/03/06 19:04:03.543 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Created Plain/HTML MIME body 2017/03/06 19:04:04.343 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Sending 2017/03/06 19:04:06.963 Ombi.Services.Jobs.RecentlyAddedNewsletter.RecentlyAddedNewsletter Debug: Sent

@tidusjar
Copy link
Member

What's in the Emby logs when you get this error in Ombi?

@applbaum
Copy link

2017-03-13 17:20:00.1021 Info HttpServer: HTTP GET http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/33ba839f109f29f4ee102a95cf7d03b3. UserAgent: RestSharp/105.2.3.0 2017-03-13 17:20:00.3990 Info HttpServer: HTTP Response 200 to 192.168.1.35. Time: 297ms. http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/33ba839f109f29f4ee102a95cf7d03b3 2017-03-13 17:20:00.3990 Info HttpServer: HTTP GET http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/946ce82658451198624de6bde487485f. UserAgent: RestSharp/105.2.3.0 2017-03-13 17:20:00.3990 Info HttpServer: HTTP Response 200 to 192.168.1.35. Time: 0ms. http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/946ce82658451198624de6bde487485f 2017-03-13 17:20:00.3990 Info HttpServer: HTTP GET http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/bd5e40e167376634f3543402b65fb908. UserAgent: RestSharp/105.2.3.0 2017-03-13 17:20:00.4146 Info HttpServer: HTTP Response 200 to 192.168.1.35. Time: 16ms. http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/bd5e40e167376634f3543402b65fb908 2017-03-13 17:20:00.4146 Info HttpServer: HTTP GET http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/26101163217c2e2a97f05621a350250d. UserAgent: RestSharp/105.2.3.0 2017-03-13 17:20:00.4146 Info HttpServer: HTTP Response 200 to 192.168.1.35. Time: 0ms. http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/26101163217c2e2a97f05621a350250d 2017-03-13 17:20:00.4146 Info HttpServer: HTTP GET http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/487a764ee41a0fe12f559b6a10958013. UserAgent: RestSharp/105.2.3.0 2017-03-13 17:20:00.4303 Info HttpServer: HTTP Response 200 to 192.168.1.35. Time: 16ms. http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/487a764ee41a0fe12f559b6a10958013 2017-03-13 17:20:00.4303 Info HttpServer: HTTP GET http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/bead7f073b4410338afc65fc92a23f7d. UserAgent: RestSharp/105.2.3.0 2017-03-13 17:20:00.4303 Info HttpServer: HTTP Response 200 to 192.168.1.35. Time: 0ms. http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/bead7f073b4410338afc65fc92a23f7d 2017-03-13 17:20:00.4303 Info HttpServer: HTTP GET http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/a99ef5c2ef89765351ef203bb0fa9efc. UserAgent: RestSharp/105.2.3.0 2017-03-13 17:20:00.4459 Info HttpServer: HTTP Response 200 to 192.168.1.35. Time: 16ms. http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/a99ef5c2ef89765351ef203bb0fa9efc 2017-03-13 17:20:00.4459 Info HttpServer: HTTP GET http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/c3b5c4349c49174e745c5d6ca8d4ad2b. UserAgent: RestSharp/105.2.3.0 2017-03-13 17:20:00.4615 Info HttpServer: HTTP Response 200 to 192.168.1.35. Time: 16ms. http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/c3b5c4349c49174e745c5d6ca8d4ad2b 2017-03-13 17:20:00.4615 Info HttpServer: HTTP GET http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/a4a4aa51ee121069d1e4686f6db313eb. UserAgent: RestSharp/105.2.3.0 2017-03-13 17:20:00.4615 Error HttpServer: Error processing request *** Error Report *** Version: 3.2.7.4 Command line: C:\Users\user\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True Processor count: 4 Program data path: C:\Users\user\AppData\Roaming\Emby-Server Application directory: C:\Users\user\AppData\Roaming\Emby-Server\System System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null. Parameter name: item at Emby.Server.Implementations.Dto.DtoService.<GetBaseItemDtoInternal>d__22.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at Emby.Server.Implementations.Dto.DtoService.GetBaseItemDto(BaseItem item, DtoOptions options, User user, BaseItem owner)
at MediaBrowser.Api.UserLibrary.UserLibraryService.d__12.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 Emby.Server.Implementations.Services.ServiceExecGeneral.d__2.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 Emby.Server.Implementations.Services.ServiceController.d__13.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 Emby.Server.Implementations.Services.ServiceHandler.d__15.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 Emby.Server.Implementations.HttpServer.HttpListenerHost.d__75.MoveNext()
---> (Inner Exception #0) System.ArgumentNullException: Value cannot be null.
Parameter name: item
at Emby.Server.Implementations.Dto.DtoService.d__22.MoveNext()<---

System.AggregateException
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Emby.Server.Implementations.Dto.DtoService.GetBaseItemDto(BaseItem item, DtoOptions options, User user, BaseItem owner)
   at MediaBrowser.Api.UserLibrary.UserLibraryService.<Get>d__12.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 Emby.Server.Implementations.Services.ServiceExecGeneral.<Execute>d__2.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 Emby.Server.Implementations.Services.ServiceController.<Execute>d__13.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 Emby.Server.Implementations.Services.ServiceHandler.<ProcessRequestAsync>d__15.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 Emby.Server.Implementations.HttpServer.HttpListenerHost.<RequestHandler>d__75.MoveNext()
InnerException: System.ArgumentNullException
System.ArgumentNullException: Value cannot be null.
Parameter name: item
   at Emby.Server.Implementations.Dto.DtoService.<GetBaseItemDtoInternal>d__22.MoveNext()
   at Emby.Server.Implementations.Dto.DtoService.<GetBaseItemDtoInternal>d__22.MoveNext()

2017-03-13 17:20:00.4615 Info HttpServer: HTTP Response 500 to 192.168.1.35. Time: 0ms. http://192.168.1.35:8096/emby/users/7aaf123e0f7a401bad98defabb46c6b1/items/a4a4aa51ee121069d1e4686f6db313eb
`

@applbaum
Copy link

I just updated to 2.1.1538 and was able to send out a newsletter without receiving the message "This email is only available on devices that support HTML." It sent out my entire library as new content even though I had previously used the newsletter function. I will continue to test and report back.

@v1rusnl
Copy link
Author

v1rusnl commented Mar 24, 2017

Also tested with latest EAP branch. No error in Mail, content shows as expected! Thanks @tidusjar

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

No branches or pull requests

6 participants