Skip to content

Sending request to localhost #1

@quique0194

Description

@quique0194

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
    }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions