Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-12784

Unable to load widget on webpage for few users.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • Widget
    • None

      Issue Summary

      Widget is not loading on the webpage for few users and gives below error during initialisation:

      Uncaught SyntaxError: Unexpected non-whitespace character after JSON at position 4
      at JSON.parse (<anonymous>)
      at jt.getAnonymousId (user.js:39:35)

      Steps to Reproduce

      1. Set invalid (without encoded quotes) `ajs_anonymous_id` cookie with date expiration on app root domain (i. e. `document.cookie = "ajs_anonymous_id=<anonymous-id>; domain=***.com; expires='Thu, 20 Jun 2024 11:36:45 GMT'"`)
      2.  Make sure `ajs_anonymous_id` is not set in local storage (as it is preferred source)
      3.  Refresh page and observe the error and widget will not load

      Expected Results

      • It should load the widget without any error even if the cookie is passed without quotes.

      Actual Results

      • Widget is not loading for few users where cookie is passed without quotes from browser.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              bb4724a6f688 Kritika Bansal
              7d0889323684 Yuti Kavathia
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: