Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Issue in webui with [email protected] #3726

Closed
ti0 opened this issue Jun 26, 2021 · 2 comments
Closed

Issue in webui with [email protected] #3726

ti0 opened this issue Jun 26, 2021 · 2 comments
Labels
effort/hours Estimated to take one or several hours good first issue Good issue for new contributors help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws) P2 Medium: Good to have, but can wait until someone steps up status/ready Ready to be worked

Comments

@ti0
Copy link

ti0 commented Jun 26, 2021

  • Version:

0.55.4

  • Platform:

Linux p1 5.4.0-1048-aws #50~18.04.1-Ubuntu SMP Tue May 4 17:40:02 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

  • Subsystem:

Severity:

Medium

Description:

When I run the jsipfs daemon, I then go to the webui endpoint which loads as expected. It shows "Connected to IPFS" for up to 10 seconds, and then says it is unable to connect to IPFS. I did some debugging and discovered the issue is in the /api/v0/stats/bw endpoint which is returning a 500 error after a few seconds of the server running:

The number 2365.640062119891 cannot be converted to a BigInt because it is not an integer

This results in the UI saying that IPFS is not connected, even though the daemon runs fine. The only thing that is not working is the webui. Marked as medium severity because it is not "essential" but would be great to have a working webui.

Steps to reproduce the error:

Just run the daemon, load the webui, and wait about 15 seconds.

Issue is currently seen on https://ipfs.rauction.house/webui
Note: I have already setup CORS correctly, that is confirmed because the webui shows "Connected to IPFS" for the first 10 seconds of the daemon running. On this site, just open dev tools > Network panel, and you will see a bunch of 500s from the endpoint listed above.

@ti0 ti0 added the need/triage Needs initial labeling and prioritization label Jun 26, 2021
@welcome

This comment has been minimized.

@lidel lidel added effort/hours Estimated to take one or several hours help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws) P2 Medium: Good to have, but can wait until someone steps up good first issue Good issue for new contributors labels Jul 2, 2021
@lidel
Copy link
Member

lidel commented Jul 2, 2021

Thanks! So the bug here is not really in ipfs-webui, but js-ipfs:

/api/v0/stats/bw sometimes returns error The number 2365.640062119891 cannot be converted to a BigInt because it is not an integer.

This is ready to work on, if someone has time to look into it.

@lidel lidel added status/ready Ready to be worked and removed need/triage Needs initial labeling and prioritization labels Jul 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
effort/hours Estimated to take one or several hours good first issue Good issue for new contributors help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws) P2 Medium: Good to have, but can wait until someone steps up status/ready Ready to be worked
Projects
None yet
Development

No branches or pull requests

2 participants