Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Failed to register bot due to error Error removing old webhook #3

Open
MherMg opened this issue Jun 2, 2019 · 2 comments
Open

Failed to register bot due to error Error removing old webhook #3

MherMg opened this issue Jun 2, 2019 · 2 comments

Comments

@MherMg
Copy link

MherMg commented Jun 2, 2019

Hi @xabgesagtx
I get this error.

(Failed to register bot due to error Error remov ing old webhook

I/O exception (java.net.SocketException) caught when processing request to {s}->https://api.telegram.org:443: Connection reset
)
From what can this error be?

locally everything works!
but the server gives this error
I have a server in Yandex Cloud

@xabgesagtx
Copy link
Owner

Sorry, I totally forgot to answer you. Is your problem still existing?

@artemoons
Copy link

artemoons commented Apr 2, 2020

Sorry, I totally forgot to answer you. Is your problem still existing?

I had this error too while trying to enable proxy for bot, but now I have another error, can you help, please?

So, I set up proxy type, host, port (application.yml), made default constructor and initialized DefaultBotOptions. In debug I see that this context has proxyType, proxyHost and proxyPort properties set like I wanted. But when I start application, it either can't connect to SOCKS5 proxy with this error "I/O exception (java.net.SocketException) caught when processing request to {s}->https://api.telegram.org:443: Malformed reply from SOCKS server" or if I try another proxy it just hangs and then I get error by connection timeout. If I ping this proxy in cmd, it responds.

So, can you help me please enable proxy connection for bot?

UPD: i tried other socks5 proxies and I found that my code is working actually, but I can't connect to proxy on 1080 port, looking for solution now. Example proxy that's not working: 46.4.96.137:1080

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants