Rasa Server Timeout Issue - Not waiting for Action Server to complete custom action - timeout

Facing timeout issue with Rasa Server. Rasa is not waiting for the custom action to complete by the Action server.
PFB Rasa details and Error logs from Rasa Server and Action Server
Rasa Version : 2.8.6
Minimum Compatible Version: 2.8.0
Rasa SDK Version : 2.8.6
Rasa X Version : None
Python Version : 3.8.10
Operating System : Windows-2012ServerR2-6.3.9600-SP0
Python Path : c:\chatbot\press_chatbot_backend\env\scripts\python.exe
Error
Rasa Server
2022-11-09 10:41:58 ←[1;30mDEBUG ←[0m ←[34mrasa.core.actions.action←[0m - Calling action endpoint to run action 'acti on_ask_amhpasswordreset'. 2022-11-09 10:42:58 ←[1;30mERROR ←[0m ←[34mrasa.core.processor←[0m - ←[31mEncountered an exception while running acti on 'action_ask_amhpasswordreset'.Bot will continue, but the actions events are lost. Please check the logs of your actio n server for more information.←[0m Traceback (most recent call last): File "c:\chatbot\press_chatbot_backend\env\lib\site-packages\rasa\core\actions\action.py", line 685, in run response = await self.action_endpoint.request( File "c:\chatbot\press_chatbot_backend\env\lib\site-packages\rasa\utils\endpoints.py", line 172, in request raise ClientResponseError( rasa.utils.endpoints.ClientResponseError: 503, Service Unavailable, body='b'<!DOCTYPE html><html lang=en><meta charset=U TF-8><title>\xe2\x9a\xa0\xef\xb8\x8f 503 \xe2\x80\x94 Service Unavailable</title>\n<style>\n html { font-family: sans-serif }\n h2 { color: #888; }\n .tb-wrapper p { margin: 0 }\n .frame-border { margin: 1rem }\n .frame-line > * { padding: 0.3rem 0.6rem }\n .frame-line { margin-bottom: 0.3rem }\n .frame-code { font-size: 16px; padding-left: 4ch }\n .tb-wrapper { border: 1px solid #eee }\n .tb-header { background: #eee; padding: 0.3rem; font-weight: bold }\n .frame-descriptor { background: #e2eafb; font-size: 14px }\n </st yle>\n<h1>\xe2\x9a\xa0\xef\xb8\x8f 503 \xe2\x80\x94 Service Unavailable</h1><p>Response Timeout\n''
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "c:\chatbot\press_chatbot_backend\env\lib\site-packages\rasa\core\processor.py", line 772, in _run_action events = await action.run( File "c:\chatbot\press_chatbot_backend\env\lib\site-packages\rasa\core\actions\action.py", line 709, in run raise RasaException("Failed to execute custom action.") from e rasa.shared.exceptions.RasaException: Failed to execute custom action. 2022-11-09 10:42:58 ←[1;30mDEBUG ←[0m ←[34mrasa.core.processor←[0m - Policy prediction ended with events '[<rasa.shar ed.core.events.DefinePrevUserUtteredFeaturization object at 0x000000FEB9A1CEB0>]'. 2022-11-09 10:42:58 ←[1;30mDEBUG ←[0m ←[34mrasa.core.processor←[0m - Action 'action_ask_amhpasswordreset' ended with events '[]'.
Action Server
2022-11-09 13:07:54 ←[1;30mDEBUG ←[0m ←[34mrasa_sdk.executor←[0m - Received request to run 'validate_amh_pass_reset_f orm' 2022-11-09 13:07:54 DEBUG rasa_sdk.executor - Received request to run 'validate_amh_pass_reset_form' 2022-11-09 13:07:54 ←[1;30mDEBUG ←[0m ←[34mrasa_sdk.executor←[0m - Finished running 'validate_amh_pass_reset_form' 2022-11-09 13:07:54 DEBUG rasa_sdk.executor - Finished running 'validate_amh_pass_reset_form' 2022-11-09 13:07:56 ←[1;30mDEBUG ←[0m ←[34mrasa_sdk.executor←[0m - Received request to run 'validate_amh_pass_reset_f orm' 2022-11-09 13:07:56 DEBUG rasa_sdk.executor - Received request to run 'validate_amh_pass_reset_form' 2022-11-09 13:07:56 ←[1;30mDEBUG ←[0m ←[34mrasa_sdk.executor←[0m - Finished running 'validate_amh_pass_reset_form' 2022-11-09 13:07:56 DEBUG rasa_sdk.executor - Finished running 'validate_amh_pass_reset_form' 2022-11-09 13:08:02 ←[1;30mDEBUG ←[0m ←[34mrasa_sdk.executor←[0m - Received request to run 'validate_amh_pass_reset_f orm' 2022-11-09 13:08:02 DEBUG rasa_sdk.executor - Received request to run 'validate_amh_pass_reset_form' 2022-11-09 13:08:02 ←[1;30mWARNING ←[0m ←[34mrasa_sdk.forms←[0m - ←[33mSkipping validation for amh_email: there is no validation method specified.←[0m 2022-11-09 13:08:02 WARNING rasa_sdk.forms - Skipping validation for amh_email: there is no validation method specif ied. 2022-11-09 13:08:02 ←[1;30mDEBUG ←[0m ←[34mrasa_sdk.executor←[0m - Finished running 'validate_amh_pass_reset_form' 2022-11-09 13:08:02 DEBUG rasa_sdk.executor - Finished running 'validate_amh_pass_reset_form' 2022-11-09 13:08:04 ←[1;30mDEBUG ←[0m ←[34mrasa_sdk.executor←[0m - Received request to run 'validate_amh_pass_reset_f orm' 2022-11-09 13:08:04 DEBUG rasa_sdk.executor - Received request to run 'validate_amh_pass_reset_form' 2022-11-09 13:08:04 ←[1;30mDEBUG ←[0m ←[34mrasa_sdk.executor←[0m - Finished running 'validate_amh_pass_reset_form' 2022-11-09 13:08:04 DEBUG rasa_sdk.executor - Finished running 'validate_amh_pass_reset_form' 2022-11-09 13:08:07 ←[1;30mDEBUG ←[0m ←[34mrasa_sdk.executor←[0m - Received request to run 'action_ask_amhpasswordres et' 2022-11-09 13:08:07 DEBUG rasa_sdk.executor - Received request to run 'action_ask_amhpasswordreset' before async function Response AMH password reset has been successfully completed for t in 123321 environment and Password is: abcd12333 after async function check reset response AMH password reset has been successfully completed for t in 123321 environment and Password is: abcd12333 2022-11-09 13:09:08 ←[1;30mDEBUG ←[0m ←[34mrasa_sdk.executor←[0m - Finished running 'action_ask_amhpasswordreset' 2022-11-09 13:09:08 DEBUG rasa_sdk.executor - Finished running 'action_ask_amhpasswordreset'
Tried increasing the DEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS in console.py file. Still getting the same time out issue in rasa.
Expecting the Rasa Server to wait for the Action server to complete the custom action.

Related

Trying to execute karate framework UI Automation on apline linux image, however facing error while launching chromium-browser

Trying to execute karate framework UI Automation on apline linux image, however facing error while launching chromium-browser
Basically its being executed through gradle command which works fine on Windows where chrome is installed. But on apline-linux I get following error:
21:41:38.427 [Test worker] DEBUG karate.org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 2][route: {}->http://localhost:9222][total available: 0; route allocated: 1 of 5; total allocated: 1 of 10]
21:41:38.427 [Test worker] DEBUG karate.org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:9222
21:41:38.427 [Test worker] DEBUG karate.org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:9222
21:41:38.428 [Test worker] DEBUG karate.org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: Shutdown connection
21:41:38.428 [Test worker] DEBUG karate.org.apache.http.impl.execchain.MainClientExec - Connection discarded
21:41:38.428 [Test worker] DEBUG karate.org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 2][route: {}->http://localhost:9222][total available: 0; route allocated: 0 of 5; total allocated: 0 of 10]
21:41:38.428 [Test worker] ERROR com.intuit.karate - karate.org.apache.http.conn.HttpHostConnectException: Connect to localhost:9222 [localhost/127.0.0.1] failed: Connection refused, http call failed after 4 milliseconds for url: http://localhost:9222/json
21:41:40.429 [Test worker] DEBUG com.intuit.karate.shell.Command - attempt #3 waiting for http to be ready at: http://localhost:9222/json
21:41:40.430 [Test worker] DEBUG karate.org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: karate
21:41:40.430 [Test worker] DEBUG karate.org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
Just want to understand what all things need to be installed on the docker to get pass this error, and just to validate when I run ping localhost command, that also does not work, it seems something is not correct on the image itself, any pointer/help would be appreciated, Thanks!
Regards,
Swapnil
I tried to install chromium & chrome-driver on alpine image, and using that custom image tried to launch gradle command to invoke karate ui-automation, it fails with below error:
[Test worker] ERROR com.intuit.karate - karate.org.apache.http.conn.HttpHostConnectException: Connect to localhost:9222 [localhost/127.0.0.1] failed: Connection refused, http call failed after 4 milliseconds for url: http://localhost:9222/json
How to make this work, to run the test automation in headless mode, thanks!

iOS script is not running on Appium

When I'm trying to run iOS scripts the Appium server is running but just shows listener started on 0.0.0.0:4723. I don't know where the error is ?
Appium: Server is not running
AlexHacki- Downloads % appium --base-path /wd/hub
[Appium] Welcome to Appium v1.23.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723.
Capabilities for iOS
capabilities: {
platformName: 'iOS',
deviceName: 'iPhone',
app: '/Users/Documents/iOSTest.ipa',
automationName: 'XCUITest',
platformVersion: '15.4',
noReset: true,
formFactor: 'MOBILE'
},
Error: After running the script
022-06-09T07:00:00.296Z INFO #wdio/local-runner: Run worker command: run
2022-06-09T07:00:00.607Z DEBUG #wdio/config:utils: Found 'ts-node' package, auto-compiling TypeScript files
2022-06-09T07:00:00.979Z DEBUG #wdio/local-runner:utils: init multiremote session
2022-06-09T07:00:00.984Z ERROR #wdio/runner: Error: Required option "capabilities" is missing
at validateConfig (/Users/alex/Documents//__tests__/appium/node_modules/#wdio/config/build/utils.js:53:19)
at remote (/Users/alex/Documents/node_modules/webdriverio/build/index.js:58:48)
at /Users/alex/Documents/webdriverio/build/index.js:139:51
at Array.map (<anonymous>)
at multiremote (/Users/alex/Documents/node_modules//webdriverio/build/index.js:138:36)
at initialiseInstance (/Users/alex/Documents/node_modules/#wdio/runner/build/utils.js:73:57)
at Runner._startSession (/Users/alex/Documents/appium/node_modules/#wdio/runner/build/index.js:223:93)
at Runner._initSession (/Users/alex/Documents/appium/node_modules/#wdio/runner/build/index.js:176:36)
at Runner.run (/Users/alex/Documents/appium/node_modules/#wdio/runner/build/index.js:88:30)
2022-06-09T07:00:13.403Z DEBUG #wdio/local-runner: Runner 0-0 finished with exit code 1
[ FAILED in /Users/alex/Documents/iOSTest.ipa - /test/specs/smoke/guide.test.js
2022-06-09T07:00:13.403Z INFO #wdio/cli:launcher: Run onWorkerEnd hook
2022-06-09T07:00:13.404Z DEBUG #wdio/cli:utils: Finished to run "onWorkerEnd" hook in 0ms
2022-06-09T07:00:13.404Z INFO #wdio/cli:launcher: Run onComplete hook
Can't generate report portal launch url
Error: Request failed with status code 401:
at /Users/alex/Documents/appium/node_modules/reportportal-js-client/lib/rest.js:33:23
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Function.getLaunchUrlByParams (/Users/alex/Documents/appium/node_modules/wdio-reportportal-service/src/index.js:108:20)
at async Function.getLaunchUrl (/Users/alex/Documents/node_modules/wdio-reportportal-service/src/index.js:92:12)
at async Object.onComplete (/Users/alex/Documents/appium/conf/shared.conf.js:60:18)
at async /Users/alex/Documents/node_modules/#wdio/cli/build/utils.js:96:13
at async Promise.all (index 0)
at async Launcher.run (/Users/alex/Documents/__tests__/appium/node_modules/#wdio/cli/build/launcher.js:96:39)
Report portal link undefined
at /Users/alex/Documents/__tests__/appium/node_modules/reportportal-js-client/lib/rest.js:33:23
at processTicksAndRejections (internal/process/task_queues.js:95:5)
Error: Request failed with status code 401:
at /Users/alex/Documents/node_modules/reportportal-js-client/lib/rest.js:33:23
at processTicksAndRejections (internal/process/task_queues.js:95:5)
2022-06-09T07:00:14.462Z DEBUG #wdio/cli:utils: Finished to run "onComplete" hook in 603ms

edgelet_utils... Get https://warlibregistry.azurecr.io/v2/iot-edge-engine-simulator/manifests/0.0.1-amd64: unauthorized: authentication required

I get a quite strange error message after executing Install-SecurityDaemon.
I deployed the IoT Edge module image to Azure Registry using Visual Studio Code. Then, I try to execute the IoT Edge solution in the simulator. Everything is ok.
I executed Install-SecurityDaemon. Everything went ok. But when I exec "iotedge list" command, I saw that only two main modules arrived but there is no module developed by me
PS C:\WINDOWS\system32> iotedge list
NAME STATUS DESCRIPTION CONFIG
edgeHub failed Failed (137) an hour ago mcr.microsoft.com/azureiotedge-hub:1.0
edgeAgent running Up 1 second mcr.microsoft.com/azureiotedge-agent:1.0
I'd seen the log and found only one error message:
11.11.2018 22:52:37 warn: edgelet_docker::runtime -- Attempt to pull image failed.
11.11.2018 22:52:42 info: edgelet_core::watchdog -- Checking edge runtime status
11.11.2018 22:52:42 info: edgelet_core::watchdog -- Edge runtime is running.
11.11.2018 22:52:43 warn: edgelet_docker::runtime -- Attempt to pull image failed.
11.11.2018 22:52:43 info: edgelet_http::logging -- [mgmt] - - - [2018-11-11 19:52:43.487711600 UTC] "POST /modules?api-version=2018-06-28 HTTP/1.1" 500 Internal Server Error 141 "-" "-" pid(any)
11.11.2018 22:52:43 warn: edgelet_utils::logging -- Get https://warlibregistry.azurecr.io/v2/iot-edge-engine-simulator/manifests/0.0.1-amd64: unauthorized: authentication required
11.11.2018 22:52:55 info: edgelet_http::logging -- [mgmt] - - - [2018-11-11 19:52:55.502141500 UTC] "POST /modules?api-version=2018-06-28 HTTP/1.1" 500 Internal Server Error 141 "-" "-" pid(any)
11.11.2018 22:52:55 warn: edgelet_utils::logging -- Get https://warlibregistry.azurecr.io/v2/iot-edge-engine-simulator/manifests/0.0.1-amd64: unauthorized: authentication required
Then I execute "docker login" command to be sure, that docker properly authorized in Azure registry. Everything was ok. Then, I reinstall SecurityDaemon. I got the same error.
Executing command
PS C:\WINDOWS\system32> docker pull warlibregistry.azurecr.io/iot-edge-engine-simulator:0.0.1-amd64
0.0.1-amd64: Pulling from iot-edge-engine-simulator
Digest: sha256:4ba6ae6442ca974b2c52459b85c0861e9664f26990c6e87f20829954f4d67d09
Status: Image is up to date for warlibregistry.azurecr.io/iot-edge-engine-simulator:0.0.1-amd64
return no errors. But if try to get manifest https://warlibregistry.azurecr.io/v2/iot-edge-engine-simulator/manifests/0.0.1-amd64 I really got the JSON with the error "unauthorized: authentication required".
In the Azure Portal after adding my module engineSimulator I saw another one iot_edge_engine_simulator with type "Module identity" which is not created by me. When I installed e.g. Microsoft module termoSensor - there is no such additional module.
So, I'm stuck, I don't know why the error occurs and what to do further.
Thank you for a help!
I found the mistake. When I set the module I missed filling "Container Registry Settings". In the case of using your own container registry (not Microsoft), you MUST fill authorization parameters.
In my case:
NAME: WarlibRegistry
ADDRESS: warlibregistry.azurecr.io
USERNAME & PASSWORD from the "Access keys" section of your container registry.

Katalon suite execution via Jenkins error

I'm trying to execute my test suite via Jenkins using Firefox headless but I keep getting an error and I can't figure out how to solve it.
This is the console log:
[Parent 5024, Gecko_IOThread] WARNING: pipe error: 232: file
z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc,
line 513
!!! [Parent][MessageChannel] Error: (msgtype=0x15008D,name=PBrowser::Msg_UpdateNativeWindowHandle) Channel
error: cannot send/recv
!!! [Parent][MessageChannel] Error: (msgtype=0x150080,name=PBrowser::Msg_Destroy) Channel error: cannot
send/recv
A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is set,
shutting down 1524986830246 addons.xpi DEBUG Calling bootstrap method
shutdown on webcompat#mozilla.org version 1.1
1524986830246 addons.xpi DEBUG Calling bootstrap method shutdown on
shield-recipe-client#mozilla.org version 80
1524986830248 addons.xpi DEBUG Calling bootstrap method shutdown on
screenshots#mozilla.org version 25.0.0
1524986830248 addons.xpi DEBUG Calling bootstrap method shutdown on
onboarding#mozilla.org version 1.0
1524986830250 addons.xpi DEBUG Calling bootstrap method shutdown on
formautofill#mozilla.org version 1.0
1524986830250 addons.xpi DEBUG Calling bootstrap method shutdown on
followonsearch#mozilla.com version 0.9.6
1524986830250 addons.xpi DEBUG Calling bootstrap method shutdown on
firefox#getpocket.com version 1.0.5
1524986830250 addons.xpi DEBUG Calling bootstrap method shutdown on
aushelper#mozilla.org version 2.0
1524986830250 addons.xpi DEBUG Calling bootstrap method shutdown on
activity-stream#mozilla.org version 2018.02.17.0026-173e2795
!!! [Parent][MessageChannel] Error: (msgtype=0x15008D,name=PBrowser::Msg_UpdateNativeWindowHandle) Channel
error: cannot send/recv
!!! [Parent][MessageChannel] Error: (msgtype=0x150080,name=PBrowser::Msg_Destroy) Channel error: cannot
send/recv
A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is set,
shutting down 1524986831912 Marionette INFO Listening on port 57334
!!! [Parent][MessageChannel] Error: (msgtype=0x15008D,name=PBrowser::Msg_UpdateNativeWindowHandle) Channel
error: cannot send/recv
!!! [Parent][MessageChannel] Error: (msgtype=0x150080,name=PBrowser::Msg_Destroy) Channel error: cannot
send/recv
A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is set,
shutting down 1524986840082 addons.manager DEBUG shutdown
1524986840082 addons.manager DEBUG Calling shutdown blocker for
XPIProvider 1524986840082 addons.xpi DEBUG shutdown
1524986840084 addons.xpi-utils DEBUG shutdown
1524986840084 addons.manager DEBUG Calling shutdown blocker for
LightweightThemeManager 1524986840084 addons.manager DEBUG Calling
shutdown blocker for GMPProvider
1524986840084 addons.manager DEBUG Calling shutdown blocker for
PluginProvider 1524986840086 addons.manager DEBUG Calling shutdown
blocker for PreviousExperimentProvider
1524986840090 addons.manager DEBUG Async provider shutdown done
*** UTM:SVC TimerManager:registerTimer called after profile-before-change notification. Ignoring timer registration for
id: telemetry_modules_ping JavaScript error:
chrome://marionette/content/server.js, line 337:
NS_ERROR_NOT_INITIALIZED: Component returned failure code: 0xc1f30001
(NS_ERROR_NOT_INITIALIZED) [nsIServerSocket.close] 04-29-2018 07:27:20
AM - [FAILED] - Unable to open browser with url:
'URL' (Root cause:
version: '3.8.1', revision: '6e95a6684b', time:
driver.version: CGeckoDriver remote stacktrace: stack backtrace: 0:
0x4821c4 - 1: 0x482933 - 2:
0x47a13a - 3: 0x47abb0 - 4:
0x44bb74 - 5: 0x43026a - 6:
0x40ba4e - 7: 0x4119b9 - 8:
0x6d2c89 - 9: 0x426006 - 10:
0x6cd490 - 11: 0x7ffe8a768364 - BaseThreadInitThunk)
Btw, I successfully executed the same suite in console mode via cmd.
Thanks!

Randomly getting - - ms - - from appium server

Can anyone tell when does this occur in the Appium Logs: - - ms - -
2017-07-01 10:11:49:851 - info: [HTTP] <-- POST /wd/hub/session/f0959bfd-0901-4613-81e1-584ad58d163f/element/15/value - - ms - -
I am getting this in the logs randomly, and whenever i get this, the Selenium Hub says org.openqa.selenium.WebDriverException: Session [f0959bfd-0901-4613-81e1-584ad58d163f] was terminated due to FORWARDING_TO_NODE_FAILED
More appium server logs can be found here: https://pastebin.com/B4syZHF2

Resources