Page 2 of 2

Invoking an update service with Javascript

Posted: Wed Jul 06, 2016 4:32 pm
by RakeshMalik

URL:
http://classoutsideadmin.app.appery.i...

Click "create new hunt"
Give it a name and select all of the available categories
Click "Save hunt"

Thanks!


Invoking an update service with Javascript

Posted: Thu Jul 07, 2016 12:43 pm
by Serhii Kulibaba

Could you check errors in the console? You can learn here: https://devcenter.appery.io/documenta... how to open the console.

It looks like you use incorrect mapping in the updateHuntQuestions service.

Please share (http://devcenter.appery.io/documentat...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us it's name


Invoking an update service with Javascript

Posted: Sat Jul 09, 2016 1:05 am
by RakeshMalik

I did, though I haven't been able to track down the source of this error, since it seems like it's coming from the mapping, but it might be some other of my code, and the error is just getting reported for the wrong line.

jquery-2.1.1.js:8554 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
VM2065:671 checked
VM2065:678 name of hunt: plerk
VM2065:723 query for 1,2,3,plwerk,99,98,97,96,[Blank]
VM2065:734 subjects collected
VM2065:738 question ids collated
VM2065:704 createNewHunt begins
VM2065:705 Array[17]
VM2065:714 created hunt: [object Object]
VM2065:715 huntId._id: 57804cc0e4b05e971c6373ec
VM2065:681 adding questions
VM2065:682 Array[17]
VM2065:683 huntId: [object Object]
VM2065:686 verify storage vars
VM2065:687 huntId:
VM2065:688 LocalStorage
VM2065:689 questions:
VM2065:690 Array[17]
VM2065:691 executing query with mappings
mapping-impl.js:258 Uncaught TypeError: Apperyio.storage[name].get is not a function

I've shared it, and the app name is: ClassOutsideAdmin

Thanks!


Invoking an update service with Javascript

Posted: Mon Jul 11, 2016 10:09 am
by Serhii Kulibaba

Sorry, but I can't reproduce that issue. I never get an error "Uncaught TypeError: Apperyio.storage[name].get is not a function".