replit-py icon indicating copy to clipboard operation
replit-py copied to clipboard

Using replit database on a different account doesnt work

Open de-contained opened this issue 3 years ago • 1 comments

I am trying to make an email verification system (which works) on a different account, but I cant hide the email and password without being interrupted by this error.

TypeError: 'NoneType' object is not subscriptable

The code I am using, and tried.

Replit.DB

replit.db['email'] = ""
replit.db['password'] = ""

OS

email    = os.environ['EMAIL']
password = os.environ['PASSWORD']

de-contained avatar Mar 18 '22 03:03 de-contained

Please add more information, since it's vague where the error is coming from. Do you have a repl or a code snippet to share?

techpixel avatar Apr 06 '22 01:04 techpixel

this has happened to me when REPLIT_DB_URL isn't set - when you're using the repl without logging in, but I don't know why using a different account wouldn't work

Yes, replit_db does not work if you are not logged in. You could try using repl auth or identity to verify that a user is logged on.

techpixel avatar Aug 18 '22 20:08 techpixel