-
Notifications
You must be signed in to change notification settings - Fork 181
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 #43
Comments
I am observing working behavior on Macs, while the exact same application is experiencing "CrossStorageClient could not connect" error as well on Windows 8/10. Very odd. |
Same here... I'm on Mac OSX Chrome. |
Are you running the latest version of both client and hub? |
Hello @danielstjules, Yes, I'm running everything in my development project. I think I'm doing something wrong since all 25 test passes in Chrome, but when I try in my web app it shows the following error:
But the onConnect callback is triggered. This is basically my setup:
window.location.origin is: |
If you change your origin to |
Ok, after a long day of digging into the problem I got some details in case anyone is having problems:
|
Thanks @danielstjules for your help! I really appreciate it! |
Hello, @vsantosu , I'm using [email protected], and meet the same problem "CrossStorageClient could not connect", can you provide a demo that how you resolved this problem? Thanks very much. |
Hi @vsantosu , could you provide code snippets of your functioning solution? Or at least more details on where/how you configured each piece hub/client? It seems I'm running into that instantiating loop you mentioned. Thanks in advance!!
|
Hello @briansg, the problem was that if you don't point the cross storage iframe to a different domain, it will load and instantiate the cross storage component over and over in a loop because will be recursive. To prevent this, host your hub in a different domain with a plain HTML, not angular: hub.mydomain.com
Then, lets say you are trying to connect to that hub from app.mydomain.com
Here I created an Angular Service that will use the same instance of the cross storage client on all controllers, this solved my problem. Hope it helps. |
Hey thanks a lot for you quick reply @vsantosu !! It sure helps, now I have a better understanding on what was going on and how to solve the instantiation loop issue. =) |
@vsantosu |
Hi @mihirsuchak11, Could you resolve the issue that you were faced with when working on live servers ? |
Sure, let's connect on skype so I can easily help you my skype id is
mihir.suchak11
…On Mon, May 20, 2019 at 11:39 AM azherf ***@***.***> wrote:
Hi @mihirsuchak11 <https://github.com/mihirsuchak11>, Could you resolve
the issue that you were faced with when working on live servers ?
Even we see that things work nice on local, however when deployed in live
servers we get Error: CrossStorageClient could not connect.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43?email_source=notifications&email_token=AC77RSJJMS7FGAQSZJICA3DPWI6APA5CNFSM4D3W6LYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVXZAQQ#issuecomment-493850690>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC77RSJYUFFIVATSHGPG57LPWI6APANCNFSM4D3W6LYA>
.
|
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. |
Any update on above issue? |
I'm trying to upgrade the client and hub to the latest version and getting the timeout error:
Any pointers as to what it could be? I double checked that the files are loading correctly (including the es6-promise). And the permissions are unchanged from the previous version.
Any pointers as to what else could cause it?
Change request: Is it possible to make the error message more specific as to why it can't connect?
The text was updated successfully, but these errors were encountered: