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

ASFBot Connection not working #2

Closed
FloloKrypton opened this issue Sep 10, 2019 · 8 comments
Closed

ASFBot Connection not working #2

FloloKrypton opened this issue Sep 10, 2019 · 8 comments
Assignees

Comments

@FloloKrypton
Copy link

asfbot | 2019-09-10 22:02:39,374 - ASFBot - DEBUG - Logger initialized
asfbot | 2019-09-10 22:02:39,377 - ASFBot - INFO - Starting up bot...
asfbot | 2019-09-10 22:02:39,449 - ASFBot - CRITICAL - Couldn't communicate with ASF. Host: 'asf' Port: '1242'
asfbot | 404 Client Error: Not Found for url: http://asf:1242/Api/Command/status+ASF

@dmcallejo dmcallejo self-assigned this Sep 11, 2019
@dmcallejo
Copy link
Owner

Oops, I just realised that I haven't merged develop to master after updating the IPC protocol a while ago.
Please update your docker image docker pull dmcallejo/asfbot and recreate the container.

If this didn't fix your issue, please tell me more about your setup and ASF Version. I'm running the bot fine since I can't really remember when.

@dmcallejo
Copy link
Owner

Welp, apparently something updated on ASF this morning and broke the IPC again. Will look into it asap.

@dmcallejo
Copy link
Owner

Should be fixed now.

@FloloKrypton
Copy link
Author

asfbot | 2019-09-11 19:16:48,052 - ASFBot - INFO - Starting up bot...
asfbot | 2019-09-11 19:16:48,055 - ASFBot - CRITICAL - Couldn't communicate with ASF. Host: 'asf' Port: '1242'
asfbot | Invalid return character or leading space in header: Authentication
asfbot exited with code 1

This is the new error message i get now. I will try without ipc password if its working then.

@FloloKrypton
Copy link
Author

