garimabalodi | 2023-04-27 11:06:05 UTC | #1
Hi Forum ,
I am using chat translator blueprint in my mumbai env and getting below error . Does somebody has an idea what might have gone wrong?
D:\POCs\translatorBlueprint\ChatTranslatorBlueprint\chat-translator-blueprint-main>npm install added 180 packages from 123 contributors and audited 180 packages in 29.188s
1 package is looking for funding run npm fund for details
found 3 vulnerabilities (1 moderate, 2 high) run npm audit fix to fix them, or npm audit for details
D:\POCs\translatorBlueprint\ChatTranslatorBlueprint\chat-translator-blueprint-main>node run-local.js D:\POCs\translatorBlueprint\ChatTranslatorBlueprint\chat-translator-blueprint-main\node_modules\@aws-sdk\config-resolver\dist\cjs\RegionConfig.js:18 throw new Error("Region is missing"); ^
Error: Region is missing at Object.resolveRegionConfig (D:\POCs\translatorBlueprint\ChatTranslatorBlueprint\chat-translator-blueprint-main\nodemodules\@aws-sdk\config-resolver\dist\cjs\RegionConfig.js:18:15) at new TranslateClient (D:\POCs\translatorBlueprint\ChatTranslatorBlueprint\chat-translator-blueprint-main\nodemodules\@aws-sdk\client-translate\dist\cjs\TranslateClient.js:23:43) at new Translate (D:\POCs\translatorBlueprint\ChatTranslatorBlueprint\chat-translator-blueprint-main\nodemodules\@aws-sdk\client-translate\dist\cjs\Translate.js:23:1) at Object.<anonymous> (D:\POCs\translatorBlueprint\ChatTranslatorBlueprint\chat-translator-blueprint-main\run-local.js:9:26) at Module.compile (internal/modules/cjs/loader.js:1068:30) at Object.Module.extensions..js (internal/modules/cjs/loader.js:1097:10) at Module.load (internal/modules/cjs/loader.js:933:32) at Function.Module.load (internal/modules/cjs/loader.js:774:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/runmain.js:72:12) at internal/main/runmain_module.js:17:47
D:\POCs\translatorBlueprint\ChatTranslatorBlueprint\chat-translator-blueprint-main>
Regards Garima.
Ebenezer_Osei | 2023-04-27 18:11:09 UTC | #2
Do you have region set in your AWS credentials file?
AgnesCorpuz | 2023-04-28 04:12:53 UTC | #3
Make sure you've configured your AWS credentials and renamed the sample.env file to .env as mentioned here.
garimabalodi | 2023-04-28 10:14:02 UTC | #4
Thanks Agnes i am glad to see that your suggestion worked and it did resolve the region issue .
However i am not getting that "ear" icon widget where we see the translation . it still comes as a rgular chat for me .
My server is up and running :-
Regards Garima.
AgnesCorpuz | 2023-04-28 10:29:36 UTC | #5
Have you tried doing step 9 described in this section?
garimabalodi | 2023-04-28 10:49:38 UTC | #6
garimabalodi, post:4, topic:19671
However i am not getting that "ear" icon widget where we see the translation .
Yes Agnes ,
THe integration is set up and active with the advanced configs .
Regards Garima.
AgnesCorpuz | 2023-04-28 11:31:54 UTC | #7
Please add a Group Filtering under Configuration Properties. The Interaction widget will not be visible if no group is set.
garimabalodi | 2023-04-28 12:37:12 UTC | #8
Hi Agnes ,
Again thanks , dint realize the group selection is mandatory . I am able to see the icon now . However , at the last stage of testing now i am getting another error " The webpage at https://localhost/?conversationid=56640c77-c2fa-47bd-b863-78051de02cc3&language=en-us might be temporarily down or it may have moved permanently to a new web address"
AgnesCorpuz | 2023-04-28 13:30:49 UTC | #9
For testing/demo purposes, the easiest solution to this problem is opening this URL ( https://localhost/?conversationid=56640c77-c2fa-47bd-b863-78051de02cc3&language=en-us) on a new tab and once it loads, refresh Genesys Cloud.
This happens because browsers are not going to allow you to load HTTPS content from localhost without jumping through some hoops. Depending on your browser you might be able to turn off the security checks, or you could use a tool like ngrok that will expose your localhost server over the public internet available over HTTPS.
garimabalodi | 2023-05-18 05:15:55 UTC | #10
Thanks Agnes ! I checked and it is working as expected :)
system | 2023-06-18 05:16:21 UTC | #11
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 19671