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

Why my endpoint is not reachable after initiating it? #62

Open
tiagoterron opened this issue Nov 3, 2024 · 0 comments
Open

Why my endpoint is not reachable after initiating it? #62

tiagoterron opened this issue Nov 3, 2024 · 0 comments

Comments

@tiagoterron
Copy link

Hey folks.

I have been trying to setup my own api and everything seems to be running fine in the logs but somehow I am not able to access it the endpoint.

Dockerfile:
`FROM --platform=linux/amd64 debian:bookworm-slim

RUN apt-get update && apt-get install unzip openssl ca-certificates -y
COPY ./jupiter-swap-api-x86_64-unknown-linux-gnu.zip ./jupiter-swap-api-x86_64-unknown-linux-gnu.zip
RUN unzip jupiter-swap-api-x86_64-unknown-linux-gnu.zip
RUN rm jupiter-swap-api-x86_64-unknown-linux-gnu.zip
RUN chmod +x jupiter-swap-api

ENV RUST_LOG=info

CMD ["./jupiter-swap-api", "--rpc-url", "https://solana-mainnet.g.alchemy.com/v2/api-key"]`

I am running using the command: docker run -d --name jupiter-swap-api --memory="512m" -p 8080:8080 jupiter-swap-api

Am I doing something wrong? Because it looks like the logs are showing:

2024-11-03T22:22:00.319846Z INFO jupiter_swap_api: Loading Jupiter router...
2024-11-03T22:22:00.319878Z WARN jupiter_swap_api: Running in poll mode, this mode is not recommended
2024-11-03T22:22:00.319891Z INFO jupiter_swap_api: Using market cache kind: Europa { url: "https://europa2.jup.ag" }
2024-11-03T22:22:00.800243Z INFO jupiter_core::europa_client: Fetching markets from europa server...
2024-11-03T22:22:19.193991Z INFO jupiter_core::europa_client: Fetched 489793 markets from europa server in 18.393658701s

Any help would be really appreciated. Thank you

@tiagoterron tiagoterron changed the title Why my container is not reachable after initiating it? Why my endpoint is not reachable after initiating it? Nov 3, 2024
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

1 participant