motiv-labs / janus

An API Gateway written in Go
https://hellofresh.gitbooks.io/janus
MIT License
2.79k stars 317 forks source link

PT-1455 Retrieved Forwarding Timeout is always 0 #336

Closed s4nji closed 6 years ago

s4nji commented 6 years ago

Janus stores forwarding timeout duration, and when it's retrieved via web api, it is always 0.

Reproduction Steps:

  1. Send a PUT request to update an API endpoint and set the forwarding timeouts to any non-zero value (e.g. 32s).
  2. Send a GET request to that API definition.

Expected behavior: We receive the same value we sent earlier (32s).

Observed behavior: We receive 0s for the forwarding timeout values.
However, that value is still stored in mongodb, as int64 (32000000000).

Janus version: 3.7.1-rc.21