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

bilibili录制报错 #60

Closed
lxcoo opened this issue Mar 23, 2021 · 5 comments
Closed

bilibili录制报错 #60

lxcoo opened this issue Mar 23, 2021 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@lxcoo
Copy link

lxcoo commented Mar 23, 2021

java.lang.NullPointerException
at nicelee.bilibili.live.RoomDealer.createRoomDealer(RoomDealer.java:18)
at nicelee.bilibili.Main.getRoomDealer(Main.java:190)
at nicelee.bilibili.Main.main(Main.java:79)
当前没有发现合适的视频录制器: bili
Exception in thread "main" java.lang.NullPointerException
at nicelee.bilibili.Main.getRoomInfo(Main.java:150)
at nicelee.bilibili.Main.main(Main.java:83)
./run-bili.sh: line 3: pause: command not found

@nICEnnnnnnnLee
Copy link
Owner

#35

@lxcoo
Copy link
Author

lxcoo commented Mar 23, 2021

#35

啊抱歉..发错日志了,是这个

org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
at org.json.JSONTokener.syntaxError(JSONTokener.java:507)
at org.json.JSONObject.(JSONObject.java:222)
at org.json.JSONObject.(JSONObject.java:406)
at nicelee.bilibili.live.impl.RoomDealerBilibili.getRoomInfo(RoomDealerBilibili.java:39)
at nicelee.bilibili.Main.getRoomInfo(Main.java:150)
at nicelee.bilibili.Main.main(Main.java:83)
解析失败!!

@nICEnnnnnnnLee
Copy link
Owner

  • 哥, 抓log请把debug=true打开。。。
  • 我这边也复现了一下,发现阿B的网络请求有一定概率回复是乱码,估计是这个问题。
    你等一会再试一下...两下...应该能通(不要太频繁)

@nICEnnnnnnnLee
Copy link
Owner

  • 我估摸着是协议HTTP协议的问题
    毕竟主流浏览器早就HTTP2了,但是我这用的还是HTTP1.1。这是一个很明显的特征。
  • 不能确定是不是这个原因,总之等有时间再把网络请求这块重写试一试

@lxcoo
Copy link
Author

lxcoo commented Mar 23, 2021

  • 哥,抓log请把debug=true打开。。。
  • 我这边也复现现了一下,发现阿B的网络请求有一定概率回复是乱码,估计是这个问题。
    你等一会再试一下...两下...应该能通(不要太浪费)

好嘞(下次一定)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants