mirror of
https://github.com/imputnet/cobalt.git
synced 2026-11-11 16:32:57 -06:00
[GH-ISSUE #462] Cannot download any media without explicitly provided APP_PORT env variable
#35328
Reference in New Issue
Block a user
Originally created by @jsopn on GitHub (Apr 28, 2024).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/462
bug description
Recent commit that added internal streams feature, didn't specified
process.env.APP_PORTfallback to9000which broke instances that were hosting cobalt without explicitly providedAPP_PORTenv variable.As shown in documentation this variable should fallback to
9000, and there's also noAPI_PORTvariable specified in file with docker-compose example.there's no fallback to
9000and as i checked theprocess.envin this function's scope, there's noprocess.envoverrides too.https://github.com/wukko/cobalt/blob/78288b8faca5d0896de8037f71e535f5c15a6482/src/modules/stream/manage.js#L88
due this mistake function fails with
TypeError [ERR_INVALID_URL]: Invalid URLon this linereproduction steps
something went wrong and i couldn't verify this stream. go back and try againwithout any logs in docker container;platform
66e58d2