Skip to content

[Help] 录制失败,日志中显示Failed to request live stream: HTTPError #216

Closed

Description

@wwwxxx0402

Problem Overview

使用docker部署,未修改任何配置,在容器内执行

./record.sh
./scan.sh
./uplaod.sh

然后在localhost:22333中任意添加一个录制任务,录制失败,表现为: 录制速度0B/s,录制0,录制弹幕0
在容器内查看/app/logs/blrec/blrec_2025_xxx.log

[2025-03-19 18:15:34,788] [INFO] [stream_url_resolver] [13355] Getting the live stream url... qn: 250, format: flv, api platform: web, use alternative stream: False
[2025-03-19 18:15:35,310] [INFO] [stream_url_resolver] [13355] Got live stream url: 'https://d1--cn-gotcha04.bilivideo.com/live-bvc/142949/live_3519797_5988404_2500.flv?expires=1742382935&len=0&oi=664088483&pt=web&qn=250&trid=1000033480de548e2ee56e13fed37767da99&sigparams=cdn,expires,len,oi,pt,qn,trid&cdn=cn-gotcha04&sign=7f2b0f34219c4ec5a69157ed82be56c8&site=e51b207fcce108f742b0e6ba7f7ff341&free_type=0&mid=0&sche=ban&trace=64&isp=cm&rg=Central&pv=Henan&sk=4207df3de646838b084f14f252be3affb7d9daa95441dc8e9c578df52c0154b5&p2p_type=1&suffix=2500&info_source=hot_cache&sl=6&score=1&deploy_env=prod&source=puv3_onetier&hot_cdn=909769&pp=srt&origin_bitrate=1134535&vd=bc&src=puv3&order=3'
[2025-03-19 18:15:35,310] [INFO] [stream_fetcher] [13355] Requesting live stream... https://d1--cn-gotcha04.bilivideo.com/live-bvc/142949/live_3519797_5988404_2500.flv?expires=1742382935&len=0&oi=664088483&pt=web&qn=250&trid=1000033480de548e2ee56e13fed37767da99&sigparams=cdn,expires,len,oi,pt,qn,trid&cdn=cn-gotcha04&sign=7f2b0f34219c4ec5a69157ed82be56c8&site=e51b207fcce108f742b0e6ba7f7ff341&free_type=0&mid=0&sche=ban&trace=64&isp=cm&rg=Central&pv=Henan&sk=4207df3de646838b084f14f252be3affb7d9daa95441dc8e9c578df52c0154b5&p2p_type=1&suffix=2500&info_source=hot_cache&sl=6&score=1&deploy_env=prod&source=puv3_onetier&hot_cdn=909769&pp=srt&origin_bitrate=1134535&vd=bc&src=puv3&order=3
[2025-03-19 18:15:36,156] [INFO] [stream_fetcher] [13355] Response received
[2025-03-19 18:15:36,156] [WARNING] [stream_fetcher] [13355] Failed to request live stream: HTTPError('404 Client Error: Not Found for url: https://d1--cn-gotcha04.bilivideo.com/live-bvc/142949/live_3519797_5988404_2500.flv?expires=1742382935&len=0&oi=664088483&pt=web&qn=250&trid=1000033480de548e2ee56e13fed37767da99&sigparams=cdn,expires,len,oi,pt,qn,trid&cdn=cn-gotcha04&sign=7f2b0f34219c4ec5a69157ed82be56c8&site=e51b207fcce108f742b0e6ba7f7ff341&free_type=0&mid=0&sche=ban&trace=64&isp=cm&rg=Central&pv=Henan&sk=4207df3de646838b084f14f252be3affb7d9daa95441dc8e9c578df52c0154b5&p2p_type=1&suffix=2500&info_source=hot_cache&sl=6&score=1&deploy_env=prod&source=puv3_onetier&hot_cdn=909769&pp=srt&origin_bitrate=1134535&vd=bc&src=puv3&order=3')
[2025-03-19 18:15:36,157] [WARNING] [request_exception_handler] [13355] HTTPError('404 Client Error: Not Found for url: https://d1--cn-gotcha04.bilivideo.com/live-bvc/142949/live_3519797_5988404_2500.flv?expires=1742382935&len=0&oi=664088483&pt=web&qn=250&trid=1000033480de548e2ee56e13fed37767da99&sigparams=cdn,expires,len,oi,pt,qn,trid&cdn=cn-gotcha04&sign=7f2b0f34219c4ec5a69157ed82be56c8&site=e51b207fcce108f742b0e6ba7f7ff341&free_type=0&mid=0&sche=ban&trace=64&isp=cm&rg=Central&pv=Henan&sk=4207df3de646838b084f14f252be3affb7d9daa95441dc8e9c578df52c0154b5&p2p_type=1&suffix=2500&info_source=hot_cache&sl=6&score=1&deploy_env=prod&source=puv3_onetier&hot_cdn=909769&pp=srt&origin_bitrate=1134535&vd=bc&src=puv3&order=3')
[2025-03-19 18:15:51,118] [INFO] [stream_url_resolver] [13355] Getting the live stream url... qn: 250, format: flv, api platform: web, use alternative stream: False
[2025-03-19 18:15:51,658] [INFO] [stream_url_resolver] [13355] Got live stream url: 'https://d1--cn-gotcha04.bilivideo.com/live-bvc/933813/live_3519797_5988404_2500.flv?expires=1742382951&len=0&oi=664088483&pt=web&qn=250&trid=10005a8683bf350d87a910a19d8e1f67da99&sigparams=cdn,expires,len,oi,pt,qn,trid&cdn=cn-gotcha04&sign=e1cc01ba1cca86214c0e23a56f3d6c07&site=37615e76b21477792aa886eed6e266aa&free_type=0&mid=0&sche=ban&trace=64&isp=cm&rg=Central&pv=Henan&sl=6&origin_bitrate=1134535&score=1&deploy_env=prod&source=puv3_onetier&p2p_type=1&hot_cdn=909769&info_source=hot_cache&suffix=2500&sk=4207df3de646838b084f14f252be3affb7d9daa95441dc8e9c578df52c0154b5&pp=srt&vd=bc&src=puv3&order=2'
[2025-03-19 18:15:51,658] [INFO] [stream_fetcher] [13355] Requesting live stream... https://d1--cn-gotcha04.bilivideo.com/live-bvc/933813/live_3519797_5988404_2500.flv?expires=1742382951&len=0&oi=664088483&pt=web&qn=250&trid=10005a8683bf350d87a910a19d8e1f67da99&sigparams=cdn,expires,len,oi,pt,qn,trid&cdn=cn-gotcha04&sign=e1cc01ba1cca86214c0e23a56f3d6c07&site=37615e76b21477792aa886eed6e266aa&free_type=0&mid=0&sche=ban&trace=64&isp=cm&rg=Central&pv=Henan&sl=6&origin_bitrate=1134535&score=1&deploy_env=prod&source=puv3_onetier&p2p_type=1&hot_cdn=909769&info_source=hot_cache&suffix=2500&sk=4207df3de646838b084f14f252be3affb7d9daa95441dc8e9c578df52c0154b5&pp=srt&vd=bc&src=puv3&order=2
[2025-03-19 18:15:54,774] [WARNING] [stream_fetcher] [13355] Failed to request live stream: ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='d1--cn-gotcha04.bilivideo.com', port=443): Read timed out. (read timeout=3)"))
[2025-03-19 18:15:54,775] [WARNING] [request_exception_handler] [13355] ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='d1--cn-gotcha04.bilivideo.com', port=443): Read timed out. (read timeout=3)"))

