supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Problems with Pagination due to ''appery-rest' is missing"'

This is my code snippet for pagination:

var Salesforce = {
page:0,
limit:5,
getTickets:function(){
var options = {};
options.data = {"q":"SELECT Id,CaseNumber,Subject FROM Case"+this.limit+"OFFSET"+this.limit*this.page};
viewTickets.execute(options);
}
}

on a page Load, instead of invoking the service, I am running a JS to invoke getTicket function in order to get just 5 records, and I am getting this "Mandatory parameter 'appery-rest' is missing". Instead when I invoke the service, I dont get this error (I sometimes do, that is a different issue). I have to implement the paging here and I am unable to figure out the issue. Your help is really appreciated.
Thanks

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Problems with Pagination due to ''appery-rest' is missing"'

Hi Supriya,

  1. Security issues
    Your site is available by https protocol only. Pages loaded by https protocol can't make ajax-calls by https protocol. But your services call tunnel by http protocol.

  2. Appery.io security
    We don't allow anonymous calls throw our tunnel (proxy). Every rest service sends appery-rest header which contains an ID of REST service asset. This asset should present in our database. If you remove your project from Appery.io all rest service assets would be removed too. Thus, our tunnel doesn't work more for this project (this project doesn't exists for us).

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Problems with Pagination due to ''appery-rest' is missing"'

Hello Katya, May I know what the work around will be?

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Problems with Pagination due to ''appery-rest' is missing"'

I have my database which I am using in the REST call. I got what you are saying but not sure how to do it. Do you have any documentation about this?
Also, if the record does not exist in the db, why is it working fine intermittently? I will appreciate if i get any concrete remedy on this. Or any warning mentioning that the app does or does not exist in your records.

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Problems with Pagination due to ''appery-rest' is missing"'

span class="translate"emThis reply was created from a merged topic originally titled
"Mandatory parameter 'Appery-Rest is missing "./em/span

I get "Mandatory parameter 'Appery-Rest is missing " intermittently. I am still not able to comprehend the solution. The Header records are in the appery database. I dont know what could be causing this. Please help.

Return to “Issues”