Troubleshooting connecting to YDB from Cloud Functions function code
Written by
Updated at December 17, 2025
Issue description
When you call a Cloud Functions function after creating its new revision, the connection to YDB is no longer established.
Solution
Newer versions of the YDB SDK require you to explicitly provide an authorization token. Earlier YDB SDK versions did not have this requirement.
Add the ydb==2.13.3 line to requirements.txt, create another revision of your function, call the function again, and check whether the connection to YDB is successful.
If the issue persists
If the above actions did not help, create a support ticket
- Cloud function ID.
- Full text of the YDB connection error message from the function log.