Giter Site home page Giter Site logo

Comments (6)

monofox avatar monofox commented on September 11, 2024

@gjelsas do you have an example m3u file with which the issue occured?

from radiorec.

gjelsas avatar gjelsas commented on September 11, 2024

It occured even on the urls provided by the sample configuration!

from radiorec.

monofox avatar monofox commented on September 11, 2024

Hi @gjelsas , thanks for your feedback and a bit more of informations.

Hmm, strange, maybe mine where resolved differently? I don't see a reason why that would be the case... I'm currently using radiorec on Ubuntu 20.04...
When debugging radiorec, the streamurl variable was empty and therefore throwing the exception described in the title if the corresponding issue...
Could this be a dependency issue for me?

Tested now with an upgraded version of python using python 3.8.6 and urllib3 1.25.11. There i'm able to reproduce your initial issue. For me it seems, the issue is already directly within with pool.request('GET',streamurl) as remotefile:.

And here, the issue is described: urllib3/urllib3#1660

Need to switch to use contextlib. On the other side, we shall consider to rework that part in order to handle some issues properly (e.g. 404 errors, timeouts, etc.) by not using with, but working with the result, checking status, catching MaxRetryError. Proper assigning and declaration of tmpstr and checking if we could correctly interpret file.

May you get it a try?

from radiorec.

gjelsas avatar gjelsas commented on September 11, 2024

#16 (comment)
I hope this fix does it for this problem. If you could check this pr?
Greetings

from radiorec.

gjelsas avatar gjelsas commented on September 11, 2024

@monofox @beedaddy Is that now fixing the issue? Maybe you could integrate my pull request then...

from radiorec.

beedaddy avatar beedaddy commented on September 11, 2024

Thank's, @gjelsas! PR is merged. If there are still problems, we can re-open the issue.

from radiorec.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.