Closed ishche closed 6 years ago
Hello!
Your stacktrace not so readable. But you can see that it isn't library's issue:
at ...next
at java.net.HttpURLConnection.getResponseCode(java.base@9-internal/HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(java.base@9-internal/HttpsURLConnectionImpl.java:319)
at com.petersamokhin.bots.sdk.utils.web.Connection.getRequestResponse(Connection.java:38)
at ...previous
These lines say that exception is thrown when library tried to get response code.
There are no dependencies for network jobs and only pure HttpUrlConnection
used in this library.
I think it VK's issues and you need to manually handle such possible issues. From personal experience I can say that requests to VK's longpoll servers are responding with 504, 502 etc. error codes very often and you simply need to repeat the request.
Sorry, but library has no maintenance for a long time and now I can't help you. But you can make pull request if you want and make any improvements that you want.
Closed due to inactivity.
Hello! I tried to use your SDK on Ubuntu 16.04. Sometimes they stop receiving messages. I tried with Java 8 and Java 9:
jstack
prints this stacktrace: