Closed grunskis closed 7 years ago
Hey,
The problem is that its not able to reach the home assistant api. You can configure the endpoint in tools/env/base.ts
On May 11, 2017 2:26 PM, "Mārtiņš Grunskis" notifications@github.com wrote:
I'm running npm start in the terminal and get this output:
~/tmp/senic-app$ npm start
senic-device-controller@0.0.0 start /Users/martins/tmp/senic-app npm run serve.prod
senic-device-controller@0.0.0 serve.prod /Users/martins/tmp/senic-app gulp serve.prod --color --env-config prod --build-type prod
[10:52:10] Requiring external module ts-node/register [10:52:12] Loading tasks folder /Users/martins/tmp/senic-app/tools/tasks/seed [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.assets.dev [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.assets.prod [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.bundle.rxjs [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.bundles.app.aot [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.bundles.app.rollup.aot [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.bundles.app [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.bundles [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.docs [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.html_css [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.index.dev [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.index.prod [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.js.dev [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.js.e2e [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.js.prod.aot [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.js.prod.rollup.aot [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.js.prod [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.js.test [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/build.tools [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/check.tools [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/check.versions [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/clean.all [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/clean.coverage [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/clean.dev [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/clean.e2e [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/clean.prod [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/clean.tools [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/clear.files [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/compile.ahead.prod [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/copy.prod.rollup.aot [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/copy.prod [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/e2e [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/generate.manifest [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/karma.run [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/karma.run.with_coverage [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/karma.watch [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/minify.bundles [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/minify.index [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/noop [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/print.banner [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/serve.coverage [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/serve.coverage.watch [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/serve.docs [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/server.prod [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/server.start [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/start.deving [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/sw.manifest.static [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/transpile.bundles.rollup.aot [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/tslint [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/watch.dev [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/watch.e2e [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/watch.test [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/seed/webdriver [10:52:12] Loading tasks folder /Users/martins/tmp/senic-app/tools/tasks/project [10:52:12] Registering task ~/tmp/senic-app/tools/tasks/project/sample.task [10:52:12] Using gulpfile ~/tmp/senic-app/gulpfile.ts [10:52:12] Starting 'serve.prod'... [10:52:12] Starting 'build.prod'... [10:52:12] Starting 'initialize'... [10:52:12] Starting 'noop'... [10:52:12] Finished 'noop' after 38 ms [10:52:12] Finished 'initialize' after 40 ms [10:52:12] Starting 'check.tools'... [10:52:12] Tools not compiled, skipping rebuild [10:52:12] Finished 'check.tools' after 203 ms [10:52:12] Starting 'clean.prod'... [10:52:12] Deleted dist/prod [10:52:12] Deleted dist/tmp [10:52:12] Finished 'clean.prod' after 54 ms [10:52:12] Starting 'tslint'...
ERROR: /Users/martins/tmp/senic-app/src/client/app/home/home.component.spec.ts[60, 1]: trailing whitespace
[10:52:13] Finished 'tslint' after 1.08 s [10:52:13] Starting 'build.assets.prod'... [10:52:14] Finished 'build.assets.prod' after 106 ms [10:52:14] Starting 'build.html_css'... [10:52:14] Finished 'build.html_css' after 651 ms [10:52:14] Starting 'copy.prod'... [10:52:14] Finished 'copy.prod' after 73 ms [10:52:14] Starting 'build.js.prod'... [10:52:16] Finished 'build.js.prod' after 1.77 s [10:52:16] Starting 'build.bundles'... [10:52:16] Finished 'build.bundles' after 98 ms [10:52:16] Starting 'build.bundles.app'... [10:52:27] Finished 'build.bundles.app' after 11 s [10:52:27] Starting 'minify.bundles'... [10:52:39] Finished 'minify.bundles' after 11 s [10:52:39] Starting 'build.index.prod'... [10:52:39] gulp-inject 2 files into index.html. [10:52:39] gulp-inject 1 files into index.html. [10:52:39] Finished 'build.index.prod' after 103 ms [10:52:39] Starting 'sw.manifest.static'... [10:52:39] Finished 'sw.manifest.static' after 77 ms [10:52:39] Starting 'minify.index'... [10:52:39] Finished 'minify.index' after 168 ms [10:52:39] Finished 'build.prod' after 27 s [10:52:39] Starting 'server.prod'... [10:52:39] Finished 'server.prod' after 62 ms [10:52:39] Finished 'serve.prod' after 27 s
After a while a tab is opened automatically in my default browser that points to http://localhost:5555 but the page never finishes loading. After some time the loading times out with The connection has timed out error.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shilps1583/senic-app/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ARhE7fA9eWhB_2Py-8S34m8Ih9ZEScWbks5r4s1IgaJpZM4NXs5T .
If I'm checking correctly then Home Assistant and it's API is running:
~$ curl http://localhost:8123/api/
{"message": "API running."}
Here's my base.ts
:
import { EnvConfig } from './env-config.interface';
const BaseConfig: EnvConfig = {
// Sample API url
API: 'http://localhost:8123/'
};
export = BaseConfig;
It's actually the default since to me looks that all is good there. What do you think?
Works fine in the docker container!
I'm running
npm start
in the terminal and get this output:After a while a tab is opened automatically in my default browser that points to
http://localhost:5555
but the page never finishes loading. After some time the loading times out withThe connection has timed out
error.