Forum Discussion
EricD_186141
Altocumulus
Apr 06, 2015LTM iControlREST API request fails with HTTP 502 Bad Gateway
Hi,
We are using LTM v11.5.2 (on a 5250v's) and successfully using the REST API for all of our F5 Automation needs.
We have been using this REST call to gather info about every LTM Pool Member.
...
Fred_Wittenberg
Apr 14, 2015Historic F5 Account
Just curious are both of you running 11.5.2? I just tested a query to /tm/ltm/pool in 11.6.0 and it works fine. I'll try this against 11.5.2 as well if this appears to be a version specific problem.
- Fred_WittenbergApr 14, 2015Historic F5 AccountAlso, if you are sending each REST call as an individual call there is a default limit of 10 HTTP connections to the platform. To adjust this you will need to navigate to system-->Preferences-->Advanced-->Maximum HTTP Connections To Configuration Utility. Not knowing your platform its hard to recommend a number to use, but this is potentially the cause of the 502 error.
- EricD_186141Apr 15, 2015
Altocumulus
UPDATE: we added 1055 iApps to our LTM (bringing the total to 3960) and consequently our script that uses REST to get the list of iApps is failing with the same Bad Gateway error. ONE time when trying the query with Postman this morning the actual Java timeout error made it back to me. It was this: https://{{F5-BIGIP-LTM}}/mgmt/tm/sys/application/service { "code": 400, "message": "Expiration was Wed Apr 15 09:06:18 EDT 2015", "restOperationId": 2760519, "errorStack": [ "java.util.concurrent.TimeoutException: Expiration was Wed Apr 15 09:06:18 EDT 2015", "at com.f5.rest.common.RestHelper$1.run(RestHelper.java:1825)", "at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)", "at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)", "at java.util.concurrent.FutureTask.run(FutureTask.java:166)", "at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)", "at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)", "at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)", "at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)", "at java.lang.Thread.run(Thread.java:722)\n" ] }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects