lukedemi / gdax-notifier

send notifications when GDAX orders are filled
21 stars 7 forks source link

Connection fails #2

Open ShadyElyaski opened 6 years ago

ShadyElyaski commented 6 years ago

When trying to run docker, I get the following error:-

bundler: failed to load command: ./run.rb (./run.rb) Coinbase::Exchange::BadRequestError: {"message":"request timestamp expired"} /usr/local/bundle/bundler/gems/coinbase-exchange-ruby-2c4b3f91346a/lib/coinbase/exchange/adapters/net_http.rb:38:in http_verb' /usr/local/bundle/bundler/gems/coinbase-exchange-ruby-2c4b3f91346a/lib/coinbase/exchange/api_client.rb:285:inget' /usr/local/bundle/bundler/gems/coinbase-exchange-ruby-2c4b3f91346a/lib/coinbase/exchange/api_client.rb:209:in fills' /usr/src/app/lib/notifier.rb:24:infills' /usr/src/app/lib/notifier.rb:20:in create_fill_cache' /usr/src/app/lib/notifier.rb:16:ininitialize' /usr/src/app/run.rb:5:in new' /usr/src/app/run.rb:5:in<top (required)>'

lukedemi commented 6 years ago

will take a look, thanks for the heads up

juanezamudio commented 6 years ago

Figured out that it was an error with my machine's clock being out of sync. Try running:

sudo ntpdate -u time.apple.com

That seemed to do it for me. Replace the time server name if you're using a different server.