Skip to content

There is no timeout on retrieving metadata JSON and commands like validator:rpc-urls hang indefinitely #739

@aaronmboyd

Description

@aaronmboyd

Package

@celo/celocli

Have you ensured that all of these are up to date?

  • the package you are using

What version of the package are you on?

8.0.1

What command or function is the bug in?

celocli validator:rpc-urls

Operating System

Linux

Describe the bug

When a self-hosted metadata URL like https://celo-rpc.hashkey.cloud/metadata.json (currently) is non-responsive or down, the current fetch mechanism does not have a timeout and simply hangs for minutes. This causes the rpc commands to get the rpc list to effectively hang forever. It used to take a couple of seconds but now with a single down JSON host the entire command just spins forever.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions