Page 1 of 2

REST service not mapping correctly in HTML5 app builder.

Posted: Thu Nov 15, 2012 7:53 pm
by Josh Boddiford

I am unable to get my REST service to work in the new HTML5 app builder. I've shared my application with support@tiggzi.com and would appreciate a second set of eyes on it. The api responds to test's and brings back data... but it won't work in the app :-(

https://appbuilder.tiggzi.com/project...


REST service not mapping correctly in HTML5 app builder.

Posted: Thu Nov 15, 2012 7:58 pm
by Josh Boddiford

When I look at the page in Chrome Devtools I see this error: Uncaught SyntaxError: Unexpected token :

I am getting data back from the service... it's just not mapping/displaying correctly for some reason.


REST service not mapping correctly in HTML5 app builder.

Posted: Thu Nov 15, 2012 10:35 pm
by maxkatz

Check the JSON that you get back from the server - it doesn't seem to be valid and thus the parsing fails. Check it with http://jsonlint.com/.


REST service not mapping correctly in HTML5 app builder.

Posted: Thu Nov 15, 2012 11:15 pm
by Josh Boddiford

Thanks for the reply Max. I performed a TEST using the REST Service TEST mechanism in TIGGZI and It came back with valid JSON. Could this be a parsing issue with the REST service?

Here's the JSON that's returned from a test in TIGGZI service:

{
"ResponseCode": {
"t": 1000
},
"ResponseDetail": {
"Message": {
"t": "Success"
},
"SubCode": null,
"Detail": null
},
"Profiles": {
"count": 1,
"availableCount": 1,
"Profile": [
{
"ProfileID": {
"t": "06WPGQJ19G4"
},
"Name": {
"Prefix": null,
"FirstName": {
"t": "Joshua"
},
"MiddleName": {
"t": "Derryl"
},
"LastName": {
"t": "Boddiford"
},
"Suffix": null
},
"DateOfBirth": {
"Age": {
"t": 33
}
},
"Addresses": {
"count": 4,
"availableCount": 4,
"Address": [
{
"City": {
"t": "Tampa"
},
"State": {
"t": "FL"
},
"Country": null,
"Zip": {
"t": "33647"
},
"Coordinates": null
},
{
"City": {
"t": "Plant City"
},
"State": {
"t": "FL"
},
"Country": null,
"Zip": {
"t": "33566"
},
"Coordinates": null
},
{
"City": {
"t": "Plant City"
},
"State": {
"t": "FL"
},
"Country": null,
"Zip": {
"t": "33566"
},
"Coordinates": null
},
{
"City": {
"t": "Tampa"
},
"State": {
"t": "FL"
},
"Country": null,
"Zip": {
"t": "33617"
},
"Coordinates": null
}
]
},
"Relatives": {
"count": 4,
"availableCount": 4,
"Relative": [
{
"ProfileID": {
"t": "06FCE9JBKMG"
},
"Relationship": null,
"Name": {
"Prefix": null,
"FirstName": {
"t": "Sheila"
},
"MiddleName": null,
"LastName": {
"t": "Boddiford"
},
"Suffix": null
}
},
{
"ProfileID": {
"t": "06CW8JJN6E8"
},
"Relationship": null,
"Name": {
"Prefix": null,
"FirstName": {
"t": "Mathew"
},
"MiddleName": null,
"LastName": {
"t": "Boddiford"
},
"Suffix": null
}
},
{
"ProfileID": {
"t": "06AS0KYSMH7"
},
"Relationship": {
"t": "Spouse"
},
"Name": {
"Prefix": null,
"FirstName": {
"t": "Donette"
},
"MiddleName": null,
"LastName": {
"t": "Boddiford"
},
"Suffix": null
}
},
{
"ProfileID": {
"t": "06F149GSG3F"
},
"Relationship": null,
"Name": {
"Prefix": null,
"FirstName": {
"t": "Grady"
},
"MiddleName": null,
"LastName": {
"t": "Boddiford"
},
"Suffix": null
}
}
]
},
"Aliases": {
"count": 1,
"availableCount": 1,
"Alias": [
{
"Prefix": null,
"FirstName": {
"t": "Josh"
},
"MiddleName": null,
"LastName": {
"t": "Boddiford"
},
"Suffix": null
}
]
},
"Phones": {
"count": 4,
"availableCount": 4,
"Phone": [
{
"Display": {
"t": "(813) 333-XXXX"
},
"AreaCode": {
"t": "813"
},
"ConnectionType": null,
"Carrier": null
},
{
"Display": {
"t": "(813) 983-XXXX"
},
"AreaCode": {
"t": "813"
},
"ConnectionType": null,
"Carrier": null
},
{
"Display": {
"t": "(813) 907-XXXX"
},
"AreaCode": {
"t": "813"
},
"ConnectionType": null,
"Carrier": null
},
{
"Display": {
"t": "(813) 994-XXXX"
},
"AreaCode": {
"t": "813"
},
"ConnectionType": null,
"Carrier": null
}
]
},
"Emails": {
"count": 1,
"availableCount": 1,
"Email": [
{
"t": "i******[url=http://mailto:h@.com]h@.com[/url]"
}
]
},
"SocialNetProfiles": {
"count": 0,
"availableCount": 0,
"SocialNetProfile": null
},
"UpsellLinks": {
"count": 4,
"Link": [
{
"Product": {
"t": "peoplesearch"
},
"URL": {
"t": "http://www.intelius.com/redir.php?ref..."
}
},
{
"Product": {
"t": "background"
},
"URL": {
"t": "http://www.intelius.com/redir.php?ref..."
}
},
{
"Product": {
"t": "criminalcheck"
},
"URL": {
"t": "http://www.intelius.com/redir.php?ref..."
}
},
{
"Product": {
"t": "publicrecords"
},
"URL": {
"_t": "http://www.intelius.com/redir.php?ref..."
}
}
]
}
}
]
}
}


REST service not mapping correctly in HTML5 app builder.

Posted: Thu Nov 15, 2012 11:19 pm
by Josh Boddiford

I also took the JSON from the Google Chrome Dev Tool window and placed it in the JSONLINT test and it also came back as Valid JSON. Wondering if this could be an issue with the REST service in Tiggzi? Please let me know what else I can do to test. Thanks for the help!! Josh


REST service not mapping correctly in HTML5 app builder.

Posted: Fri Nov 16, 2012 4:02 pm
by Maryna Brodina

Hi Josh! Looks like a bug - we'll fix it.


REST service not mapping correctly in HTML5 app builder.

Posted: Sat Nov 17, 2012 9:59 pm
by Josh Boddiford

Any idea when this will be fixed? I can't move forward on my project without it working.


REST service not mapping correctly in HTML5 app builder.

Posted: Sun Nov 18, 2012 1:03 am
by maxkatz

We are shooting for Tuesday.


REST service not mapping correctly in HTML5 app builder.

Posted: Mon Nov 19, 2012 11:06 am
by Maryna Brodina

Hello! For now you can try to change Data Type to json and check "Use Tiggzi Proxy". It seems your service doesn't work with jsonp format


REST service not mapping correctly in HTML5 app builder.

Posted: Tue Nov 20, 2012 5:09 am
by Josh Boddiford

I tried changing the data type as you suggested and also checking the use proxy but it did not work. Did you test this with my app before suggesting?