Verifying timeout settings

I’m trying to adjust the timeout settings in my Tyk configuration: I have my tyk.conf set to

  "http_server_options": {
    "certificates": [],
    "enable_websockets": true,
    "flush_interval": 0,
    "min_version": 0,
    "override_defaults": false,
    "proxy_default_timeout": 60,
    "server_name": "",
    "use_ssl": false,
    "use_ssl_le": false,
    "write_timeout": 120
  },

but no matter what I set proxy_default_timeout or write_timeout to, I always get a 504 error after 30 seconds, like

{
  "error": "Upstream service reached hard timeout."
}

and an error message like

time="Jan 07 18:58:52" level=error msg="http: proxy error: net/http: timeout awaiting response headers" api_id=102 api_name=query mw=ReverseProxy org_id= prefix=proxy server_name="query:3000" user_id="****28be" user_ip=192.168.97.1 user_name="local_candig:d0355786-8bd8-4b49-b0c5-361137653bd9"

Is it a different setting that is causing this timeout, or am I doing something wrong when setting it?

Hi @daisieh,

Thank you for your post.

proxy_default_timeout should be set at the root of the config, not within http_server_options.
Please see the docs.

Please let us know how you get on.

Best regards,