Skip to content

iOS: Unexpected character '\u001f'. At line 1, column 0. #40

@prabh-62

Description

@prabh-62

Bug

Plugin Version: 1.1.2
Platform: iOS 15.2.1
Device/Hardware: iPhone 13 Pro Max

Expected behaviour

Nuget package should successfully return true or false after invoking CrossLatestVersion.Current.IsUsingLatestVersion()

Actual behaviour

Here is the exception data from appcenter

{
  "exception": {
    "type": "Plugin.LatestVersion.LatestVersionException",
    "message": "Error comparing current app version number with latest. Bundle version=2.4.0 and lastest version= .",
    "stackTrace": "  at Plugin.LatestVersion.LatestVersionImplementation.IsUsingLatestVersion () <0x1029a4800 + 0x003e4>",
    "innerExceptions": [
      {
        "type": "Plugin.LatestVersion.LatestVersionException",
        "message": "Error parsing content from the App Store. Url=http://itunes.apple.com/lookup?bundleId=com.microdea.imagecapture.",
        "stackTrace": "  at Plugin.LatestVersion.LatestVersionImplementation.GetLatestVersionNumber (System.String appName) <0x1029a4f10 + 0x007e0> in <d8fe6846439c4b4fade134342e5fa68c#12240c99c68fafebfd560ebebfda195e>:0 \n  at Plugin.LatestVersion.LatestVersionImplementation.GetLatestVersionNumber () <0x1029a4cc0 + 0x00163> in <d8fe6846439c4b4fade134342e5fa68c#12240c99c68fafebfd560ebebfda195e>:0 \n  at Plugin.LatestVersion.LatestVersionImplementation.IsUsingLatestVersion () <0x1029a4800 + 0x001b7> in <d8fe6846439c4b4fade134342e5fa68c#12240c99c68fafebfd560ebebfda195e>:0 ",
        "innerExceptions": [
          {
            "type": "System.ArgumentException",
            "message": "Unexpected character '\u001f'. At line 1, column 0.",
            "stackTrace": "  at System.Runtime.Serialization.Json.JavaScriptReader.ReadCore () <0x1029ae4f0 + 0x00420> in <da436375c8b643fe8ffbba67e091c8f5#12240c99c68fafebfd560ebebfda195e>:0 \n  at System.Runtime.Serialization.Json.JavaScriptReader.Read () <0x1029ae470 + 0x00017> in <da436375c8b643fe8ffbba67e091c8f5#12240c99c68fafebfd560ebebfda195e>:0 \n  at System.Json.JsonValue.Load (System.IO.TextReader textReader) <0x1029ac150 + 0x0003b> in <da436375c8b643fe8ffbba67e091c8f5#12240c99c68fafebfd560ebebfda195e>:0 \n  at System.Json.JsonValue.Parse (System.String jsonString) <0x1029acac0 + 0x0003b> in <da436375c8b643fe8ffbba67e091c8f5#12240c99c68fafebfd560ebebfda195e>:0 \n  at Plugin.LatestVersion.LatestVersionImplementation.GetLatestVersionNumber (System.String appName) <0x1029a4f10 + 0x006f3> in <d8fe6846439c4b4fade134342e5fa68c#12240c99c68fafebfd560ebebfda195e>:0 ",
            "wrapperSdkName": "appcenter.xamarin"
          }
        ],
        "wrapperSdkName": "appcenter.xamarin"
      }
    ],
    "wrapperSdkName": "appcenter.xamarin"
  },
  "device": {
    "sdkName": "appcenter.ios",
    "sdkVersion": "3.3.5+3621e27fb",
    "wrapperSdkVersion": "3.4.3",
    "wrapperSdkName": "appcenter.xamarin",
    "model": "iPhone14,3",
    "oemName": "Apple",
    "osName": "iOS",
    "osVersion": "15.2.1",
    "osBuild": "19C63",
    "locale": "en_US",
    "timeZoneOffset": -300,
    "screenSize": "2778x1284",
    "appVersion": "2.4.0",
    "appBuild": "24005",
    "wrapperRuntimeVersion": "12.6.0"
  }
}

Steps to reproduce the issue

  • await CrossLatestVersion.Current.IsUsingLatestVersion();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions