PauperZ / SSRSpeedN

基于SSRSpeed修改,支持同时进行单线程/多线程测速,并可同时进行流媒体解锁状态测试
GNU General Public License v3.0
1.13k stars 157 forks source link

macOS geoip报错 #29

Closed Ives-Dong closed 2 years ago

Ives-Dong commented 2 years ago

[2022-05-09 23:16:03,187][ERROR][4341384576][geo_ip.py:76]Geo IP Failed. Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests/models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/xxxxxxxxxx/Downloads/SSRSpeedN-1.03/ssrspeed/utils/geo_ip.py", line 70, in IPLoc tmp = rep.json() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/requests/models.py", line 917, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: [Errno Expecting value]

403 Forbidden

403 Forbidden


nginx

: 0 [2022-05-09 23:16:03,188][ERROR][4341384576][geo_ip.py:78]b'\r\n403 Forbidden\r\n\r\n

403 Forbidden

\r\n
nginx
\r\n\r\n\r\n'