NerdbyteIO / FOSSBilling-CyberPanel

A Server Manager developed for FOSSBilling to allow API calls to the CyberPanel webhosting panel.
20 stars 2 forks source link

Unable to Connect #1

Closed tobsowo closed 6 months ago

tobsowo commented 6 months ago

I noticed there is no '/' between the hostname and API probably reason it did not connect.

Could not resolve host: host.server.comapi for "https://host.server.comapi/verifyConn". (9999)

tobsowo commented 6 months ago

I also noticed that this icon do not add the port to the URL instead just the host name.

image

jsonkenyon commented 6 months ago

Tobsowo,

Thanks for opening this request. Sorry to learn that this isn't logging in for you. That is truly odd that it isn't adding the port or the forward slash for you.

What PHP, OS are you running? Can you also confirm that your connection settings look like the following?

connection

tobsowo commented 6 months ago

I'm using the Docker installation

jsonkenyon commented 6 months ago

Ah, okay so that makes a bit more sense then. So in your case with you running it in docker I assume that there's no port? If this is correct I have a feeling i know what the issue is.

tobsowo commented 6 months ago

From your screenshot I only added the port 8090 and it seems to be fine now, left it before because it was the default based on the form field note.

jsonkenyon commented 6 months ago

@tobsowo Indeed, you are correct. It has to deal with this line of code,

$port = !empty($this->_config['port']) ? ':'.$this->_config['port'].'/' : '';

So if the port is blank it doesn't add anything after it. I've updated this and pushing the fix

$port = !empty($this->_config['port']) ? ':'.$this->_config['port'].'/' : ':8090/';

Thanks for reporting this!

tobsowo commented 6 months ago

@jsonkenyon you are welcome.