fescobar / allure-docker-service-ui

Allure Docker Service UI provides a friendly user interface for frankescobar/allure-docker-service API container.
Apache License 2.0
81 stars 40 forks source link

Getting "network error" when trying to access the UI #45

Closed codewithabhi17 closed 1 month ago

codewithabhi17 commented 1 month ago

When i try to access the Ui i see the below error.

When i look at the browser network tab i see that config is look up is not going to the server rather it is going to default location as shown below.

actual:

Request URL: http://allure-docker-service/config

expected:

Request URL: https://xxx.com/config

"Network Error" Check if you have access to [http:///allure-docker-service](http://allure-docker-service/) Or pull the latest "frankescobar/allure-docker-service" API image (remove your current latest version) {"message":"Network Error","name":"Error","stack":"Error: Network Error\n at e.exports (https://sre-dev.allure.eng.aws.grail.com/static/js/2.fc83d11e.chunk.js:2:70398)\n at p.onerror (https://sre-dev.allure.eng.aws.grail.com/static/js/2.fc83d11e.chunk.js:2:69367)","config":{"url":"/config","method":"get","headers":{"Accept":"application/json, text/plain, */*"},"baseURL":"http:///allure-docker-service","transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"withCredentials":true}}

UI api map:

apiVersion: v1 kind: ConfigMap metadata: name: sre-config-map namespace: sre data: CHECK_RESULTS_EVERY_SECONDS: NONE KEEP_HISTORY: "1" URL_PREFIX: "/allure-api" TLS: "1" SECURITY_ENABLED: "1" MAKE_VIEWER_ENDPOINTS_PUBLIC: "0"

api ui map:

apiVersion: v1 kind: ConfigMap metadata: name: sre-config-ui-map namespace: sre data: ALLURE_DOCKER_PUBLIC_API_URL: "https://{{.Values.projectName}}-{{.Values.deployMode}}.{{.Values.namespace}}.eng.aws.grail.com" ALLURE_DOCKER_PUBLIC_API_URL_PREFIX: "/allure-api" URL_PREFIX: "/allure-ui"