Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase request timeout in Ember server

When using my Ember application in the Ember server ("ember serve"), any request that takes over 1.00 minutes fails with a 502 error. However, when I build my app, and use my local Apache server, requests don't fail for several minutes.

How do I increase the request timeout in Ember server? I don't see any options anywhere to set this value, nor can I find any sort of documentation online.

like image 739
mmadsen Avatar asked Sep 15 '26 19:09

mmadsen


1 Answers

I fixed this myself. It wasn't a problem with Ember server after all. The problem was my ember proxy was pointing to an Apache server, which in-turn proxied the API server. The Apache ProxyPass setting was missing the timeout argument, so it was defaulting to 60 seconds. I needed to add a timeout to my ProxyPass setting in my httpd.conf file, like so:

ProxyPass /api https://localhost:8081/api timeout=180
like image 177
mmadsen Avatar answered Sep 18 '26 01:09

mmadsen