fix: add debug message when error on getwebpage#63
Merged
pchpub merged 2 commits intopchpub:mainfrom Oct 14, 2022
cxw620:pch-main-fix-cn-accesskey-proxy
Merged
fix: add debug message when error on getwebpage#63pchpub merged 2 commits intopchpub:mainfrom cxw620:pch-main-fix-cn-accesskey-proxy
pchpub merged 2 commits intopchpub:mainfrom
cxw620:pch-main-fix-cn-accesskey-proxy
Conversation
Owner
|
是为了防止解析服务器频繁请求b站服务器而导致ban机(此处代理可以使用任意地区的节点,不是非得cn(标上cn只是说明此处accesskey是b站主站而非泰区))(我自己服务器关了这个代理(人少)) |
Collaborator
Author
|
我自用是稍微改了下换成我自己用CDN反代的域名, 出口IP就是CDN的回源IP了( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR

这里遇到请求失败, 给个错误提示可能会好点? 像这样
cn_proxy_accesskey_url 这个应该是为了应对-10500的情况的吧(

或者, 避免异地登录风险?), 开了, 一直用着, 然后今天突然发现服务器寄了, 排查不出来原因, 一直怀疑是服务器出问题了,最后实在想不通, 缓存的user_info让故障时有时无, 看日志是getuser_list出的问题, 看了看源码, 才猜到是cn_proxy_accesskey_url的代理出了问题导致的(病了两天, 宿舍断电, 没及时接上ups给宿舍的小服务器通电... 服务器的ip段挨D了绕美清洗, zerotier时好时坏... )