Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

UI doesn't run when built into its own container with docker build #175

Open
CKozanecki opened this issue Dec 21, 2020 · 0 comments
Open

Comments

@CKozanecki
Copy link

I am trying to run the UI in a container hitting a different container for the API. I am getting connectivity between the two, but the UI doesn't seem to be loading fully, nor understanding the responses. It works just fine if I run ng serve locally. I get a number of these parse errors on first load, and the dashboard count indicator doesn't show up. In addition it wont allow login, and any attempt at creating a user causes "user already exists" error.

SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymo

SyntaxError: Unexpected token < in JSON at position 0↵ at JSON.parse (<

Http failure during parsing for http://localhost:5504/api/authenticationProv

The response from register user is the following body:
`<!doctype html>

<title>Hygieia</title> <style>@-webkit-keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-moz-keyframes spin{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(360deg)}}@Keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.spinner{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1003;background: #000000;overflow:hidden} .spinner div:first-child{display:block;position:relative;left:50%;top:50%;width:150px;height:150px;margin:-75px 0 0 -75px;border-radius:50%;box-shadow:0 3px 3px 0 rgba(255,56,106,1);transform:translate3d(0,0,0);animation:spin 2s linear infinite} .spinner div:first-child:after,.spinner div:first-child:before{content:'';position:absolute;border-radius:50%} .spinner div:first-child:before{top:5px;left:5px;right:5px;bottom:5px;box-shadow:0 3px 3px 0 rgb(255, 228, 32);-webkit-animation:spin 3s linear infinite;animation:spin 3s linear infinite} .spinner div:first-child:after{top:15px;left:15px;right:15px;bottom:15px;box-shadow:0 3px 3px 0 rgba(61, 175, 255,1);animation:spin 1.5s linear infinite}</style>
<script src="runtime.js"></script><script src="polyfills-es5.js" nomodule></script><script src="polyfills.js"></script><script src="styles.js"></script><script src="vendor.js"></script><script src="main.js"></script> `
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant