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

NEO 版本测试 #48

Closed
ludoux opened this issue May 15, 2023 · 9 comments
Closed

NEO 版本测试 #48

ludoux opened this issue May 15, 2023 · 9 comments

Comments

@ludoux
Copy link
Owner

ludoux commented May 15, 2023

ngapost2md_NEO_PRE_0.0.1_20230515

@CatSayInk @proItheus @oarinv @crella6

目前新版本基本实现了大多数旧版功能,具体参见 neo 分支的 README

假如各位方便或者正在使用旧版的话,欢迎用这个新版的测试一下,捉捉 bug。多谢多谢 :) 😄 (特别是reply等格式在md文件里的排版等bug)

使用说明也请见 neo 分支的 README。简单来说就是需要更改 cookies.json 里面的两个 MODIFY_ME 文本 和 config.ini 里的 UA MODIFY_ME 文本。

Windows 调用方式如下
图片

文件在下文链接的压缩包里,里面有AMD64架构的Linux版和Windows版,任一测试即可。

下载:ngapost2md_NEO_PRE_0.0.1_20230515.zip
(20230516: 应用了PR #51 ,已修复 config.ini 字段错误)

@oarinv
Copy link
Contributor

oarinv commented May 16, 2023

User-Agent怎么设置

@ludoux
Copy link
Owner Author

ludoux commented May 16, 2023 via email

@ludoux
Copy link
Owner Author

ludoux commented May 16, 2023

User-Agent怎么设置

@oarinv
我这边目前的测试来看,使用普通桌面浏览器的UA即可。还没有遇到一定要nga客户端UA才能下载的帖子。

@oarinv
Copy link
Contributor

oarinv commented May 16, 2023

2023/05/16 15:56:15 bad response, raw dump:

panic: runtime error: makeslice: len out of range

goroutine 1 [running]:
github.com/ludoux/ngapost2md/nga.(*Tiezi).page(0xc000122580, 0xc000012018?)
	/home/luu/code/go/ngapost2md/nga/nga.go:169 +0x9a7
github.com/ludoux/ngapost2md/nga.(*Tiezi).InitFromWeb(0xc000122580, 0xc00006f870?, 0x972ce0?)
	/home/luu/code/go/ngapost2md/nga/nga.go:193 +0x10a
main.main()
	/home/luu/code/go/ngapost2md/main.go:41 +0x505

无法运行

@ludoux
Copy link
Owner Author

ludoux commented May 16, 2023

2023/05/16 15:56:15 bad response, raw dump:

panic: runtime error: makeslice: len out of range

goroutine 1 [running]:
github.com/ludoux/ngapost2md/nga.(*Tiezi).page(0xc000122580, 0xc000012018?)
	/home/luu/code/go/ngapost2md/nga/nga.go:169 +0x9a7
github.com/ludoux/ngapost2md/nga.(*Tiezi).InitFromWeb(0xc000122580, 0xc00006f870?, 0x972ce0?)
	/home/luu/code/go/ngapost2md/nga/nga.go:193 +0x10a
main.main()
	/home/luu/code/go/ngapost2md/main.go:41 +0x505

无法运行

@oarinv 谢谢反馈。方便提供一下帖子id么,我这边测试一下。

以及为了避免是配置错误引起的,下面是我的一个配置信息,供参考
图片

@oarinv
Copy link
Contributor

oarinv commented May 16, 2023

33450877
ua 是 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

@ludoux
Copy link
Owner Author

ludoux commented May 16, 2023

33450877 ua 是 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

你好,@oarinv 我用那个UA测试的是可以的,
图片

报bad response错误应该是直接网络请求都没有请求成功,可能是应用发送网络请求失败了?我这边测试断网情况下就会报这个错误(见下图),可能是网络环境有问题或者应用没有办法请求网络(比如代理配置有误等等)。

假如你那边调整网络环境后这个问题依旧,我后面可以做一个最小的网络测试demo,你方便的时候可以帮忙测试一下。多谢多谢

图片

报错代码位置如下:
https://github.com/ludoux/ngapost2md/blob/919eaf73df0d99b3a7624c10c7a5d5d1f673e198/nga/client.go#LL47C16-L47C22

@oarinv
Copy link
Contributor

oarinv commented May 16, 2023

已经修复问题,拼写错误#51

@ludoux
Copy link
Owner Author

ludoux commented May 16, 2023

已经修复问题,拼写错误#51

多谢,已更新主楼的压缩包内的配置文件内容为此PR后的。 (改配置忘记改 assets 文件夹里的了……)

@ludoux ludoux pinned this issue May 16, 2023
@ludoux ludoux closed this as completed Jun 7, 2023
@ludoux ludoux unpinned this issue Jun 7, 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