Uncaught (in promise) TypeError: e.response is undefined #958
-
Greetings! First deploy of dependency track by docker-compose according documentation https://docs.dependencytrack.org/getting-started/deploy-docker/ Trying to login as default admin user, but getting error:
Could you help me, what's problem? |
Beta Was this translation helpful? Give feedback.
Answered by
niklasweimann
Jun 15, 2024
Replies: 1 comment 2 replies
-
@medoedoff Did you find a solution for this problem? 🤔 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay... After some testing it turned out that this error occurs when API_BASE_URL is not set properly.
For others who come to this issue:
I am using an nginx proxy which redirects all traffic from example.com/api/ to dtrack-server:8080/api/ and example.com/ to dtrack-frontend:8080 where dtrack-server and dtrack-frontend are docker containers within a network. For the frontend to work properly you need to set API_BASE_URL to https://example.com/. And you will need to wait until the dtrack-server is fully started otherwise you will also get the error described above.