小白今天遇到了个问题,不知道各位对代理,机场,和命令行比较熟的大佬有没有什么见解
背景是希望在win上通过终端在一些被墙的网站(Kaggle)上传数据,命令行上的主要操作就是利用Kaggle官方提供的python api库敲几个简单的调用命令来上传。
核心问题其实是Kaggle国内没法直连上传数据,所以通过clash在本地用上购买的机场代理后,虽然能连上并且有一定的速度,但会断断续续的一直报错,并且很不稳定:
Starting upload for file cifar100.tar(PS:具体报错信息需要往右边拉一下-->)
Already uploaded 0 bytes. Will resume upload at 1.
6%|█████████████▎ | 10.7M/171M [00:02<00:17, 9.75MB/s]2024-06-13 00:22:17,843 WARNING Retrying (Retry(total=9, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)': /upload/storage/v1/b/kaggle-data-sets/o?uploadType=resumable&upload_id=ABPtcPr34ryq4OLZ3d9M_vewmMCTqKDlS-W7OYioym4kCI2lzQ-Zo2ocFNliQ4ThMcvc5NSWgOaRq2zkK7hN8U_JGN25D5iGuiZZA5IT6QYElFJJ
13%|███████████████████████████▎ | 21.9M/171M [00:04<00:16, 9.43MB/s]2024-06-13 00:22:21,142 WARNING Retrying (Retry(total=8, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)': /upload/storage/v1/b/kaggle-data-sets/o?uploadType=resumable&upload_id=ABPtcPr34ryq4OLZ3d9M_vewmMCTqKDlS-W7OYioym4kCI2lzQ-Zo2ocFNliQ4ThMcvc5NSWgOaRq2zkK7hN8U_JGN25D5iGuiZZA5IT6QYElFJJ
22%|██████████████████████████████████████████████▉ | 37.7M/171M [00:07<00:12, 11.5MB/s]2024-06-13 00:22:25,282 WARNING Retrying (Retry(total=7, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)': /upload/storage/v1/b/kaggle-data-sets/o?uploadType=resumable&upload_id=ABPtcPr34ryq4OLZ3d9M_vewmMCTqKDlS-W7OYioym4kCI2lzQ-Zo2ocFNliQ4ThMcvc5NSWgOaRq2zkK7hN8U_JGN25D5iGuiZZA5IT6QYElFJJ
28%|████████████████████████████████████████████████████████████▌ | 48.6M/171M [00:12<00:27, 4.72MB/s]2024-06-13 00:22:31,830 WARNING Retrying (Retry(total=6, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)': /upload/storage/v1/b/kaggle-data-sets/o?uploadType=resumable&upload_id=ABPtcPr34ryq4OLZ3d9M_vewmMCTqKDlS-W7OYioym4kCI2lzQ-Zo2ocFNliQ4ThMcvc5NSWgOaRq2zkK7hN8U_JGN25D5iGuiZZA5IT6QYElFJJ
······之后是无限循环直到耗尽Retry次数
主要报错是
'ConnectionResetError(10054, ‘远程主机强迫关闭了一个现有的连接。’
感觉好像不是机场的问题,因为之前机场打开YouTube啥的也都很流畅,因为本人调包侠对网络不是很了解,也google了相关的error(没太找到这种情况),但还是不太明白问题出在哪里了…
看看各位大佬能不能给小弟提供什么见解