-
Notifications
You must be signed in to change notification settings - Fork 18
Description
I installed appium-interceptor, but I'm unable to capture requests because the proxy is not starting.
Steps Taken:
I installed the plugin using npx appium plugin install --source=npm appium-interceptor.
I verified the installation using npx appium plugin list, and the output shows that the plugin is installed but not active (appium-interceptor@1.0.1 [installed (npm)]).
I started Appium using npx appium server --port 4723 --use-plugins=appium-interceptor.
When running a test, I encountered the following error: "WebDriverError: Proxy is not active for current session when running 'execute/sync' with method 'POST' and args 'interceptor: startListening'".
I have reinstalled the plugin multiple times and tried to activate it using the provided command, but have not had any luck.
The APK is successfully proxied with Proxyman, so I suspect the issue is related to how I’m running both Appium and ensuring that the plugin is correctly listening to the port.
Could you please assist?
2025-03-03T05:27:25.135Z INFO webdriver: COMMAND executeScript("interceptor: startListening", <object>) [0-0] 2025-03-03T05:27:25.136Z INFO webdriver: [POST] http://localhost:4723/session/278fa826-01a4-4fa8-97f8-19f3c28a2239/execute/sync [0-0] 2025-03-03T05:27:25.136Z INFO webdriver: DATA { script: 'interceptor: startListening', args: [] } [0-0] 2025-03-03T05:27:25.157Z WARN webdriver: WebDriverError: An unknown server-side error occurred while processing the command. Original error: Proxy is not active for current session when running "execute/sync" with method "POST" and args "interceptor: startListening" [0-0] 2025-03-03T05:27:25.158Z INFO webdriver: Retrying 1/3 [0-0] 2025-03-03T05:27:25.158Z INFO webdriver: [POST] http://localhost:4723/session/278fa826-01a4-4fa8-97f8-19f3c28a2239/execute/sync [0-0] 2025-03-03T05:27:25.158Z INFO webdriver: DATA { script: 'interceptor: startListening', args: [] } [0-0] 2025-03-03T05:27:25.673Z WARN webdriver: WebDriverError: An unknown server-side error occurred while processing the command. Original error: Proxy is not active for current session when running "execute/sync" with method "POST" and args "interceptor: startListening" [0-0] 2025-03-03T05:27:25.673Z INFO webdriver: Retrying 2/3 [0-0] 2025-03-03T05:27:25.673Z INFO webdriver: [POST] http://localhost:4723/session/278fa826-01a4-4fa8-97f8-19f3c28a2239/execute/sync [0-0] 2025-03-03T05:27:25.674Z INFO webdriver: DATA { script: 'interceptor: startListening', args: [] } [0-0] 2025-03-03T05:27:26.688Z WARN webdriver: WebDriverError: An unknown server-side error occurred while processing the command. Original error: Proxy is not active for current session when running "execute/sync" with method "POST" and args "interceptor: startListening" [0-0] 2025-03-03T05:27:26.688Z INFO webdriver: Retrying 3/3 [0-0] 2025-03-03T05:27:26.688Z INFO webdriver: [POST] http://localhost:4723/session/278fa826-01a4-4fa8-97f8-19f3c28a2239/execute/sync [0-0] 2025-03-03T05:27:26.688Z INFO webdriver: DATA { script: 'interceptor: startListening', args: [] } [0-0] 2025-03-03T05:27:26.694Z ERROR webdriver: WebDriverError: An unknown server-side error occurred while processing the command. Original error: Proxy is not active for current session when running "execute/sync" with method "


