Comments (6)
Can you share your wsuri? It seems that may be the culprit.
from androidasync.
System.err W java.lang.NumberFormatException: Invalid int: "//fonts.googleapis.com/css?family=Open+Sans"
I suspect the socket.io server is not set up correctly, or you're pointed to the wrong address.
from androidasync.
I think I figured out what the issue is. I hosted the socket.io testserver on http://nitrous.io and it looks like they don't support websockets and it falls back to xhr polling in a browser whereas the app returns the exception.
from androidasync.
Ok, I'll leave this open, as I should add xhr support.
from androidasync.
@koush I'm using the android-websockets library, and I'm very interested on getting XHR support too.
I'd be glad to help with this one, could you give me some direction as to where to start?
from androidasync.
I got that :
11-03 18:09:59.648 20789-20903/xx.xx.xx E/socket.io﹕ (59 ms) http://xx.com:3000/socket.io/1/: socket.io disconnected
11-03 18:09:59.648 20789-20903/xx.xx.xx E/socket.io﹕ Invalid int: "//www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html xmlns='http"
java.lang.NumberFormatException: Invalid int: "//www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html xmlns='http"
at java.lang.Integer.invalidInt(Integer.java:137)
at java.lang.Integer.parse(Integer.java:374)
at java.lang.Integer.parseInt(Integer.java:365)
at java.lang.Integer.parseInt(Integer.java:331)
at com.koushikdutta.async.http.socketio.SocketIOConnection$2.transform(SocketIOConnection.java:114)
at com.koushikdutta.async.http.socketio.SocketIOConnection$2.transform(SocketIOConnection.java:108)
at com.koushikdutta.async.future.TransformFuture.onCompleted(TransformFuture.java:14)
at com.koushikdutta.async.future.SimpleFuture.handleCallbackUnlocked(SimpleFuture.java:107)
at com.koushikdutta.async.future.SimpleFuture.setComplete(SimpleFuture.java:141)
at com.koushikdutta.async.future.SimpleFuture.setComplete(SimpleFuture.java:128)
at com.koushikdutta.async.http.AsyncHttpClient.invokeWithAffinity(AsyncHttpClient.java:481)
at com.koushikdutta.async.http.AsyncHttpClient.access$700(AsyncHttpClient.java:51)
at com.koushikdutta.async.http.AsyncHttpClient$4.run(AsyncHttpClient.java:492)
at com.koushikdutta.async.AsyncServer.lockAndRunQueue(AsyncServer.java:683)
at com.koushikdutta.async.AsyncServer.runLoop(AsyncServer.java:700)
at com.koushikdutta.async.AsyncServer.run(AsyncServer.java:608)
at com.koushikdutta.async.AsyncServer.access$700(AsyncServer.java:37)
at com.koushikdutta.async.AsyncServer$13.run(AsyncServer.java:557)
Do you think that's the same bug ?
Thanks
from androidasync.
Related Issues (20)
- websocket server will close when receive data in version 3.0.8
- websocket server will block after send big text string HOT 1
- java.net.ConnectException: failed to connect to
- version:3.1.0,AsyncHttpServer not work
- Using AyncDataGram Server to Broadcast data to all clients connected to It
- AsyncNetworkSocket allocator give currentAlloc 0 most of time because of it unable to read and write using AsyncSocket
- 设置返回值code无效,啥情况 HOT 1
- mDataHandler failed to consume data HOT 1
- Callback is not received when network is poor and connection is terminated from other End HOT 1
- Version in the readme is old
- exception when connect to server HOT 1
- Running websocket server in background
- Can not add Http Header HOT 2
- Following the basic websocket example code, but HOT 1
- client got Connection reset by peer error when try to send binary message HOT 2
- Does the library use some Tracking link? HOT 2
- Finf
- How to do server support Multi-Threading and High concurrency HOT 2
- NullPointerException in HybiParser ( version 3.1.0 )
- mp3 with mediaplayer of android can not play over http
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidasync.