dmcallejo / ASFBot

Control your ArchiSteamFarm with Telegram
GNU General Public License v3.0
43 stars 10 forks source link

Cann't start ASFBot #16

Closed wensley closed 1 year ago

wensley commented 1 year ago

2023-02-02 05:40:25,799 - ASFBot - INFO - Starting up bot... 2023-02-02 05:40:26,378 - ASFBot.IPCProtocol - ERROR - Error Requesting http://asf:1242/Api/ASF with parameters {} 2023-02-02 05:40:26,378 - ASFBot.IPCProtocol - ERROR - 401 Client Error: Unauthorized for url: http://asf:1242/Api/ASF Traceback (most recent call last): File "/bot/IPCProtocol/__init__.py", line 37, in get response.raise_for_status() File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: http://asf:1242/Api/ASF 2023-02-02 05:40:26,381 - ASFBot - INFO - ASF Instance replied: 401 Client Error: Unauthorized for url: http://asf:1242/Api/ASF 2023-02-02 05:40:26,381 - ASFBot - WARNING - ASF Instance message was unsuccesful. {'Success': False, 'Message': '401 Client Error: Unauthorized for url: http://asf:1242/Api/ASF'}

dmcallejo commented 1 year ago

Hello, The error suggests that you're not correctly setting the credentials to connect to ASF.

I'd need more information on your bot and ASF config to tell you more

wensley commented 1 year ago

Sorry, I forgot to add environment variables to Compose🙃:

ASF_IPC_HOST
ASF_IPC_PORT
ASF_IPC_PASSWORD

Thank you very much for your project and have a great life!