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

Sending request to localhost #1

Open
quique0194 opened this issue Oct 1, 2015 · 0 comments
Open

Sending request to localhost #1

quique0194 opened this issue Oct 1, 2015 · 0 comments

Comments

@quique0194
Copy link

I'm working in Calthorpe in the Urbanfootprint project. We are using amigocloud-js and at some points it sends a request to Urbanfootprint server. The request looks like this:

http://172.28.128.3/socket.io/1/?t=1443712707258

Where 172.28.128.3 is the vagrant machine IP. In other words Urbanfootprint's IP.
And this is the response:

{"code":0,"message":"Transport unknown"}

The request is sent in this line: https://github.com/amigocloud/amigocloud-js/blob/master/amigocloud.js#L11193

Socket.prototype.handshake = function (fn) {
    ...
    function complete (data) {
        ...
        xhr.send(null);      // Here is the bug
    }
};
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

1 participant