I have a very cumbersome workaround for you.
Navigate to the global node modules directory — Stright to the local FDK’s source.
# On Mac
~
❯ cd /usr/local/lib/node_modules/fdk/lib/api
# Open Proxy.js
/usr/local/lib/node_modules/fdk/lib/api
❯ open proxy.js
In the proxy.js
file,
const MAX_RETRY_DELAY = 1500;
const MIN_RETRY_DELAY = 0;
const REQUEST_TIMEOUT = 5000; // Change this to 10000
const RETRY_STRATEGY = request.RetryStrategies.HTTPOrNetworkError;
Save the file and close it.
Next time you run fdk run
, this version of fdk will be used. Also, do not forget to reset, because it might affect all projects that you work with fdk
.
A ideal way would be to make local testing for the request method timeout configurable by passing flag such as
fdk run --request-timeout=10
But this is not the case today.