This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Multiple Requests raise http.client.CannotSendRequest
Error
#270
Answered
by
abdelhai
harshitsinghai77
asked this question in
Help
-
When multiple requests are made to different API routes which internally make request to |
Beta Was this translation helpful? Give feedback.
Answered by
abdelhai
Jun 13, 2022
Replies: 1 comment 1 reply
-
try wrapping def getdb(db_name):
deta = Deta()
return deta.Base(db_name)
mydb = getdb("your db name here") |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
harshitsinghai77
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try wrapping
Deta()
in a function, like: