Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录成功后报错 #49

Open
KawhiKevin opened this issue Dec 24, 2022 · 4 comments
Open

登录成功后报错 #49

KawhiKevin opened this issue Dec 24, 2022 · 4 comments

Comments

@KawhiKevin
Copy link

KawhiKevin commented Dec 24, 2022

Traceback (most recent call last):
File "C:\Program Files\Python39\lib\site-packages\requests\models.py", line 972, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Program Files\Python39\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Program Files\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\Python39\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 "E:\Learn\JDBuyBuy\JdBuyer_KangYuan_JiuAn\JdBuyer.py", line 115, in
buyer.buyItemInStock(skuId, areaId, skuNum, stockInterval,
File "E:\Learn\JDBuyBuy\JdBuyer_KangYuan_JiuAn\JdBuyer.py", line 75, in buyItemInStock
self.session.fetchItemDetail(skuId)
File "E:\Learn\JDBuyBuy\JdBuyer_KangYuan_JiuAn\JdSession.py", line 169, in fetchItemDetail
resp = self.getItemDetail(skuId).json()
File "C:\Program Files\Python39\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)

@zhouzhili
Copy link

一样这个错误,怎么解决呢

@doubleJJJJ
Copy link

同问,昨天还是可以下单的,今天登录就显示这个错误了

@qing666888
Copy link

resp = self.getItemDetail(skuId).json() 这句获取到商品信息后,转json报错了

@bjx451278
Copy link

触发反爬了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants