Hi there I encountered the following error when attempting to convert from HTML to PDF. I haven’t ever encountered this issue while testing Aspose locally, up until I tested today and now am receiving this error:
Program.Main: An Error has Occurred
System.AggregateException: One or more errors occurred. (Unexpected character encountered while parsing value: <. Path ‘’, line 0, position 0.)
—> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path ‘’, line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.JsonReader.ReadAndMoveToContent()
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.JsonSerializer.Deserialize(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 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
at Aspose.HTML.Cloud.Sdk.Runtime.ApiInvoker1.CallPostAsync(String url, HttpContent content) at Aspose.HTML.Cloud.Sdk.Runtime.ApiInvoker
1.CallPostAsync(RequestUrlBuilder urlBuilder, HttpContent content)
at Aspose.HTML.Cloud.Sdk.Services.StorageService.<>c__DisplayClass21_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at Aspose.HTML.Cloud.Sdk.Services.StorageService.UploadFileAsync(String file, String remoteFileUri, String storageName)
at Aspose.HTML.Cloud.Sdk.StorageApi.UploadFileAsync(String file, String remoteFileUri, String storageName)
at Aspose.HTML.Cloud.Sdk.Services.ConversionService.UploadAsync(String folder, String basePath, String[] files)
at Aspose.HTML.Cloud.Sdk.Services.ConversionService.PrepareRequestBodyAsync(ConverterBuilder builder)
at Aspose.HTML.Cloud.Sdk.Services.ConversionService.<>c__DisplayClass12_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at Aspose.HTML.Cloud.Sdk.Services.ConversionService.ExecuteConversionAsync(ConverterBuilder builder, IObserver1 observer) at Aspose.HTML.Cloud.Sdk.Services.ConversionService.ConvertAsync(ConverterBuilder builder, IObserver
1 observer)
at Aspose.HTML.Cloud.Sdk.ConvertApi.ConvertAsync(ConverterBuilder builder, IObserver1 observer) at Aspose.HTML.Cloud.Sdk.ConvertApi.ConvertAsync(String inputFilePath, IList
1 resources, String outputFilePath, ConversionOptions options, IObserver`1 observer)
— End of inner exception stack trace —