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

Still unable to use WHIP #125

Open
kaitlynia opened this issue Apr 28, 2024 · 3 comments
Open

Still unable to use WHIP #125

kaitlynia opened this issue Apr 28, 2024 · 3 comments

Comments

@kaitlynia
Copy link

v0.12.6, Ubuntu

Describe the bug
Throws the following error: [2024-04-28T00:25:45Z ERROR xwebrtc::webrtc] session run error, err: Utf8Error: invalid utf-8 sequence of 1 bytes from index 11

No matter what URL is supplied in OBS (with/without token, specifying /whip or not) it always throws Utf8Error

To Reproduce
Use any URL pointing to a xiu server in OBS (WHIP)

Expected behavior
Accepts incoming request from OBS

@kaitlynia
Copy link
Author

The error occurs for this line:

if let Some(content_length) = parse_content_length(std::str::from_utf8(&remaining_data)?) {

...indicating that whatever data ends up in reader is not Utf8. I have not supplied any non-Utf8 text in my OBS settings, so it's possible that OBS is injecting some non-Utf8 characters or somewhere along the way the request is mutated by xiu to contain non-Utf8 characters

@harlanc
Copy link
Owner

harlanc commented Apr 29, 2024

A similar problem mentioned here : #82 (comment).
Or refer to the doc https://www.rustxiu.com/docs/scenarios/webrtc

@kaitlynia
Copy link
Author

There is not sufficient information in the docs for me to troubleshoot with. An example push URL is provided in the form of http://localhost:8900/whip?app=live&stream=test&token=123 but there is no explanation of where to set app or whether token goes into the URL field or Bearer Token field in OBS. Is /whip always the served path? Do WHEP listeners really need the token too/is there no way to require authentication for only WHIP?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants