microsoft / showwhy

MIT License
200 stars 28 forks source link

Causal Discovery & Exposure Analysis not working on docker #399

Open vishal-d11 opened 1 year ago

vishal-d11 commented 1 year ago

Tried setting up the docker to explore the Showwhy, but facing an issue while exploring and trying out Causal Discovery and Exposure Analysis using the nhefs example dataset already provided.

Exposure Analysis: It fails at the last step of Estimating effects where under Estimate causal effects : error -> Undefined error, please try again.

Causal Discovery : When clicked on discover it fails with error "Failed to fetch"

vishal-d11 commented 1 year ago

Update : Fixed the error by changing package.json https://github.com/microsoft/showwhy/blob/9c7c3e3549ceed59a6fb6fc4409729236714f124/package.json

`   "start_frontend": "cross-env EXPOSURE_API_URL=http://localhost:8081/api/exposure DISCOVER_API_URL=http://localhost:8081/api/discover EVENTS_API_URL=http://localhost:8081/api/events turbo run start --parallel",`

    Replace localhost to instance URL
priamai commented 10 months ago

Nice workaround @vishal-d11, I think a proper fix would involve dynamically creating those urls from the proxy frontend, but I am not a node expert.

UbaidG commented 1 month ago

Update : Fixed the error by changing package.json https://github.com/microsoft/showwhy/blob/9c7c3e3549ceed59a6fb6fc4409729236714f124/package.json

` "start_frontend": "cross-env EXPOSURE_API_URL=http://localhost:8081/api/exposure DISCOVER_API_URL=http://localhost:8081/api/discover EVENTS_API_URL=http://localhost:8081/api/events turbo run start --parallel",`

  Replace localhost to instance URL

What is instance URL, is it my IP?

vishal-d11 commented 1 month ago

Update : Fixed the error by changing package.json https://github.com/microsoft/showwhy/blob/9c7c3e3549ceed59a6fb6fc4409729236714f124/package.json

`   "start_frontend": "cross-env EXPOSURE_API_URL=http://localhost:8081/api/exposure DISCOVER_API_URL=http://localhost:8081/api/discover EVENTS_API_URL=http://localhost:8081/api/events turbo run start --parallel",`

    Replace localhost to instance URL

What is instance URL, is it my IP?

yes @UbaidG