Edge: HTTP-API (/api/v1/streams) is unable to retrieve the detailed frame. #3693
Labels
API
HTTP-API, HTTP-Callback, etc.
good first issue
Easy to fix issues, good for newcomers
help wanted
Extra attention is needed
TransByAI
Translated by AI/GPT.
Description
When SRS is used in remote mode as an edge server, the HTTP-API (/api/v1/streams) is unable to retrieve the detailed frame of the stream.
SRS Version:3.0.168
SRS Log:
[2023-07-19 11:06:21.619][Error][176752][243][62] serve error code=1011 : parse message : parse message : grow buffer : read bytes : timeout 15000 ms
thread [176752][243]: do_cycle() [src/app/srs_app_http_api.cpp:1354][errno=62]
thread [176752][243]: parse_message() [src/service/srs_service_http_conn.cpp:95][errno=62]
thread [176752][243]: parse_message_imp() [src/service/srs_service_http_conn.cpp:156][errno=62]
thread [176752][243]: grow() [src/protocol/srs_protocol_stream.cpp:179][errno=62]
thread [176752][243]: read() [src/service/srs_service_st.cpp:478][errno=62](Timer expired)
{
"code": 0,
"server": "vid-176752-357",
"streams": [
{
"id": "vid-176756-24",
"name": "teststream1",
"vhost": "vid-176753-359",
"app": "test",
"live_ms": 1689735965750,
"clients": 2,
"frames": 0,
"send_bytes": 95342709,
"recv_bytes": 7628,
"kbps": {
"recv_30s": 0,
"send_30s": 1290
},
"publish": {
"active": true,
"cid": "234"
},
"video": {
"codec": "H264",
"profile": "High",
"level": "4",
"width": 1920,
"height": 1088
},
"audio": {
"codec": "AAC",
"sample_rate": 44100,
"channel": 2,
"profile": "LC"
}
}
]
}
Replay
Please describe how to replay the bug?
Step 1: Enable http-api config
Step 2: Use remote mode as a edge stream node.
Step 3: Pull stream from edge node. Get stream frame detail by /api/v1/streams.
Expect
whether srs can get frame info by http-api(/api/v1/streams) when use remote mode . if can ,which version and what should I do?
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: