Thanks to visit codestin.com
Credit goes to github.com

Skip to content

XHGui launches to invalid URL when using non-standard ports #7181

@peterkraume

Description

@peterkraume

Preliminary checklist

Output of ddev debug test

No response

Expected Behavior

ddev xhgui will open the webinterface in the browser

Actual Behavior

There is an error:

➜  acme-project git:(main) ddev xhgui
 Container ddev-acme-project-xhgui  Created 
 Container ddev-acme-project-xhgui  Started 
Started optional compose profiles 'xhgui' 
Enabled XHProf for XHGui. 
failed to launch xhgui: output='Unable to interpret 'https://acme-project.ddev.site:33001:8142' as a path or URL
Failed to run launch https://acme-project.ddev.site:33001:8142; error=exit status 1
', err=exit status 1 

Steps To Reproduce

  1. ddev config global --router-http-port=8080 --router-https-port=8443
  2. start a project
  3. run ddev xhgui

The problem occurs in both cases:

  1. when the router is configured for different ports than 80/443
  2. when DDEV automatically detects a port conflict and assigns a random port number as in my example

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions