Has anyone had any problems with the node server used for running web appbuilder?
I run the node windows service on my local development machine so I can both make changes through web app builder and test the app quickly without having to deploy. While testing a query tool, I repeatedly received timeout errors when making the query call to the REST service. I could hit it a few times with no problem. As soon as it would get a timeout, then most of my queries would result in timeouts as well as calls to the print service. I tried various things like rebuilding indexes on the layer, restarting the windows service, checking server logs, running the queries on the rest service page and stepping through the code but could not figure out the issue. However, when I deployed and tested the app on an IIS server, the app ran smoothly and I did not have any timeouts. Since nothing else I tried worked, I am assuming it is the node service but am open to any suggestions. Thanks.
Could you inspect your network request to check whether the REST call uses proxy (proxy.js)? I think maybe this is caused by proxy's timeout setting. The proxy.js default timeout 20 seconds, or you can change the timeout setting in server/proxy.js file to have a test.
The app is using proxy.js, however, the call is hitting the timeout of the REST service itself running on ArcGIS server which is one minute. On your hunch, I completely removed the proxy section from the config.json and I cannot get the queries to timeout. I was trying to substitute another proxy, but cannot get the settings right since I am using the windows service. Looks like it may be the proxy, but where do I change the proxy timeout? I could not find it. Thanks for your help.