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

Webinterface Error: Failed to lookup view "status" #238

Closed
sekuba opened this issue Nov 13, 2023 · 3 comments · Fixed by #239
Closed

Webinterface Error: Failed to lookup view "status" #238

sekuba opened this issue Nov 13, 2023 · 3 comments · Fixed by #239

Comments

@sekuba
Copy link

sekuba commented Nov 13, 2023

Hi. I happily used your nodejs package until i tried to change to a docker container today.
When trying to open the webinterface i get

Error: Failed to lookup view "status" in views directory "/views"
    at Function.render (/app/node_modules/express/lib/application.js:597:17)
    at ServerResponse.render (/app/node_modules/express/lib/response.js:1039:7)
    at /app/routes/status.js:11:9
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at next (/app/node_modules/express/lib/router/route.js:144:13)
    at Route.dispatch (/app/node_modules/express/lib/router/route.js:114:3)
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at /app/node_modules/express/lib/router/index.js:284:15
    at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)
    at next (/app/node_modules/express/lib/router/index.js:280:10)

The log shows the same:

IPTV-ReStream  | 2023-11-13T12:59:54.711Z iptv-restream:config Config loaded: HOST=127.0.0.1, PORT=3000, MCAST_IF=0.0.0.0, XSPF_PROTOCOL=https, XSPF_HOST=my.server.com:8080, XSPF_PATH_PREFIX=/iptv, ALLOW_UNKNOWN=false
IPTV-ReStream  | 2023-11-13T12:59:54.724Z iptv-restream:server Listening on port 127.0.0.1:3000...
IPTV-ReStream  | 2023-11-13T12:59:54.725Z iptv-restream:station Stations loaded
IPTV-ReStream  | 127.0.0.1 - - [13/Nov/2023:12:59:57 +0000] "GET / HTTP/1.1" 302 56 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0"
IPTV-ReStream  | 127.0.0.1 - - [13/Nov/2023:12:59:57 +0000] "GET /status HTTP/1.1" 500 1075 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0"
IPTV-ReStream  | Error: Failed to lookup view "status" in views directory "/views"
IPTV-ReStream  |     at Function.render (/app/node_modules/express/lib/application.js:597:17)
IPTV-ReStream  |     at ServerResponse.render (/app/node_modules/express/lib/response.js:1039:7)
IPTV-ReStream  |     at /app/routes/status.js:11:9
IPTV-ReStream  |     at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
IPTV-ReStream  |     at next (/app/node_modules/express/lib/router/route.js:144:13)
IPTV-ReStream  |     at Route.dispatch (/app/node_modules/express/lib/router/route.js:114:3)
IPTV-ReStream  |     at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
IPTV-ReStream  |     at /app/node_modules/express/lib/router/index.js:284:15
IPTV-ReStream  |     at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)
IPTV-ReStream  |     at next (/app/node_modules/express/lib/router/index.js:280:10)

I reproduced this on Ubuntu and WSL(Ubuntu) separately by cloning your repo and runnig the provided docker-compose.example.yml

@n-thumann
Copy link
Owner

n-thumann commented Nov 13, 2023

Whoops, I must have missed testing the Docker image 😬
Thanks for your report & fixed via #239

Will create a new release soon :)

@n-thumann
Copy link
Owner

Release https://github.com/n-thumann/IPTV-ReStream/releases/tag/v1.5.0 contains the corresponding fix ✌🏻

@sekuba
Copy link
Author

sekuba commented Nov 14, 2023

works, thank you :)

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

Successfully merging a pull request may close this issue.

2 participants