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

运行报错 #13

Closed
DonKean opened this issue May 8, 2023 · 2 comments
Closed

运行报错 #13

DonKean opened this issue May 8, 2023 · 2 comments

Comments

@DonKean
Copy link

DonKean commented May 8, 2023

Run python weread.py "" "" "***"
Traceback (most recent call last):
File "/home/runner/work/weread_to_notion/weread_to_notion/weread.py", line 389, in
session.get(WEREAD_URL)
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/requests/sessions.py", line 717, in send
extract_cookies_to_jar(self.cookies, request, r.raw)
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/requests/cookies.py", line 137, in extract_cookies_to_jar
jar.extract_cookies(res, req)
AttributeError: 'NoneType' object has no attribute 'extract_cookies'
Error: Process completed with exit code 1.

@malinkang
Copy link
Owner

cookie设置的有问题

@DonKean
Copy link
Author

DonKean commented May 9, 2023

搞定了,Mac 用Edge浏览器复制出来的cookies 试了很多次都是上面的提示,用Chrome复制,再试就成功了

@DonKean DonKean closed this as completed May 9, 2023
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

2 participants