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

Example failing #44

Open
technomage opened this issue Nov 27, 2023 · 4 comments
Open

Example failing #44

technomage opened this issue Nov 27, 2023 · 4 comments

Comments

@technomage
Copy link

When attempting to run the example from docker on a Mac:

docker run --name restate_dev --rm -p 8080:8080 -p 9070:9070 -p 9071:9071 ghcr.io/restatedev/restate-dist:latest

results in:

2023-11-27T19:18:18.342325Z WARN restate_service_protocol::discovery
Error when discovering service endpoint at address 'http://host.docker.internal:9080/'. Retrying in 20 seconds
error: [META0003] retry limit exhausted. Last client error: error trying to connect: tcp connect error: Connection refused (os error 111). For more details, look at the docs with https://docs.restate.dev/references/errors#META0003
restate.error.code: META0003
META0003

And the second command:

curl -X POST http://localhost:9070/endpoints -H 'content-type: application/json' -d '{"uri": "http://host.docker.internal:9080"}'

results in:

{"message":"[META0003] retry limit exhausted. Last client error: error trying to connect: tcp connect error: Connection refused (os error 111). For more details, look at the docs with https://docs.restate.dev/references/errors#META0003","restate_code":"META0003"}%

@jackkleeman
Copy link
Contributor

Hey @technomage are you actually running one of the examples in the repo on your host machine? The instructions in the top level readme just explain how to start a Restate service, but you also need to run an actual application which you will tell Restate to discover and invoke. We'll update the readme to be a little bit clearer about that!
For example, you could run https:/restatedev/examples/tree/main/typescript/payment-api on your host machine, and then the above command should work

@oferh
Copy link

oferh commented Dec 13, 2023

When trying to follow instructions I'm getting the following:

❯ wget https:/restatedev/examples/releases/latest/download/typescript-payment-api.zip && unzip typescript-pa
yment-api.zip -d typescript-payment-api && rm typescript-payment-api.zip
--2023-12-13 14:30:05--  https:/restatedev/examples/releases/latest/download/typescript-payment-api.zip
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https:/restatedev/examples/releases/download/v0.5.1/typescript-payment-api.zip [following]
--2023-12-13 14:30:06--  https:/restatedev/examples/releases/download/v0.5.1/typescript-payment-api.zip
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 404 Not Found
2023-12-13 14:30:06 ERROR 404: Not Found.

@slinkydeveloper
Copy link
Contributor

Hi @oferh sorry for the confusion, we have recently updated the readme with the new instructions to retrieve the examples but didn't released those yet. They should be ready today, will post here once they're ready. In the meantime, you can clone the repo.

@slinkydeveloper
Copy link
Contributor

Hey @oferh you should now be able to download the zips

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

4 participants