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

Error: CrossStorageClient could not connect at client.js:152 #50

Open
mihirsuchak11 opened this issue Apr 27, 2018 · 9 comments
Open

Error: CrossStorageClient could not connect at client.js:152 #50

mihirsuchak11 opened this issue Apr 27, 2018 · 9 comments

Comments

@mihirsuchak11
Copy link

Hello I am getting an error "Error: CrossStorageClient could not connect at client.js:152". I have two sub domains auth-example.com and expert-example.com. I am declaring hub in auth-example.com like this.
"CrossStorageHub.init([{origin: /://(www.)?auth-example.com$/, allow: ['get', 'set', 'del']}]);"
and client side is expert-example.com
" var storage = new CrossStorageClient('https://auth.example.com');",
everything works perfect only on localhosts but error is occurring on live. and I can console in auth-example.com(in hub) but getting error on sub domains side (client side) Anyone can help me?

@gatodeveloper
Copy link

Some Update?

@mihirsuchak11
Copy link
Author

mihirsuchak11 commented Nov 30, 2018

@gatodeveloper Not yet can you, in angular project this kinda stuff work perfectly but why it's not working in React. I've discussed with my many colleagues they all have tried even though I didn't get any solution

@azherf
Copy link

azherf commented May 20, 2019

Hi @mihirsuchak11 , did you get any solution ?

@mihirsuchak11
Copy link
Author

mihirsuchak11 commented May 20, 2019 via email

@varasney
Copy link

@mihirsuchak11 , please can you share that Solution..

@DylanJu
Copy link

DylanJu commented Nov 11, 2019

@varasney @azherf
I have experienced the same problem. In my case, it is because of timeout config.
A default timeout is 5000.
I fixed it by changing it to 10000. I'll hope it works in your case.

@azherf
Copy link

azherf commented Nov 14, 2019

@DylanJu , That worked. In fact we had to increase the timeout to 30 seconds in our case as establishing connection was taking more time. Thanks.

@omercikayse
Copy link

Hello, I'm using angular8, and meet the same problem "CrossStorageClient could not connect", can you provide a demo that how you resolved this problem? Thanks very much.

@kmanarvis
Copy link

@omercikayse hey did you able to resolve the issue? I am facing the same issue. Can you please share your solution?

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

7 participants