Coder Social home page Coder Social logo

Comments (9)

ra1ny-yuki avatar ra1ny-yuki commented on August 28, 2024

这是生成该说明文档commit的action(Scheduled update #14168),于Fetch data阶段获取start_stop_helper_r release后可见报错:not 200 status code when fetching repository file readme-zh_cn.md: 404

https://github.com/MCDReforged/PluginCatalogue/actions/runs/3922973249/jobs/6706276907

from plugincatalogue.

AnzhiZhang avatar AnzhiZhang commented on August 28, 2024

这是生成该说明文档commit的action(Scheduled update #14168),于Fetch data阶段获取start_stop_helper_r release后可见报错:not 200 status code when fetching repository file readme-zh_cn.md: 404

https://github.com/MCDReforged/PluginCatalogue/actions/runs/3922973249/jobs/6706276907

这个问题看起来不是这个插件的,这个插件没有写 readme-zh_cn.md

from plugincatalogue.

AnzhiZhang avatar AnzhiZhang commented on August 28, 2024

找到原因了,请求 API 并没有做翻页,导致没有获取到较老的 release

plugin.py

url = f'https://api.github.com/repos/{plugin.repos_path}/releases'
resp: Optional[List[dict]]
new_etag: str
resp, new_etag = utils.request_github_api(url, etag=self.etag)

utils.py

response = requests.get(url, proxies=constants.PROXIES, headers=headers)

from plugincatalogue.

AnzhiZhang avatar AnzhiZhang commented on August 28, 2024

根据文档,只返回了30个release……
https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#list-releases

from plugincatalogue.

alex3236 avatar alex3236 commented on August 28, 2024

根据文档,只返回了30个release…… https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#list-releases

似乎没有给总页数?

from plugincatalogue.

AnzhiZhang avatar AnzhiZhang commented on August 28, 2024

可以翻到为空的最后一页就行了,或者查看有内容的最后一页是不是达到最大数量

from plugincatalogue.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.