Le 11/02/2022 à 08:53, Mark Jeghers a écrit :
Any ideas that can help?  Why is http.get() throwing this error?

I'm trying to run LS 1.4.4 in the Docker container with the image made by "pltnk/liquidsoap".   It is feeding into Icecast (also in a docker container) on port 8000 (Icecast is up and running and awaiting data). My custom request function is attempting to call my "playgen" playlist generator (which is also running fine on port 3000.But in the logs, these errors are happening endlessly as LS tries to get the next song to play...|2022/02/11 07:33:57 [lang:3] Next song Error while processing request: Http.Unix_transport.Socket|

Hi,

In the end, using curl isn't so bad lol, given how fucked up http.get() evolved, and how it might still be broken… try ... http.get("http://127.0.0.1:3000/xxx";) …

And damn Romain lol… it's probably still broken in the main branch, not considering PF_INET6 and explicitly using PF_INET… Might need some cleanup in tools/http.ml like what jca did in ocaml-cry…

Networking is not that easy :P

Regards,
Gilou


|2022/02/11 07:33:57 [request:3] Unknown protocol "Error while processing request" in URI "Error while processing request: Http.Unix_transport.Socket"!| |2022/02/11 07:33:57 [lang:3] Next song Error while processing request: Http.Unix_transport.Socket| |2022/02/11 07:33:57 [request:3] Unknown protocol "Error while processing request" in URI "Error while processing request: Http.Unix_transport.Socket"!| |2022/02/11 07:33:57 [lang:3] Next song Error while processing request: Http.Unix_transport.Socket| |2022/02/11 07:33:57 [lang:3] Next song Error while processing request: Http.Unix_transport.Socket| |2022/02/11 07:33:57 [request:3] Unknown protocol "Error while processing request" in URI "Error while processing request: Http.Unix_transport.Socket"!| |2022/02/11 07:33:57 [request:3] Unknown protocol "Error while processing request" in URI "Error while processing request: Http.Unix_transport.Socket"!|Here is the Docker command to start LS:|*docker run --name liquidsoap -d --volume /etc/liquidsoap/radio.liq:/etc/liquidsoap/script.liq:ro*| |*--volume /usr2:/music:ro --volume /usr/bin/curl:/usr/bin/curl:ro pltnk/liquidsoap:1.4.4*|Here is an excerpt of the script showing how I start all my streams...|def mod_request_function() =| |||*let (_*||*/,_/*||*,result) = http.get('*||*http://localhost:3000/api/v1/playlists/mod/nextsong?format=text <http://localhost:3000/api/v1/playlists/mod/nextsong?format=text>*||*')*|
|log("Next song "^result)|
|request.create(result)|
|end||plm = request.dynamic(mod_request_function)||output.icecast(|
|%mp3(bitrate=96, id3v2=true),|
|host="localhost", port=8000, password="yrut9bUh",|
|mount="/mod", genre="Electronic",|
|description="Lots of cool electronic music",|
|url="||http://www.t4p.com:8000/mod <http://www.t4p.com:8000/mod>||",|
|mksafe(plm))|I'm stuck guys.  This is blocking me from getting off of 1.3 and moving up to 1.4 (and then 2.x after that).  Any ideas what is wrong?


_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

--
Gilles Pietri
29 avenue de la Libération, F-44400 Rezé
0634745199



_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to