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

ux: forc index deploy should not panic when unable to connect to fuel-indexer #1406

Closed
lostman opened this issue Oct 10, 2023 · 0 comments · Fixed by #1408
Closed

ux: forc index deploy should not panic when unable to connect to fuel-indexer #1406

lostman opened this issue Oct 10, 2023 · 0 comments · Fixed by #1408
Assignees

Comments

@lostman
Copy link
Contributor

lostman commented Oct 10, 2023

Description

Currently, forc index deploy panics when it is unable to connect to fuel-indexer:

▹▹▹▹▸ ⏰ Building indexer...
Finished release [optimized] target(s) in 0.19s
▪▪▪▪▪ ✅ Build succeeded.
Deploying indexer...
▸▹▹▹▹ 🚀 Deploying...
thread 'main' panicked at /Users/mw/Data/Code/Work/FuelLabs/fuel-indexer/plugins/forc-index/src/ops/forc_index_deploy.rs:133:10:
Failed to deploy indexer.: reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Ipv4(127.0.0.1)), port: Some(29987), path: "/api/index/mw/some_indexer_2", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })) }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: abort      forc-index deploy

We should print something more user friendly.

@lostman lostman self-assigned this Oct 10, 2023
@ra0x3 ra0x3 linked a pull request Oct 11, 2023 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant