I have a weird issue... I inherited an app that was created before my time.
I can run the app and load all the layers. There is a specific polygon layer in there that is only 733 records. If I view the map at full scale and then open the attribute table it spins but then seems to time out as the records do not appear.
If I zoom in a bit it loads the appropriate records from that zoom level but if I request all the records (only 733) it stalls out and give me the query error
Console says this

Sources Says this:

So I started thinking a time out or something....
This is the Service that is having the issues.... Although the error is thrown at about 30 seconds.
I tested 600 seconds in the 2nd option below and no difference

NOTE: this application is not residing in AGOL or Portal its was donwloaded into our IIS and hosted from there.....
Does anyone have any ideas on what to check?