この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
Hi,
I am invoking HttpCleintRequest asynchronously from the JavaScript within the workflow.
“compete” function is working fine in all scenarios the except following –
My question is how to handle this, which function need to implement to handle this scenario?
Getting below error in the log–
Below is the sample code. Complete part is not invoking whenever there is any error in the Authorization value (highlighted)
解決済! 解決策の投稿を見る。
Hi,
A cleaner workaround would be to forgo the buggy HTTPClientRequest() and instead use shell scripting with curl:
Is this a single call though?
Thanks,
-Jon
Hi,
You have the params out of order in that execute() call, swap the last two.
Thanks,
-Jon
Hi,
Tried to swap last 2 params. but in this case, valid scenarios (i.e. when token is valid) are also not working, always getting following error –
Thanks
表示
返信
いいね!の合計
Hi,
Make sure your URL is whitelisted in instance conf, or turn off URL security in instance conf.
Thanks,
-Jon
Thanks for the reply Jon. However probably I was unable to explain the exact scenario, my code is working as expected for all scenarios. Only when somehow authorization fails, it was unable to invoke the complete operation. As a result the workflow was getting stuck (more specifically the JS activity), as HttpClientRequest.wait activity was waiting for the complete operation to be performed.
For the workaround, created a separate monitoring workflow, which will monitor the process and it will kill and restart the main workflow during this scenario.
Thanks,
Sitangshu
表示
返信
いいね!の合計
Thanks for your help so far wodnicki!
Any on why authorization fails getting the workflow stuck?
表示
返信
いいね!の合計
Hi,
A cleaner workaround would be to forgo the buggy HTTPClientRequest() and instead use shell scripting with curl:
Is this a single call though?
Thanks,
-Jon