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

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

Open
ajsatam opened this issue Jun 8, 2017 · 0 comments

Comments

@ajsatam
Copy link

ajsatam commented Jun 8, 2017

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.

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