asfbot | 2019-09-11 19:18:59,780 - ASFBot - INFO - Starting up bot... asfbot | 2019-09-11 19:18:59,799 - ASFBot - INFO - ASF Instance replied: OK asfbot | 2019-09-11 19:18:59,878 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. T he server returned HTTP 404 Not Found. Response body:\n[b\'{"ok":false,"error_co de":404,"description":"Not Found"}\']',) asfbot | Traceback (most recent call last): asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/util.py", lin e 59, in run asfbot | task(*args, **kwargs) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 276, in __retrieve_updates asfbot | updates = self.get_updates(offset=(self.last_update_id + 1), tim eout=timeout) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 246, in get_updates asfbot | json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 180, in get_updates asfbot | return _make_request(token, method_url, params=payload) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 56, in _make_request asfbot | return _check_result(method_name, result)['result'] asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 75, in _check_result asfbot | raise ApiException(msg, method_name, result) asfbot | telebot.apihelper.ApiException: A request to the Telegram API was un successful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}'] asfbot | " asfbot | 2019-09-11 19:18:59,879 (__init__.py:417 MainThread) ERROR - TeleBot : "A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}']" asfbot | 2019-09-11 19:19:00,148 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. T he server returned HTTP 404 Not Found. Response body:\n[b\'{"ok":false,"error_co de":404,"description":"Not Found"}\']',) asfbot | Traceback (most recent call last): asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/util.py", lin e 59, in run asfbot | task(*args, **kwargs) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 276, in __retrieve_updates asfbot | updates = self.get_updates(offset=(self.last_update_id + 1), tim eout=timeout) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 246, in get_updates asfbot | json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 180, in get_updates asfbot | return _make_request(token, method_url, params=payload) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 56, in _make_request asfbot | return _check_result(method_name, result)['result'] asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 75, in _check_result asfbot | raise ApiException(msg, method_name, result) asfbot | telebot.apihelper.ApiException: A request to the Telegram API was un successful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}'] asfbot | " asfbot | 2019-09-11 19:19:00,149 (__init__.py:417 MainThread) ERROR - TeleBot : "A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}']" asfbot | 2019-09-11 19:19:00,669 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. T he server returned HTTP 404 Not Found. Response body:\n[b\'{"ok":false,"error_co de":404,"description":"Not Found"}\']',) asfbot | Traceback (most recent call last): asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/util.py", lin e 59, in run asfbot | task(*args, **kwargs) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 276, in __retrieve_updates asfbot | updates = self.get_updates(offset=(self.last_update_id + 1), tim eout=timeout) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 246, in get_updates asfbot | json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 180, in get_updates asfbot | return _make_request(token, method_url, params=payload) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 56, in _make_request asfbot | return _check_result(method_name, result)['result'] asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 75, in _check_result asfbot | raise ApiException(msg, method_name, result) asfbot | telebot.apihelper.ApiException: A request to the Telegram API was un successful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}'] asfbot | " asfbot | 2019-09-11 19:19:00,670 (__init__.py:417 MainThread) ERROR - TeleBot : "A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}']" asfbot | 2019-09-11 19:19:01,688 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. T he server returned HTTP 404 Not Found. Response body:\n[b\'{"ok":false,"error_co de":404,"description":"Not Found"}\']',) asfbot | Traceback (most recent call last): asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/util.py", lin e 59, in run asfbot | task(*args, **kwargs) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 276, in __retrieve_updates asfbot | updates = self.get_updates(offset=(self.last_update_id + 1), tim eout=timeout) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 246, in get_updates asfbot | json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 180, in get_updates asfbot | return _make_request(token, method_url, params=payload) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 56, in _make_request asfbot | return _check_result(method_name, result)['result'] asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 75, in _check_result asfbot | raise ApiException(msg, method_name, result) asfbot | telebot.apihelper.ApiException: A request to the Telegram API was un successful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}'] asfbot | " asfbot | 2019-09-11 19:19:01,688 (__init__.py:417 MainThread) ERROR - TeleBot : "A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}']" asf | 2019-09-11 19:19:03|dotnet-47|INFO|REDlUmIN|Connect() Connecting... asf | 2019-09-11 19:19:03|dotnet-47|INFO|REDlUmIN|OnConnected() Connected to Steam! asf | 2019-09-11 19:19:03|dotnet-47|INFO|REDlUmIN|OnConnected() Logging in ... asfbot | 2019-09-11 19:19:03,708 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. T he server returned HTTP 404 Not Found. Response body:\n[b\'{"ok":false,"error_co de":404,"description":"Not Found"}\']',) asfbot | Traceback (most recent call last): asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/util.py", lin e 59, in run asfbot | task(*args, **kwargs) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 276, in __retrieve_updates asfbot | updates = self.get_updates(offset=(self.last_update_id + 1), tim eout=timeout) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 246, in get_updates asfbot | json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 180, in get_updates asfbot | return _make_request(token, method_url, params=payload) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 56, in _make_request asfbot | return _check_result(method_name, result)['result'] asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 75, in _check_result asfbot | raise ApiException(msg, method_name, result) asfbot | telebot.apihelper.ApiException: A request to the Telegram API was un successful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}'] asfbot | " asfbot | 2019-09-11 19:19:03,709 (__init__.py:417 MainThread) ERROR - TeleBot : "A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}']" asf | 2019-09-11 19:19:04|dotnet-47|INFO|REDlUmIN|OnLoggedOn() Successfull y logged on as 76561198158415663. asf | 2019-09-11 19:19:04|dotnet-47|INFO|REDlUmIN|Init() Logging in to ISt eamUserAuth... asf | 2019-09-11 19:19:04|dotnet-47|INFO|REDlUmIN|IsAnythingToFarm() Check ing first badge page... asf | 2019-09-11 19:19:04|dotnet-47|INFO|REDlUmIN|Init() Success! asf | 2019-09-11 19:19:05|dotnet-47|INFO|REDlUmIN|StartFarming() We don't have anything to idle on this account! asfbot | 2019-09-11 19:19:07,728 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. T he server returned HTTP 404 Not Found. Response body:\n[b\'{"ok":false,"error_co de":404,"description":"Not Found"}\']',) asfbot | Traceback (most recent call last): asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/util.py", lin e 59, in run asfbot | task(*args, **kwargs) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 276, in __retrieve_updates asfbot | updates = self.get_updates(offset=(self.last_update_id + 1), tim eout=timeout) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 246, in get_updates asfbot | json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 180, in get_updates asfbot | return _make_request(token, method_url, params=payload) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 56, in _make_request asfbot | return _check_result(method_name, result)['result'] asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 75, in _check_result asfbot | raise ApiException(msg, method_name, result) asfbot | telebot.apihelper.ApiException: A request to the Telegram API was un successful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}'] asfbot | " asfbot | 2019-09-11 19:19:07,729 (__init__.py:417 MainThread) ERROR - TeleBot : "A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}']" asfbot | 2019-09-11 19:19:15,749 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. T he server returned HTTP 404 Not Found. Response body:\n[b\'{"ok":false,"error_co de":404,"description":"Not Found"}\']',) asfbot | Traceback (most recent call last): asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/util.py", lin e 59, in run asfbot | task(*args, **kwargs) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 276, in __retrieve_updates asfbot | updates = self.get_updates(offset=(self.last_update_id + 1), tim eout=timeout) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 246, in get_updates asfbot | json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 180, in get_updates asfbot | return _make_request(token, method_url, params=payload) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 56, in _make_request asfbot | return _check_result(method_name, result)['result'] asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py" , line 75, in _check_result asfbot | raise ApiException(msg, method_name, result) asfbot | telebot.apihelper.ApiException: A request to the Telegram API was un successful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}'] asfbot | " asfbot | 2019-09-11 19:19:15,749 (__init__.py:417 MainThread) ERROR - TeleBot : "A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}']" asfbot | 2019-09-11 19:19:31,785 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body:\n[b\'{"ok":false,"error_code":404,"description":"Not Found"}\']',) asfbot | Traceback (most recent call last): asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/util.py", line 59, in run asfbot | task(*args, **kwargs) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 276, in __retrieve_updates asfbot | updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 246, in get_updates asfbot | json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py", line 180, in get_updates asfbot | return _make_request(token, method_url, params=payload) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py", line 56, in _make_request asfbot | return _check_result(method_name, result)['result'] asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py", line 75, in _check_result asfbot | raise ApiException(msg, method_name, result) asfbot | telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}'] asfbot | " asfbot | 2019-09-11 19:19:31,785 (__init__.py:417 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}']" asfbot | 2019-09-11 19:20:03,809 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body:\n[b\'{"ok":false,"error_code":404,"description":"Not Found"}\']',) asfbot | Traceback (most recent call last): asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/util.py", line 59, in run asfbot | task(*args, **kwargs) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 276, in __retrieve_updates asfbot | updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/__init__.py", line 246, in get_updates asfbot | json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py", line 180, in get_updates asfbot | return _make_request(token, method_url, params=payload) asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py", line 56, in _make_request asfbot | return _check_result(method_name, result)['result'] asfbot | File "/usr/local/lib/python3.6/site-packages/telebot/apihelper.py", line 75, in _check_result asfbot | raise ApiException(msg, method_name, result) asfbot | telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}'] asfbot | " asfbot | 2019-09-11 19:20:03,810 (__init__.py:417 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. The server returned HTTP 404 Not Found. Response body: asfbot | [b'{"ok":false,"error_code":404,"description":"Not Found"}']"

Once i use no password it connects. But not working:(

Anyways its a really great project. Lets hope you get it working again. Would like to use it

@dmcallejo
Copy link
Owner

dmcallejo commented Sep 11, 2019

Hello there, I will look into the Authentication thing. I don't use it so it sometimes come untested.

About that last error, check your bot token. I think maybe you have put a blank space at the beginning of it or something and that's why it doesn't found the method in the bot api.

Edit.: Actually the Authentication error is the same: you're adding a space at the beginning of the password.

@FloloKrypton
Copy link
Author

Thank you really much. It`s working now.

@dmcallejo
Copy link
Owner

You're welcome!

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

2 participants