From 4acec169f8928f29b15f231239d5fd40e55da0f5 Mon Sep 17 00:00:00 2001 From: Wenl4ng <15861868579@163.com> Date: Wed, 22 Jan 2025 16:46:58 +0800 Subject: [PATCH] fix_doc --- docs/en/developer_tutorial/trouble_shooting.md | 16 ++++++++-------- docs/zh/developer_tutorial/trouble_shooting.md | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/en/developer_tutorial/trouble_shooting.md b/docs/en/developer_tutorial/trouble_shooting.md index e9f2172..8443854 100644 --- a/docs/en/developer_tutorial/trouble_shooting.md +++ b/docs/en/developer_tutorial/trouble_shooting.md @@ -8,13 +8,13 @@ There are multiple causes for certificate verification failures. The following l Solution 1: If the Python root CA certificate does not match the requests library version, use either of the following methods to locate the fault. - ```commandline + ```shell SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)') ``` + Modifying the version of the requests library: - ```commandline + ```shell # Check the version of the requests library. pip show requests @@ -42,7 +42,7 @@ Solution 1: If the Python root CA certificate does not match the requests librar Solution 2: Manually configure the certificate of the Modelers community. - ```commandline + ```shell SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1131)') ``` @@ -67,13 +67,13 @@ If the modification does not take effect, skip certificate verification. This me ## Large Git File Upload Failure -```commandline +```shell LFS: Client error &{%!!(string=https) %!!(string=) %!!xxxxxxxxxx %!!(striing=)}s(MISSING) from HTTP 413 ``` or -```commandline +```shell LFS: Client error https://modelers.cn/user/repo.git/info/lfs/objects/xxxxxxxxxxxx from HTTP 413 ``` @@ -81,7 +81,7 @@ When you use **git lfs** to upload files, the size of each file cannot exceed 5 ## License Error in README -```commandline +```shell remote: Sorry, your push was rejected during YAML metadata verification: remote: - Error: license must be one of (apache-2.0 mit openrail bigscience-openrail-m creativeml-openrail-m bigscience-bloom-rail-1.0 bigcode-openrail-m afl-3.0 artistic-2.0 bsl-1.0 bsd bsd-2-clause bsd-3-clause bsd-3-clause-clear c-uda cc cc0-1.0 cc-by-2.0 cc-by-2.5 cc-by-3.0 cc-by-4.0 cc-by-sa-3.0 cc-by-sa-4.0 cc-by-nc-2.0 cc-by-nc-3.0 cc-by-nc-4.0 cc-by-nd-4.0 cc-by-nc-nd-3.0 cc-by-nc-nd-4.0 cc-by-nc-sa-2.0 cc-by-nc-sa-3.0 cc-by-nc-sa-4.0 cdla-sharing-1.0 cdla-permissive-1.0 cdla-permissive-2.0 wtfpl ecl-2.0 epl-1.0 epl-2.0 etalab-2.0 eupl-1.1 agpl-3.0 gfdl gpl gpl-2.0 gpl-3.0 lgpl lgpl-2.1 lgpl-3.0 isc lppl-1.3c ms-pl mpl-2.0 odc-by odbl openrail++ osl-3.0 postgresql ofl-1.1 ncsa unlicense zlib pddl lgpl-lr deepfloyd-if-license llama2 gemma unknown llama3 other) To https://modelers.cn/xxx/xx.git @@ -93,7 +93,7 @@ Metadata validity is checked in the **REAMDME.md** file in the repository to whi ## Upload Failure: NameResolutionError -```commandline +```shell requests.exceptions.ConnectionError: HTTPSConnectionPool(host='xxx',port=443):Max retries exceeded url: /api/v1/file/xxx/xxx/pre_upload...(Caused by NameResolutionError(":Failed to resolve 'modelers.cn'([Error -3] Temporary failure in name resolution)")) ``` @@ -101,7 +101,7 @@ The domain name is not resolved correctly. Try again later. ## Download Failure: ChunkedEncodingError -```commandline +```shell requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(1247345764 bytes read, 13764675765 more expected)' ``` diff --git a/docs/zh/developer_tutorial/trouble_shooting.md b/docs/zh/developer_tutorial/trouble_shooting.md index 016c44f..2a4fb17 100644 --- a/docs/zh/developer_tutorial/trouble_shooting.md +++ b/docs/zh/developer_tutorial/trouble_shooting.md @@ -8,13 +8,13 @@ 第一种:Python根CA证书与requests库版本不匹配,请按以下两种方案排查。 - ```commandline + ```shell SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)') ``` + 修改requests库的版本: - ```commandline + ```shell # 查看requests库的版本 pip show requests @@ -42,7 +42,7 @@ 第二种:需手动配置魔乐社区的证书。 - ```commandline + ```shell SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1131)') ``` @@ -67,13 +67,13 @@ ## git大文件上传失败 -```commandline +```shell LFS: Client error &{%!!(string=https) %!!(string=) %!!xxxxxxxxxx %!!(striing=)}s(MISSING) from HTTP 413 ``` 或 -```commandline +```shell LFS: Client error https://modelers.cn/user/repo.git/info/lfs/objects/xxxxxxxxxxxx from HTTP 413 ``` @@ -81,7 +81,7 @@ LFS: Client error https://modelers.cn/user/repo.git/info/lfs/objects/xxxxxxxxxxx ## README.md中license错误 -```commandline +```shell remote: Sorry, your push was rejected during YAML metadata verification: remote: - Error: license must be one of (apache-2.0 mit openrail bigscience-openrail-m creativeml-openrail-m bigscience-bloom-rail-1.0 bigcode-openrail-m afl-3.0 artistic-2.0 bsl-1.0 bsd bsd-2-clause bsd-3-clause bsd-3-clause-clear c-uda cc cc0-1.0 cc-by-2.0 cc-by-2.5 cc-by-3.0 cc-by-4.0 cc-by-sa-3.0 cc-by-sa-4.0 cc-by-nc-2.0 cc-by-nc-3.0 cc-by-nc-4.0 cc-by-nd-4.0 cc-by-nc-nd-3.0 cc-by-nc-nd-4.0 cc-by-nc-sa-2.0 cc-by-nc-sa-3.0 cc-by-nc-sa-4.0 cdla-sharing-1.0 cdla-permissive-1.0 cdla-permissive-2.0 wtfpl ecl-2.0 epl-1.0 epl-2.0 etalab-2.0 eupl-1.1 agpl-3.0 gfdl gpl gpl-2.0 gpl-3.0 lgpl lgpl-2.1 lgpl-3.0 isc lppl-1.3c ms-pl mpl-2.0 odc-by odbl openrail++ osl-3.0 postgresql ofl-1.1 ncsa unlicense zlib pddl lgpl-lr deepfloyd-if-license llama2 gemma unknown llama3 other) To https://modelers.cn/xxx/xx.git @@ -93,7 +93,7 @@ error: failed to push some refs to 'https://modelers.cn/xxx/xx.git' ## 上传报错:NameResolutionError -```commandline +```shell requests.exceptions.ConnectionError: HTTPSConnectionPool(host='xxx',port=443):Max retries exceeded url: /api/v1/file/xxx/xxx/pre_upload...(Caused by NameResolutionError(":Failed to resolve 'modelers.cn'([Error -3] Temporary failure in name resolution)")) ``` @@ -101,7 +101,7 @@ requests.exceptions.ConnectionError: HTTPSConnectionPool(host='xxx',port=443):Ma ## 下载报错:ChunkedEncodingError -```commandline +```shell requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(1247345764 bytes read, 13764675765 more expected)' ``` -- Gitee