Skip to content
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
Discussion options

You must be logged in to vote

try wrapping Deta() in a function, like:

def getdb(db_name):
    deta = Deta()
    return deta.Base(db_name)

mydb = getdb("your db name here")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@harshitsinghai77
Comment options

Answer selected by harshitsinghai77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants