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
Timed out while calling get_updates() #20
Comments
This is the error that I'm getting while trying to start the bot |
This error means that the database engine did not found the required tables. |
No. I didn't know about that. Could you tell me where is it placed? |
Whoops, just noticed a typo in the readme, will fix as soon as I get to a computer. |
OK, I did it, but now get this one: greed-bot is now starting! The above exception was the direct cause of the following exception: Traceback (most recent call last): ^CTraceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Now i did changes to config.ini file and make url of sqlite like this: |
Bot works, But still getting errors in server side: Timed out while calling get_updates(), retrying in 1 secs... During handling of the above exception, another exception occurred: Traceback (most recent call last): Is it normal? |
It depends. Either way, it's not a problem on your end but on the Telegram side. |
Got it. Another problem I'm getting if I use my modified strings.py file with Russian keywords, after command In server side getting this errors: Network error while calling send_message(), retrying in 5 secs... |
That's... unusual. |
updated comment |
I'm wondering what those Network Errors are. |
Try to update to c2bed58 and run the bot without the -OO command line option (debug mode).
|
Well, I did as you said. After I ran bot with cyrillic strings, I got this errors:
And also, when I run bot, it reacts only one time to command |
You have to replace |
YES! IT WORKS! |
Thanks! If you want, let me know how the bot works, how do you want to use it and if you encounter any more bugs, so I can fix them! 😄 I'm closing this issue, since your problem was solved 🙂 |
$ sudo python3 -OO core.py
greed-bot is now starting!
Timed out while calling get_updates(), retrying in 1 secs...
Exception in thread Worker 411164928:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context
context)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/default.py", line 509, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: no such table: users
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/ubuntu/tlgrm_shop/worker.py", line 64, in run
self.user = self.session.query(db.User).filter(db.User.user_id == self.chat.id).one_or_none()
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/orm/query.py", line 2917, in one_or_none
ret = list(self)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/orm/query.py", line 2988, in iter
return self._execute_and_instances(context)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/orm/query.py", line 3011, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 948, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/sql/elements.py", line 269, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 1060, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context
context)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception
exc_info
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/util/compat.py", line 248, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context
context)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/default.py", line 509, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: users [SQL: 'SELECT users.user_id AS users_user_id, users.first_name AS users_first_name, users.last_name AS users_last_name, users.username AS users_username, users.credit AS users_credit \nFROM users \nWHERE users.user_id = ?'] [parameters: (411164928,)] (Background on this error at: http://sqlalche.me/e/e3q8)
Timed out while calling get_updates(), retrying in 1 secs...
Timed out while calling get_updates(), retrying in 1 secs...
The text was updated successfully, but these errors were encountered: