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

webui redirects to "https://undefined:9090" #2697

Closed
ggarri opened this issue Dec 31, 2019 · 1 comment
Closed

webui redirects to "https://undefined:9090" #2697

ggarri opened this issue Dec 31, 2019 · 1 comment

Comments

@ggarri
Copy link
Contributor

ggarri commented Dec 31, 2019

  • Version:
    js-ipfs version: 0.40.0-
    Repo version: 7
    System version: x64/linux
    Node.js version: v11.15.0
  • Platform: Linux 4.15.0-72-generic jsipfs block http-api and cli #81-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
  • Subsystem: webui

Type: Bug

Severity: Low

Description:

After running ipfs daemon when user try to access to default webui url(http://127.0.0.1:5002/webui) it is redirecting to http://undefined:9090//ipfs/Qmexhq2sBHnXQbvyP2GfUdbnY7HCagH2Mw5vUNSBn2nxip.

Steps to reproduce the error:

  • Run js-ipfs daemon
$> jsipfs daemon
Initializing IPFS daemon...
js-ipfs version: 0.40.0
System version: x64/linux
Node.js version: 11.15.0
....
API listening on /ip4/127.0.0.1/tcp/5002/http
Gateway (read only) listening on /ip4/127.0.0.1/tcp/9090/http
Web UI available at http://127.0.0.1:5002/webui
  • Go to your favorite browser an open a tab with http://127.0.0.1:5002/webui
  • You are redirected to http://undefined:9090//ipfs/Qmexhq2sBHnXQbvyP2GfUdbnY7HCagH2Mw5vUNSBn2nxip

Expected result

  • Run js-ipfs daemon
  • Go to your favorite browser an open a tab with http://127.0.0.1:5002/webui
  • You are redirected to http://127.0.0.1:9090//ipfs/Qmexhq2sBHnXQbvyP2GfUdbnY7HCagH2Mw5vUNSBn2nxip
ggarri added a commit to ggarri/js-ipfs that referenced this issue Jan 1, 2020
Fix issue of invalid redirect to url 'http://undefined:9090/ipfs...'
when webui URL is loaded

License: MIT
Signed-off-by: ggarri <gabriel@lightstreams.io>
alanshaw pushed a commit that referenced this issue Jan 24, 2020
Fix issue of invalid redirect to url 'http://undefined:9090/ipfs...' when webui URL is loaded

License: MIT
Signed-off-by: ggarri <gabriel@lightstreams.io>
@alanshaw
Copy link
Member

alanshaw commented Feb 3, 2020

resolved by #2698

@alanshaw alanshaw closed this as completed Feb 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants