Unable to start session from appium inspector

I have updated my Appium to v1.22.0, also installed new appium inspector.
Added all capabilities and path. I am getting error message when I try to start the session in Appium inspector:
"Could not connect to server; are you sure it’s running? If you are using the browser version, also ensure your Appium server has been started with --allow-cors."

As mentioned on github I tried to start Appium server with --allow-cors using command : appium --allow-cors
Still I see same issue. I updated my node.js also.
Please helpme to understand what is the issue.

1 Like

just to update, I am using Xcode 13, iOS 15.

  1. real phone or simulator/emulator
  2. app or browser
  3. how you start server

I am using simulator for iPhone 11 SE
It’s a native app
I am starting server from terminal using command “appium --allow-cors”

so if you start appium with:

appium --log-level debug
[Appium] Welcome to Appium v1.22.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723

now you have url where appium server running. in mine case it is ‘0.0.0.0:4723’. and you start driver using it?

also in browser on same mac you can check url ‘http://0.0.0.0:4723/wd/hub/status’ to see output

Please find attached screenshot to see my details.
I tried with both URL “http://0.0.0.0:4723/wd/hub” and “http://127.0.0.1:4723/wd/hub

When I check status using URL “http://0.0.0.0:4723/wd/hub/status
it is: “{“value”:{“build”:{“version”:“1.22.0”}},“sessionId”:null,“status”:0}”

logs:
[debug] [GENERIC] Calling AppiumDriver.getStatus() with args: []

[debug] [GENERIC] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.22.0”}}

[HTTP] <-- GET /wd/hub/status 304 2 ms - -

[HTTP]

[HTTP] <-- GET /favicon.ico 200 0 ms - 1150

[HTTP]

[HTTP] --> GET /wd/hub/status

[HTTP] {}

[debug] [GENERIC] Calling AppiumDriver.getStatus() with args: []

[debug] [GENERIC] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.22.0”}}

[HTTP] <-- GET /wd/hub/status 304 2 ms - -

[HTTP]

[HTTP] <-- GET /favicon.ico 200 0 ms - 1150

[HTTP]

[HTTP] --> GET /wd/hub/status

[HTTP] {}

[debug] [GENERIC] Calling AppiumDriver.getStatus() with args: []

[debug] [GENERIC] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.22.0”}}

[HTTP] <-- GET /wd/hub/status 304 1 ms - -

[HTTP]

[HTTP] <-- GET /favicon.ico 200 0 ms - 1150

[HTTP]

[HTTP] --> GET /wd/hub/status

[HTTP] {}

can you show log when server in debug mode and you trying open driver against it? is there any log created? maybe you just need to check url against what you open driver?

pls log at https://gist.github.com/. not here. here is link to it.

Here is the link for log when I start server in debug mode using command : “appium --log-level debug”

these logs needed to find problem

Thanks for your reply Aleksei,
Issue is resolved for me. I was entering wrong remote path.

Glad. That is why I started from checking your urls.

Hi Priti,
how did you fixed the issue, what is the Remote path you have used?

Just add /wd/hub in remote path and error will be solved

1 Like

Can you explain how you resolved this issue. Still getting same issue when I tried with above mention steps.

Same problem although i changed the RemotePath

Knowledge is Power

Hello Alexey. Help me please. Can I connect Appium Inspector to android simulator (like Nox Player). How can I do it? Where can I get the udid. When I try to get the UDID via cmd it gives me the ip:port of the emulator.

try → android - ADB can't connect to Nox - Stack Overflow