JdBuyer icon indicating copy to clipboard operation
JdBuyer copied to clipboard

requests.exceptions.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

Open shuyuncong0 opened this issue 2 years ago • 6 comments

PS D:\workplace\JdBuyer-main> python JdBuyer.py 2022-10-30 18:14:12,605 INFO: 登录成功 Traceback (most recent call last): File "D:\javaDev\PythonDev\lib\site-packages\requests\models.py", line 972, in json return complexjson.loads(self.text, **kwargs) File "D:\javaDev\PythonDev\lib\json_init_.py", line 357, in loads return _default_decoder.decode(s) File "D:\javaDev\PythonDev\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "D:\javaDev\PythonDev\lib\json\decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "JdBuyer.py", line 115, in buyer.buyItemInStock(skuId, areaId, skuNum, stockInterval, File "JdBuyer.py", line 75, in buyItemInStock self.session.fetchItemDetail(skuId) File "D:\workplace\JdBuyer-main\JdSession.py", line 169, in fetchItemDetail resp = self.getItemDetail(skuId).json() File "D:\javaDev\PythonDev\lib\site-packages\requests\models.py", line 976, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

shuyuncong0 avatar Oct 30 '22 10:10 shuyuncong0

今天下午用的时候还是好好的, 后面突然变成这个错误怎么都不行了。。。

有可能是查询过多,被京东屏蔽了?

neotaburiss avatar Nov 01 '22 13:11 neotaburiss

我也出现这个问题了

DDDybala avatar Nov 05 '22 07:11 DDDybala

+1 我也出现了

xkwy521 avatar Nov 23 '22 11:11 xkwy521

2022-12-13 00:57:33,210 INFO: 登录成功
{'code':200,'limit':1}
{'code':200,'limit':1}
Traceback (most recent call last):

被屏蔽了,超限制了

AxisRay avatar Dec 12 '22 17:12 AxisRay

很尴尬

EndoSakura avatar Jan 28 '23 07:01 EndoSakura

刚才下下来,一登录就提示这个,有什么好的解决办法么?

WGwangguan avatar Apr 14 '23 07:04 WGwangguan