Chat translator blueprint

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\node_modules@aws-sdk\config-resolver\dist\cjs\RegionConfig.js:18:15)
at new TranslateClient (D:\POCs\translatorBlueprint\ChatTranslatorBlueprint\chat-translator-blueprint-main\node_modules@aws-sdk\client-translate\dist\cjs\TranslateClient.js:23:43)
at new Translate (D:\POCs\translatorBlueprint\ChatTranslatorBlueprint\chat-translator-blueprint-main\node_modules@aws-sdk\client-translate\dist\cjs\Translate.js:23:1)
at Object. (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/run_main.js:72:12)
at internal/main/run_main_module.js:17:47

D:\POCs\translatorBlueprint\ChatTranslatorBlueprint\chat-translator-blueprint-main>

Regards
Garima.

Do you have region set in your AWS credentials file?

Make sure you've configured your AWS credentials and renamed the sample.env file to .env as mentioned here.

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.

Have you tried doing step 9 described in this section?

Yes Agnes ,

THe integration is set up and active with the advanced configs .

Regards
Garima.

Please add a Group Filtering under Configuration Properties. The Interaction widget will not be visible if no group is set.

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"

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.

Thanks Agnes ! I checked and it is working as expected :slight_smile:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.