Steps Taken

(Detail your attempts to resolve the issue, including any relevant steps or processes.)

  1. Config/File changes: 未修改setting.toml
  2. Run command:
    宿主机执行
sudo docker run \
    -itd \
    --name bilive \
    -p 22333:2233 \
    timerring/bilive:0.2.10

容器内执行

src/utils/biliup login   //扫码登陆
bilitool login //扫码登陆
./record.sh
./scan.sh
./upload.sh
  1. See errors: ...

Expected Outcome

Image

Screenshots

Image

Environment Information

  • Operating System: docker
  • Driver & CUDA Version: 无gpu

Activity

  1. self-assigned this
    on Mar 19, 2025
  2. timerring commented on Mar 19, 2025

    @timerring
    Owner

    应该是网络问题,建议再次执行./record.sh重启,我这里测试没问题:

    Image

  3. wwwxxx0402 commented on Mar 19, 2025

    @wwwxxx0402
    Author

    应该是网络问题,建议再次执行./record.sh重启,我这里测试没问题:

    Image

    已解决,在blrec issue中,看到相关问题,问题在于使用biliup登录后,它没读到config.json,重启容器后就好了

  4. Repository owner locked and limited conversation to collaborators on May 1, 2025
  5. converted this issue into a discussion #324 on May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions