【发布时间】:2022-11-04 12:02:39
【问题描述】:
我尝试使用其Python client 请求 GitLab 中公共软件存储库的星数和提交数。但是,如果执行以下脚本,我会不断收到GitlabHttpError 503。
import gitlab
import requests
url = 'https://gitlab.com/juliensimon/huggingface-demos'
private_token = 'xxxxxxxx'
gl = gitlab.Gitlab(url, private_token=private_token)
all_projects = gl.projects.list(all=True)
我阅读了之前的帖子,但没有一篇对我有用:[1]、[2] 和 [3]。人们提到:
- 稍后重试通常有效
[I tried in different periods but still got the same error.] - 为
no_proxy[Not sure what it means for me? I do not set the proxy explicitly.]设置环境变量
【问题讨论】:
标签: gitlab python-gitlab