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

Cordova-Android SockJS wrong url #2880

Closed
BBLN opened this issue Oct 21, 2014 · 6 comments
Closed

Cordova-Android SockJS wrong url #2880

BBLN opened this issue Oct 21, 2014 · 6 comments

Comments

@BBLN
Copy link

@BBLN BBLN commented Oct 21, 2014

I am not sure exactly about where is the bug, but when meteor bundle is used with mobile server SockJS opens connection to the wrong url.

Build command:

ROOT_URL=https://y.meteor.com meteor build ~/v2_debug --server=https://y.meteor.com --debug

Log:

D/CordovaLog(18040): http://meteor.local/: Line 0 : XMLHttpRequest cannot load http://y.meteor.com/sockjs/info?cb=xxxxx. No 'Access-Control-Allow-Origin' header is present on the requeste
d resource. Origin 'http://meteor.local' is therefore not allowed access.
I/chromium(18040): [INFO:CONSOLE(0)] "XMLHttpRequest cannot load http://y.meteor.com/sockjs/info?cb=xxxxx. No 'Access-Control-Allow-Origin' header is present on the requested resource. Or
igin 'http://meteor.local' is therefore not allowed access.", source: http://meteor.local/ (0)

Resources are redirected to the url with https, SockJS opens without.

@BBLN
Copy link
Author

@BBLN BBLN commented Oct 23, 2014

70054e3

Closed?

@estark37
Copy link
Contributor

@estark37 estark37 commented Oct 23, 2014

Hi @BBLN -- yes, we think this is fixed in the latest 1.0 RC. Can you please try with meteor --release 1.0-rc.6 and let us know if it's still not working?

@estark37 estark37 closed this Oct 23, 2014
@BBLN
Copy link
Author

@BBLN BBLN commented Oct 24, 2014

Meteor tools failed on 1.0 rc 6. Not sure why.
Tested on 1.0 rc 7, tried with meteor run & meteor bundle. Same error.

I'll try chrome remote debugging to give some more info.

@estark37
Copy link
Contributor

@estark37 estark37 commented Oct 24, 2014

@BBLN did you re-deploy your app with 1.0-rc.7 also? Do you have a cloneable reproduction I could look at?

@BBLN
Copy link
Author

@BBLN BBLN commented Oct 24, 2014

Re-deployed & re-installed the app.
Runtime config is fine now.

Closed

@pcuci
Copy link

@pcuci pcuci commented Jun 16, 2015

@BBLN - I noticed sometimes meteor processes keep running even after exiting them, especially meteor run android-device ones, it may be that you had one of these zombies packaging an older version of your code.

It happened a few times, running Ubuntu 15.04

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

Successfully merging a pull request may close this issue.

None yet
4 participants