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

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

Open
prabh-62 opened this issue Jan 22, 2022 · 2 comments
Open

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

prabh-62 opened this issue Jan 22, 2022 · 2 comments

Comments

@prabh-62
Copy link

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();
@chimditruvn
Copy link

I also encountered a similar situation. App closes automatically

@gsgou
Copy link

gsgou commented Jul 29, 2022

Also seeing it from IsUsingLatestVersion():

JavaScriptReader.ReadCore ()
Plugin.LatestVersion.LatestVersionException: Unexpected character '<'. At line 2, column 2.

iPhone13,4 - iOS 15.4.1
iPhone SE (2nd generation) - iOS 15.6

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

No branches or pull requests

3 participants