Duplicate ID error when creating a push with the same ID after stopping a push #1556
Replies: 6 comments 3 replies
-
Is there any reason to use the same ID again? This is by design. Because IDs can also be used to look up past records, IDs that have been used once cannot be used. |
Beta Was this translation helpful? Give feedback.
-
I am using the ID to match my app's internal IDs, the format is |
Beta Was this translation helpful? Give feedback.
-
I'm not sure how keeping an ID around makes sense for pushes, it only makes sense for recordings. |
Beta Was this translation helpful? Give feedback.
-
Also, if you're keeping it, how come it clears when a stream goes online or offline, and doesn't stay around indefinitely? |
Beta Was this translation helpful? Give feedback.
-
We may push and stop the stream multiple times while it is online, which can later be tracked by ID in the log. There are various cases. Well... what you need might be deletePush or resumePush. I'll consider this. |
Beta Was this translation helpful? Give feedback.
-
This is not a bug, so moving on to discussion. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When I try to call
:startPush
after calling:stopPush
I get the errorDuplicate ID (400)
if the stopped push and the started push have the same ID.To Reproduce
In this case the ID "ZZZZZ" is the same for both requests. This issue seems to occur both when the stream (
WWWWW
in this example) is receiving RTMP and when it's not receiving.Expected behavior
I'd expect the result to be 200, not 400.
Logs
Server (please complete the following information):
Player (please complete the following information):
N/A (bug is server side)
Additional context
I've been aware of this bug for a while, but I didn't think it would pose an issue. Basically when you call :stopPush, the push still shows up in the list of pushes. In my case I wanted to change the RTMP URL to a closer ingest and that's when this issue happened. I believe the stopped push does go away if the stream stops, but in my case I couldn't stop the stream.
Beta Was this translation helpful? Give feedback.
All reactions