Skip to content

Issue Connecting JSPrintManager JS 8 with Android (v7.0.25.405) – Invalid License Error #78

@Ronjea

Description

@Ronjea

Hello!

We’re experiencing a problem when attempting to connect:

JSPrintManager JS 8 ⟷ Android (latest version v7.0.25.405)

We receive the following error:

This is a fake url :) https://test.com/jspm just as an example

data: "Invalid License: Unexpected JSON token at offset 71: Encountered an unknown key 'authorization' at path: $.url
Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.
JSON input: {\"url\":\"https://test.com/jspm\",\"authorization\":\"\"}"
id: "7d0cce9a"
type: "error"

When connecting the license, the process fails completely.
This issue only occurs on Android – everything works perfectly on Windows, with all URLs and versions.

Could you please take a look?

I'm using this code as a temporary fix if anyone as a problem

JSPrintManager.WS!.send = (data: any, properties: any) => {
    // check if data is a string
    if (typeof data === "string" && data.includes("authorization") && (port === 27443 || port === 26443)) {
      // data is a string first
      const dataObject = JSON.parse(data);
      delete dataObject.authorization;
      data = JSON.stringify(dataObject);
    }
    JSPrintManager.WS!._send(data, properties);
  };

Thanks in advance!

Best regards

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