Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8654] ACS : Creating a custom failed and produced the error "Exception in event callback. Argument data was an unexpected type! Expected: object, Received: string"

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-12T18:44:07.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsqe-ios031912, qe-nfc
ReporterMichael Pettiford
AssigneeEric Merriman
Created2012-03-27T18:01:49.000+0000
Updated2017-06-12T18:44:07.000+0000

Description

Steps to reproduce: 1. Create a default mobile app with cloud services enabled 2. Copy the attached resources folder 3. Run the app on iOS device or Android Device 4. On iOS launch the console in Xcode, on Android launch ddms or logcat 5. Navigate to the "Custom objects" row 6. Press the "Create Object" row 7. Fill out the fields with the required information 8. Press the "Add New Property" button and fill in the field 9. Press the "Create button" Actual result: The following message is logged and the object isn't created: "Exception in event callback. Argument data was an unexpected type! Expected: object, Received: string" Expected result: The custom object is created without error

Comments

  1. Wei Kong 2012-04-10

    What is the actaul ACS API call here?
  2. Thomas Huelbert 2012-04-10

    moved as per Wei
  3. Michael Pettiford 2012-04-10

    @Wei I tested this again today and did not see this issue anymore. But I Believe there error was being caught in the following code snippet
       Cloud.Objects.create(data, function (e) {
                   if (e.success) {
                       alert('Created!');
                       for (var i = 0; i < fields.length; i++) {
                           fields[i].value = '';
                       }
                   }
                   else {
                       error(e);
                   }
                   button.show();
               });
       
  4. Jeff English 2012-04-10

    Can you provide the actual data that was entered in the UI when attempting to create the object that failed? Also, what version of the module?
  5. Michael Pettiford 2012-04-10

    @Jeff I no longer have the data that I used to create the object. However, I no longer am seeing this issue with the module from SDK 2.0.1.v20120410103239 hash rb11cc3e7
  6. Lee Morris 2017-06-12

    Closing ticket due to the above comment.

JSON Source