Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Causal Discovery & Exposure Analysis not working on docker #399

Open
vishal-d11 opened this issue Apr 13, 2023 · 4 comments
Open

Causal Discovery & Exposure Analysis not working on docker #399

vishal-d11 opened this issue Apr 13, 2023 · 4 comments

Comments

@vishal-d11
Copy link

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
Copy link
Author

vishal-d11 commented Apr 17, 2023

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
Copy link

priamai commented Aug 25, 2023

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
Copy link

UbaidG commented Jun 13, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants