AppiumTestDistribution / appium-device-farm

This is an Appium 2.0 plugin designed to manage and create driver sessions on available devices.
https://devicefarm.org
Other
341 stars 104 forks source link

Unable to start session through HTTPS #1454

Closed mrvnklm closed 21 hours ago

mrvnklm commented 5 days ago

I set up a domain using a tunnel and certificates but /device-farm/api/dashboard/appiumSession always returns a 400 error. If i try the same from my local network it works.

I am using the current version of appium and device farm and have all doctor checks passed, the interface I bind to is 0.0.0.0 but I also tried binding to the domain.

erdncyz commented 5 days ago

Hi @mrvnklm,

Can you share your log via gist please ?

mrvnklm commented 5 days ago

Sure @erdncyz ! https://gist.github.com/mrvnklm/d6770ecdbc0932bff540f67e1810a4c0

mrvnklm commented 3 days ago

I got it working now by using --plugin-device-farm-bind-host-or-ip=myhost.com and setting port: 80 in order to the server not require any port behind my host.

appiumSession endpoint gets a param which provides the hostname and if this misses the port it seems to fail.

Is this behaviour as expected?

saikrishna321 commented 3 days ago

@mrvnklm can you share the logs with appiumSession is failed

mrvnklm commented 2 days ago

@saikrishna321 see line 104-106 in gist