Increase server script timeout

This forum contains topics that were moved from Get Satisfaction
Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Increase server script timeout

Post 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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Increase server script timeout

Post by Evgene Karachevtsev »

Hello Aeneas,

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

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Increase server script timeout

Post 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

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Increase server script timeout

Post 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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Increase server script timeout

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

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Increase server script timeout

Post 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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Increase server script timeout

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

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Increase server script timeout

Post 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

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Increase server script timeout

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

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Increase server script timeout

Post by Aeneas McBurney »

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

Image Image

Post Reply