v19 Opening stream fails with error 401
#1
Hi,
when I try to open streams with IPTV Simple I get these errors:
Code:

2023-03-12 14:09:10.442 T:3112    ERROR <general>: CCurlFile::Exists - Failed: Failure when receiving data from the peer(56) for http://<path_to_stream>/5412
2023-03-12 14:09:10.529 T:3112     INFO <general>: Skipped 1 duplicate messages..
2023-03-12 14:09:10.529 T:3112     INFO <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - GetChannelStreamProperties - Live Stream URL: http://<path_to_stream>/5412
2023-03-12 14:09:10.543 T:3112     INFO <general>: VideoPlayer::OpenFile: pvr://channels/tv/Alle%20Kan%c3%a4le/pvr.iptvsimple_1318614339.pvr
2023-03-12 14:09:10.546 T:3722     INFO <general>: Creating InputStream
2023-03-12 14:09:10.721 T:3722    ERROR <general>: CCurlFile::FillBuffer - Failed: HTTP returned error 401
2023-03-12 14:09:10.721 T:3722    ERROR <general>: CCurlFile::Open failed with code 401 for http://<path_to_stream>/5412:                                                   
2023-03-12 14:09:10.825 T:3722    ERROR <general>: CCurlFile::FillBuffer - Failed: HTTP returned error 401
2023-03-12 14:09:10.825 T:3722    ERROR <general>: CCurlFile::Open failed with code 401 for http://<path_to_stream>/5412:                                              
2023-03-12 14:09:10.825 T:3722    ERROR <general>: CFileCache::Open - <http://<path_to_stream>/5412> failed to open
2023-03-12 14:09:10.825 T:3722    ERROR <general>: CVideoPlayer::OpenInputStream - error opening [pvr://channels/tv/Alle%20Kan%c3%a4le/pvr.iptvsimple_1318614339.pvr]
2023-03-12 14:09:10.825 T:3722     INFO <general>: CVideoPlayer::OnExit()
2023-03-12 14:09:10.840 T:3112     INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2023-03-12 14:09:10.850 T:3112     INFO <general>: CVideoPlayer::CloseFile()
2023-03-12 14:09:10.883 T:3112     INFO <general>: VideoPlayer: waiting for threads to exit
2023-03-12 14:09:10.883 T:3112     INFO <general>: VideoPlayer: finished waiting

Can you please advise how to fix this issue?

The URL is not faulty, means I can open the stream with VLC player on PC w/o issues.

THX
Reply
#2
@cmonty14 

Don't post log snippets (especially directly into your post please) but supply a link to a FULL Debug Log reproducing the problem.
Always read the Wiki, FAQ and search the forum before posting.
Read/follow the forum rules.
Reply
#3
I have verified other streaming URL w/o authentication, and there’s no issue.
This confirms that addon IPTV Simple PVR client generally works, but it fails if URL includes authentication, means 
Code:
http://<path_to_provider>:8080/<user>/<password>/18392
Reply
#4
Here's the complete kodi.log
https://paste.kodi.tv/woposiwiwe.kodi
Reply
#5
(2023-03-12, 18:41)cmonty14 Wrote: Here's the complete kodi.log

2023-03-12 17:08:47.708 T:3025 INFO <general>: Disabled debug logging due to GUI setting. Level 0.
Not entirely complete... Please try again, now with debugging enabled.

BTW, http error 401 = Unauthorized response status code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.
So your credentials are incorrect.
Reply
#6
(2023-03-12, 18:46)Klojum Wrote:
(2023-03-12, 18:41)cmonty14 Wrote: Here's the complete kodi.log

2023-03-12 17:08:47.708 T:3025 INFO <general>: Disabled debug logging due to GUI setting. Level 0.
Not entirely complete... Please try again, now with debugging enabled.

BTW, http error 401 = Unauthorized response status code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.
So your credentials are incorrect.
The URL is not faulty, means I can open the stream with VLC player on PC w/o issues.
Reply
#7
(2023-03-12, 19:03)cmonty14 Wrote: The URL is not faulty, means I can open the stream with VLC player on PC w/o issues.
try changing the user agent in iptv simple settings, as far as i recall it's configurable and some services have started blocking Kodi specifically
Reply
#8
kodi.log with debugging enabled:
https://paste.kodi.tv/obasoteray.kodi
Reply
#9
(2023-03-12, 19:05)jepsizofye Wrote:
(2023-03-12, 19:03)cmonty14 Wrote: The URL is not faulty, means I can open the stream with VLC player on PC w/o issues.
try changing the user agent in iptv simple settings, as far as i recall it's configurable and some services have started blocking Kodi specifically
what exactly do you mean?
should I enter <user> and <password> in settings of IPTV Simple Client?

and if yes, why is this required if the URL includes this data?

and how does the service provider identify that request is coming from kodi if standard URL is used?
Reply
#10
ugh newbs... i didnt know i would have to explain what a user agent string is

https://developer.mozilla.org/en-US/docs...User-Agent
Quote:The User-Agent request header is a characteristic string that lets servers and network peers identify the application, operating system, vendor, and/or version of the requesting user agent.

Image
Reply
#11
Thanks for sharing this info.

In the meantime I have flashed my device (Vero 4k) with older image (build 11/2022) and started all over from scratch.
Et voila, everthing is working now again.

This means the root cause of this issue is not the *.m3u file and it's content, because this file has not changed.
And there's no restriction of streaming provider to block Kodi.

Instead the root cause must be related either to addon IPTV Simple Client and/or Kodi; I'm currently using IPTV Simple Client version 19.2.2 and Kodi version 19.4.
Reply
#12
must be? there's no way to know what "must" have been the issue since you reset everything

at least it's solved, good job
Reply
#13
Did you post the same question on GitHub? Please in future only use to the forum.
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply

Logout Mark Read Team Forum Stats Members Help
Opening stream fails with error 4010