Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1182

Uncaught DataError: Failed to execute 'put' on 'IDBObjectStore'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Component/s: Storage
    • Labels:
    • Testing Instructions:
      Hide

      Since we can't reproduce this issue this is the easiest way to test:

      1. Open the console and execute the following code. A modal to report the error should be shown.

        window.onerror('Some error', 'myfile', 1)
        

      2. Open the console and execute the following code. No modal should be shown (error ignored).

        window.onerror("Uncaught DataError: Failed to execute 'put' on 'IDBObjectStore'", 'myfile', 1)
        

      Show
      Since we can't reproduce this issue this is the easiest way to test: Open the console and execute the following code. A modal to report the error should be shown. window.onerror('Some error', 'myfile', 1) Open the console and execute the following code. No modal should be shown (error ignored). window.onerror("Uncaught DataError: Failed to execute 'put' on 'IDBObjectStore'", 'myfile', 1)
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE

      Description

      MoodleMobile 2.1 has the feature to be able to send error reports to us. We keep getting reports of this error, coming from all kind of devices:

      File: file:///android_asset/www/lib/ydn.db/jsc/ydn.db-dev.js
      Line: 189
      Platform: Android
      Cordova: 3.7.1
      URL loaded: file:///android_asset/www/index.html#/mm_login/site
      Message:
      Uncaught DataError: Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path yielded a value that is not a valid key.

      Most of the reporters use Android 5.x, but I've also seen some 4.4.4 (haven't looked at all the reports).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Juan Leyva
              Integrator:
              Juan Leyva
              Tester:
              Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Sep/15