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

如何在浏览器开发者工具里查看插件发出的网络请求呢? #123

Open
zjh1943 opened this issue Feb 6, 2025 · 2 comments

Comments

@zjh1943
Copy link

zjh1943 commented Feb 6, 2025

RT,现在发布到今日头条总是失败。我想看看哪个环节出错了,所以想看看点击“同步”后的网络请求和返回值。
但是,我在浏览器开发者工具的“网络”标签页里,看不到任何跟今日头条相关的网络请求。不管我直接用插件尝试同步,还是用 developer.wetchatsync.com 测试,都看不到网络请求。这导致我不知道为同步文章到头条的请求哪里出了错。

请问,如何才能看到插件发出的网络请求呢?

请给位大牛给点思路。我有全栈开发背景,您给点思路就行。万分感谢!
@lljxx1 @curly210102 @Lorin-github @asa1230 @howardliu-cn @k8scat @qgy18

@qgy18
Copy link
Contributor

qgy18 commented Feb 6, 2025

去 extensions 管理页,打开「开发者模式」,找到对应扩展,看是不是有「检查视图 background.html」,点击打开看这里有没请求。

@zjh1943
Copy link
Author

zjh1943 commented Feb 6, 2025

@qgy18 太牛了!万分感谢!我看到发送至 toutiiao.com 的网络请求了,response 是发布失败。

Request:

curl-post-article-to-toutiao.txt

Response:

{
    "code": 7050,
    "data": null,
    "disable_retry": true,
    "err_no": 7050,
    "message": "保存失败",
    "now": 1738803806,
    "reason": "保存失败"
}
Image Image

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