Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

website-react-examples/social-messenger throws an exception #30

Closed
dpetrov opened this issue Jul 8, 2021 · 2 comments
Closed

website-react-examples/social-messenger throws an exception #30

dpetrov opened this issue Jul 8, 2021 · 2 comments

Comments

@dpetrov
Copy link

dpetrov commented Jul 8, 2021

I am trying to get the social-messenger example running. After setting the tokens correctly, the App throws an exception each time I am trying to send a message:

SyntaxError: Failed to execute 'postMessage' on 'Window': Invalid target origin '' in a call to 'postMessage'.

image

Any thoughts?

@DanC5
Copy link
Contributor

DanC5 commented Jul 8, 2021

Hey @dpetrov, comment out these lines and you should be good to go, https://github.com/GetStream/website-react-examples/blob/master/social-messenger/src/App.js#L59-#L73. They are for communicating with our website.

@DanC5 DanC5 closed this as completed Jul 8, 2021
@hien-h-tran
Copy link

Hello @DanC5 ,

I am having the same issue as the original poster on the Social Messenger TS version. The app loads fine, and I can send and receive messages, but every time I tap the send button, I get the same issue:

ERROR
Failed to execute 'postMessage' on 'Window': Invalid target origin '' in a call to 'postMessage'.

I haven't made any changes to the application, other then the development file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants