-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
TypeError: string indices must be integers, not 'str' #145
Comments
Does your Telegram token exists out of two parts that are connected with an |
my telegram token has 10 numbers : and then a string chars (numbers, capital letters, small letters and special chars) one underscore in my case. |
I've tried changing the form of the Telegram token in my config.yaml and Addarr starts without problem. So I guess it has nothing to do with the fact that your token exists out of 10 numbers. I've also looked into your config-file and doesn't see any problems on the first sight. To be honest I've also never experienced your error message before |
hummm ok i'll start from new vm, i'm using windows 11 virtual machine btw. |
thank you very much :) |
Hello and on the console i've got the folling error: c:\Addarr\src>python addarr.py 2023-11-24 05:15:10,239 - addarr.commons - WARNING - Generate of APIQUERY failed: string indices must be integers, not 'str'. Any tips? |
I also noticed that it doesn't add anything to sonarr/radarr returns an error when adding all seasons:
It would be nice to add an example to read.me how to correctly and what exactly to write in the config.yml.
|
Hello
This my 1st time using telegram bots and python... so take it easy on the noob please :)
After much trial and error i've finnally hit a wall that a ican't pass.
As long as python was complaining about the config.yaml file i was able to see where the problem was, but this case i have no idea...
C:\Addarr\src>python addarr.py
Traceback (most recent call last):
File "C:\Addarr\src\addarr.py", line 19, in
import delete as delete
File "C:\Addarr\src\delete.py", line 11, in
from addarr import getService, clearUserData, stop
File "C:\Addarr\src\addarr.py", line 35, in
application = Application.builder().token(config["telegram"]["token"]).build()
~~~~~~~~~~~~~~~~~~^^^^^^^^^
TypeError: string indices must be integers, not 'str'
config-copy.txt
what did i did wrong?
thank you in advance for your help.
The text was updated successfully, but these errors were encountered: