aws / aws/amazon-q-connectjs

wisdomClient.call() doesn't work

Open
#24 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I'm using GetContact to get 'getContactCommand' object just like here:
https://github.com/aws/amazon-connect-wisdomjs#getcontact
and then passing it to `wisdomClient.call(getContactCommand)` to get the session ARN but it doesn't get called

And in the console I get this error
`Failed to execute 'postMessage' on 'DOMWindow': The target origin provided does not match the recipient window's origin ('https://localhost:3000').`

I'm using the last versions of connect-streams and connect-wisdomjs

Contributor guide

Open the contributing guide

Research direction

Start with the getContact example and the wisdomClient.call(getContactCommand) entry point, then reproduce the browser postMessage origin error at https://localhost:3000. Done means the command is called successfully and returns the session ARN without the target-origin error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.