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
Server never properly responds #29
Comments
The server tries to listen on port 80 by default, which isn't allowed by Android. Try listening on a different port. Try something higher, like 8080. |
I'm passing in 0 and it's choosing a random port number in the unassigned range (5 digits) according to its own reporting. I get the port here: https://github.com/freaktechnik/Webthingify/blob/master/app/src/main/java/be/humanoids/webthingify/ServerTask.java#L32 As I said, this error occurs when actually trying to load a path the server is serving, not in the setup. |
Also got these errors on android. Thing became available after using real ip of device as hostname |
I figured out that the errors I posted here are happen on endpoints that the server is not explicitly serving. There's also some issue with org.json from Abdroid not working with this lib. |
I do not have this issue, what are you about? |
Sorry if this isn't actually an issue with this library and I'm just using it wrong - it's been a long time since I've written proper Java.
I've gotten to the point where I can start the web server. Doesn't matter if I start it as daemon or not or what route on the server I load, I always get the following errors for a single request:
This is with https://github.com/freaktechnik/Webthingify
Server is started here: https://github.com/freaktechnik/Webthingify/blob/master/app/src/main/java/be/humanoids/webthingify/ServerTask.java
Thing implementation is here: https://github.com/freaktechnik/Webthingify/blob/master/app/src/main/java/be/humanoids/webthingify/Phone.java
(most of the code is just glue between Android and the web thing library)
The text was updated successfully, but these errors were encountered: