Skip to content

ipfs daemon --offline returns 400 for /api/v0/stats/bw #853

Open
@olizilla

Description

@olizilla

If your run

ipfs daemon --offline 

then the API responds to requests for /api/v0/stats/bw with a 400 status code and the body:

{"Message":"this command must be run in online mode. Try running 'ipfs daemon' first","Code":1,"Type":"error"}

as we're using the bandwidth stats to determine if the connection is working, the Web UI asserts that the connection to IPFS has failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: Good to have, but can wait until someone steps upexp/intermediatePrior experience is likely helpfulkind/bugA bug in existing code (including security flaws)

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions