yihong0618 / GitHubPoster

Make everything a GitHub svg poster and Skyline!
MIT License
1.77k stars 288 forks source link

请求中国区佳明数据报错 #106

Closed fffscd closed 7 months ago

fffscd commented 7 months ago
    activities = self.client.get_activities(start=start, limit=limit)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/garminconnect/__init__.py", line 756, in get_activities
    return self.connectapi(url, params=params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/garminconnect/__init__.py", line 167, in connectapi
    return self.garth.connectapi(path, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/garth/http.py", line 169, in connectapi
    resp = self.request(method, "connectapi", path, api=True, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/garth/http.py", line 127, in request
    assert self.oauth1_token
AssertionError

使用命令

python3 -m github_poster garmin --garmin_user_name ${user_name} --garmin_password ${pass_word} --year 2016-2021 --special-color1 blue --special-color2 pink --me yihong0618 --cn

账号和密码已经替换成了自己的。 中国区的账号,求问,这个是网络问题吗?

yihong0618 commented 7 months ago

@fffscd 现在不用 password 和 username 了你先参考 running_page 的 garmin 部分然后我更改一下 readme (和代码) https://github.com/yihong0618/running_page

yihong0618 commented 7 months ago

@fffscd 修复了,你拉下最新代码再试试同样的命令?

fffscd commented 7 months ago

已经可以了 感谢感谢

yihong0618 commented 7 months ago

不客气