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

Edge: HTTP-API (/api/v1/streams) is unable to retrieve the detailed frame. #3693

Open
cocozhaocs opened this issue Jul 19, 2023 · 1 comment
Assignees
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.

Comments

@cocozhaocs
Copy link

cocozhaocs commented Jul 19, 2023

Note: Please read FAQ before file an issue, see #2716

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.

  1. SRS Version:3.0.168

  2. 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)

  1. response of /api/v1/streams :
    {
    "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

xxxxxxxxxxxx
xxxxxxxxxxxx
xxxxxxxxxxxx

Step 2: Use remote mode as a edge stream node.

xxxxxxxxxxxx
xxxxxxxxxxxx
xxxxxxxxxxxx

Step 3: Pull stream from edge node. Get stream frame detail by /api/v1/streams.

xxxxxxxxxxxx
xxxxxxxxxxxx
xxxxxxxxxxxx

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

@winlinvip winlinvip changed the title when srs use remote mode as edge server,HTTP-API (/api/v1/streams)can not fetch the stream frame detail 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. Jul 29, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
@winlinvip winlinvip added the API HTTP-API, HTTP-Callback, etc. label Apr 3, 2024
@winlinvip winlinvip self-assigned this Apr 3, 2024
@winlinvip winlinvip changed the title 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. Edge: HTTP-API (/api/v1/streams) is unable to retrieve the detailed frame of the stream. Apr 3, 2024
@winlinvip winlinvip changed the title Edge: HTTP-API (/api/v1/streams) is unable to retrieve the detailed frame of the stream. Edge: HTTP-API (/api/v1/streams) is unable to retrieve the detailed frame. Apr 3, 2024
@winlinvip winlinvip added good first issue Easy to fix issues, good for newcomers help wanted Extra attention is needed labels Apr 3, 2024
@winlinvip
Copy link
Member

There are bugs in HTTP API module of Edge server. But I think we should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants