Skip to content

HTTP Error (java.io.IOException): 400 : Bad Request when connecting to socket.io #39

@ajsatam

Description

@ajsatam

Using the latest 2.0.0 module for Android.
Titanium SDK 6.1.0 GA.
Latest socket.io implementation on server
JDK version jdk1.8.0_131

Below is the code

var uri='http://ip:3000';

var io = require('socket.io'),
socket = io.connect(uri);

socket.on('connect', function () {
Ti.API.log('connected!');
});

Below is the error

TiHTTPClient: (TiHttpClient-133) [45,45] HTTP Error (java.io.IOException): 400 : Bad Request
[ERROR] : TiHTTPClient: java.io.IOException: 400 : Bad Request
[ERROR] : TiHTTPClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1266)
[ERROR] : TiHTTPClient: at java.lang.Thread.run(Thread.java:818)

Any solution for it would be really appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions