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

Can't connect, Error 0, Can't connect, timeout, error 28 #863

Open
ganzgustav22 opened this issue May 7, 2024 · 7 comments
Open

Can't connect, Error 0, Can't connect, timeout, error 28 #863

ganzgustav22 opened this issue May 7, 2024 · 7 comments

Comments

@ganzgustav22
Copy link

ganzgustav22 commented May 7, 2024

Why is that?

Whenever I get those messages in Kodi.log, I can login via ssh, issue "wget " and it works just fine, no issue with the server.

Same thing on another device with Televizo IPTV player. Works just fine, never have any issues connecting.

@ganzgustav22
Copy link
Author

`2024-05-07 16:47:07.981 T:1484 error : CCurlFile::CReadState::FillBuffer - (0x7f18002200) Failed: Timeout was reached(28)
2024-05-07 16:47:07.982 T:1484 error : CCurlFile::Open - http://url-blah Failed with code 0:

2024-05-07 16:47:07.983 T:1484 error : AddOnLog: pvr.iptvsimple: pvr.iptvsimple - Process - unable to connect to: http://url-blah
2024-05-07 16:47:07.983 T:1484 info : AddOnLog: pvr.iptvsimple: pvr.iptvsimple - ConnectionLost Could not validiate M3U after startup, but ignoring as startup is all we care about.
`

@ganzgustav22
Copy link
Author

`2024-05-07 16:58:19.966 T:937 error : CCurlFile::CReadState::FillBuffer - (0x7f040f32e0) Failed: Timeout was reached(28)
2024-05-07 16:58:19.966 T:937 error : CCurlFile::Open - http://url-bla Failed with code 0:
2024-05-07 16:58:19.966 T:937 error : AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList - Unable to load playlist cache file 'http://url-blah': file is missing or empty.
2024-05-07 16:58:19.966 T:937 info : AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadEPG - EPG file path is not configured. EPG not loaded.
2024-05-07 16:58:19.969 T:845 error : Unknown setting type of 'ffmpegdirectSettings' for IPTV Simple Client
2024-05-07 16:58:49.202 T:937 error : CCurlFile::CReadState::FillBuffer - (0x7f040f32e0) Failed: Transferred a partial file(18)
2024-05-07 16:58:49.202 T:937 warning : CCurlFile::CReadState::FillBuffer - (0x7f040f32e0) Reconnect, (re)try 1
2024-05-07 16:59:00.222 T:937 error : CCurlFile::CReadState::FillBuffer - (0x7f040f32e0) Failed: Requested range was not delivered by the server(33)

`
Nope, it's not missing, it's not empty, also not partial. Again, wget on the same host (Pi4) works every single time, again, two other android apps on the same local network also work fine every single time.

@phunkyfish
Copy link
Member

It’s possible your provider is blocking kodi. Have you tried entering a different user agent in the add-on settings?

@ganzgustav22
Copy link
Author

No it's not my provider, I've tested with different ISPs. Also I'm sure my provider that I use at home doesn't do any Layer-7 shenanigans like looking into http headers.

I think it's that the timeout set in Kodis CCurlFile handler is too short, possibly 10 seconds. Since that playlist is quite large and it seems to be generated on-the-fly by some php code on the iptv server, it takes more than 10 seconds until data starts flowing which makes it time out.

I've opened a bug here now because I believe that timeout is set in Kodi and it's not actually an issue with the iptv simple plugin itself.

xbmc/xbmc#25209

@phunkyfish
Copy link
Member

phunkyfish commented May 14, 2024

And if you copy the required files locally and load them from there does it work?

I think the addon API allows for settings a read timeout. So it’s possible we need to change something. There was some work done on file read lower level code for Omega, but the fix should likely be in the addon and not kodi.

@phunkyfish
Copy link
Member

Let me create a quick PR and we’ll test if changing addon options works.

@phunkyfish
Copy link
Member

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