Josh Boddiford
Posts: 0
Joined: Mon Nov 05, 2012 2:01 pm

REST service not mapping correctly in HTML5 app builder.

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...

Josh Boddiford
Posts: 0
Joined: Mon Nov 05, 2012 2:01 pm

REST service not mapping correctly in HTML5 app builder.

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST service not mapping correctly in HTML5 app builder.

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/.

Josh Boddiford
Posts: 0
Joined: Mon Nov 05, 2012 2:01 pm

REST service not mapping correctly in HTML5 app builder.

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..."
}
}
]
}
}
]
}
}

Josh Boddiford
Posts: 0
Joined: Mon Nov 05, 2012 2:01 pm

REST service not mapping correctly in HTML5 app builder.

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

REST service not mapping correctly in HTML5 app builder.

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

Josh Boddiford
Posts: 0
Joined: Mon Nov 05, 2012 2:01 pm

REST service not mapping correctly in HTML5 app builder.

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST service not mapping correctly in HTML5 app builder.

We are shooting for Tuesday.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

REST service not mapping correctly in HTML5 app builder.

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

Josh Boddiford
Posts: 0
Joined: Mon Nov 05, 2012 2:01 pm

REST service not mapping correctly in HTML5 app builder.

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?

Return to “Issues”