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

Error calling IDojoApi #185

Closed
pth65 opened this issue Sep 30, 2024 · 3 comments
Closed

Error calling IDojoApi #185

pth65 opened this issue Sep 30, 2024 · 3 comments

Comments

@pth65
Copy link

pth65 commented Sep 30, 2024

Hi,
I would like to learn SAFE stack using this nice project but I can't run it properly.
When I start it, I can see the main page and select a postcode but the search fails with the following error:
(On Windows 11, net8.0)
I tried another SAFE project I found on GitHub but it also failed when calling the server API (another API of course but same error).
Thank you for any help.

image

@jwthomson
Copy link
Member

It looks like there may be some kind of error in the server startup. See the message "Unable to bind to http://localhost:5000 ..."

Then when Vite tries to proxy it fails because it is not getting the response it expects from the server.

A quick search for the error message turned up this StackOverflow question: https://stackoverflow.com/questions/10461257/ which has some ideas, including possibly restarting your Host Network Service, or that the port is already in use.

Can you try the suggestions from StackOverflow please, and see if any of them fix it?

@pth65
Copy link
Author

pth65 commented Oct 7, 2024

Thank you very much, it fixed my problem (I mean using another port or closing the service using this port).
I didn't see this "Unable to bind to ..." error as it was displayed in blue.
May be it would be better to display it in red or at least in a different color (warning color) ?

@jwthomson
Copy link
Member

I've added an issue to the SAFE template repo, so hopefully this will be a better experience in the future 😄

SAFE-Stack/SAFE-template#633

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

2 participants