LoginSignup
0
0

More than 3 years have passed since last update.

APIを叩いていてTimestamp for this request is too fast.とエラーが出た時の解決策

Posted at

APIを叩いていたらこんな応答が返ってきました

なぜ・・日本時間なのが悪いのか?と色々推測しました。

{
  "status": 1,
  "messages": [
    {
      "message_code": "ERR-5009",
      "message_string": "Timestamp for this request is too fast."
    }
  ],
  "responsetime": "2021-01-13T07:43:02.225Z"
}

結論 PCの時刻設定が違っている

特に設定をいじった覚えはないのですが、確かにずれがありました。
下記画像では、既に時間の修正を行っています。直す前は7.5秒のずれがありました。
スクリーンショット 2021-01-13 16.59.52.png
https://www.time-j.net/worldtime/country/jp

上記サイトと見比べながら人力で修正

時計の時間の部分をぽちぽちやります。
スクリーンショット 2021-01-13 17.02.09.png

ちゃんとデータが返ってくるようになりました

{
  "status": 0,
  "data": [
    {
      "amount": "4133",
      "available": "4133",
      "conversionRate": "1",
      "symbol": "JPY"
    },
  ],
  "responsetime": "2021-01-13T07:51:49.678Z"
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0