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

Error: Process completed with exit code 1. #22

Open
JohnnyZinc opened this issue Mar 16, 2023 · 3 comments
Open

Error: Process completed with exit code 1. #22

JohnnyZinc opened this issue Mar 16, 2023 · 3 comments

Comments

@JohnnyZinc
Copy link

大佬,我按照说明逐步操作,结果执行action的时候报错了,Error: Process completed with exit code 1.该怎么办?
image

@TheSlientnight
Copy link
Owner

是因为你的cookie当中包含了某些字符导致了错误,我自己排查一下

@aghao
Copy link

aghao commented Apr 7, 2023

我已经找到并解决了问题,原因如下:
浏览器F12的XHR抓取的请求头中,所复制的某个请求头的COOKIES中有未经过URL编码转换的汉字或者非ASCII编码,就会报这个错误

解决方法:
复制COOKIES时注意多挑选不同的XHR请求头的COOKIES对比一下,例如选择名称为homeH5Enc?rids=9954317这样的请求头中的COOKIES,其中的中文或非ASCII码的字符必须是转换后的URL编码才可以复制,比如_“我是一个用户名”这种字符必须显示是转换后的编码“%E6%88%91%E6%98%AF%E4%B8%80%E4%B8%AA%E7%94%A8%E6%88%B7%E5%90%8D”_,这种的COOKIES才可以被程序识别。

因为该程序试用UTF-8编码,是不认识中文或者非ASCII码的,所以检查一下你复制的COOKIES,大概率是复制的COOKIES中某些字符编码未经过URL编码转换,所以XHR中更换其他请求头,选择已经URL编码后的COOKIES复制即可

@JohnnyZinc
Copy link
Author

好的谢谢,我等下试试

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

3 participants