Page 1 of 3

Increase server script timeout

Posted: Tue Jul 29, 2014 8:39 am
by Aeneas McBurney

How do I set/increase server script timeout? I am running a script and about 50% of the time its producing this error......

Execution of the script has exceeded the allowed time and stopped

How do I change?


Increase server script timeout

Posted: Tue Jul 29, 2014 9:09 am
by Evgene Karachevtsev

Hello Aeneas,

This depends on you pricing plan: http://appery.io/pricing/


Increase server script timeout

Posted: Tue Jul 29, 2014 9:08 pm
by Aeneas McBurney

Hi, this is a bit limiting and even the next plan up only gives an extra second. I am using some scripts to search internet pages and retrieve data which sometimes takes a bit longer to execute. Is there another way to change this without finding another service provider?

Thanks,
Aeneas


Increase server script timeout

Posted: Wed Jul 30, 2014 12:08 am
by Aeneas McBurney

Further to this am I able to retrieve data from my database outside of appery and my app so I can run longer running scripts on the data and return the modified data back to the app database?

I see there's a curl command but I am not familiar with this. Can it be done with VB.net?


Increase server script timeout

Posted: Wed Jul 30, 2014 5:43 am
by Evgene Karachevtsev

Hello Aeneas,

If you want the server script can be executed for a long time, then I would suggest you not to use the server code of Appery.io, but buy hosting, and on it run all you need.


Increase server script timeout

Posted: Wed Jul 30, 2014 5:52 am
by Aeneas McBurney

Thanks Evgene, do you have any examples of retrieving and writing back data to the appery database if I were to do this?


Increase server script timeout

Posted: Wed Jul 30, 2014 1:38 pm
by Evgene Karachevtsev

Aeneas,

Unfortunately we don't have examples, it all depends on what programming language you'll select. The most important thing - if you need something to keep in the database, then you should use the rest API database. Please see curl command in documentation for the dB: http://devcenter.appery.io/documentat...


Increase server script timeout

Posted: Thu Jul 31, 2014 7:12 am
by Aeneas McBurney

Thanks for this and I have now managed to retrieve data successfully from my database using vb.net. However when I try to update a table using PUT method I keep getting an error of

The remote server returned an error: (400) Bad Request.

The object returns no detail as to why its a bad request like Appery does. I am trying to update an externalRef by passing this as the data

"{externalRef:NTAwNTIzMjI4MA%3d%3d}"; and also tried
"{externalRef:'NTAwNTIzMjI4MA%3d%3d'}";

as per your CURL put instructions....

curl -X PUT \
-H "X-Appery-Database-Id: 53bf194be4b04e2d7216e561" \
[-H "X-Appery-Session-Token: "] \
-H "Content-Type: application/json" \
-d '{"":""}' \
https://api.appery.io/rest/1/db/colle...

I am also passing as byte data as suggested in forums

Encoding.UTF8.GetBytes("{externalRef:" & extref & "}")

I know the rest of it works as I am retrieving data from the same table fine. Can you see what I am doing wrong?

Thanks,
Aeneas


Increase server script timeout

Posted: Fri Aug 01, 2014 12:46 am
by obullei

Hello!

Unfortunately we can not tell you what is exactly wrong in your code.
You need to debug your code.
If you are able to see all HTTP, please send us a screenshot.


Increase server script timeout

Posted: Sat Aug 02, 2014 2:01 am
by Aeneas McBurney

Hi, please find attached screenshots of my code. The error is not returning any detail of the issue.....

Image Image