Questions tagged [replit-database]
20 questions
2
votes
0 answers
How can I store two values for one key with Replit Database
I'm using CoingGecko API for acquiring info about crypto. I have a function for getting a json from the API of crypto currencies. Then I upload the id of crypto and its current price to a Replit database (id becomes the key and the current price a…

Lukas Juskevicius
- 166
- 12
1
vote
1 answer
Replit DB is not loading data into variables
i'm using replits database but when i try to load it in it returns an error
any ideas?
cookie = db[name]
cookiepc = db[name + "cookiepc"]
increase = db[name + "increase"]
the error is
Traceback (most recent call last):
File "main.py", line 25, in…

JacobStr
- 11
- 2
0
votes
0 answers
Any way to get the text value of a key that's stored in the database? (replit node.js)
I kept trying to find a solution but couldn't find it anywhere, I'm using this for my discord bot and I want it to send the text value of a stored key in the database as a text message to discord.
How do I do this??
I tried things such as…

DarkBlox
- 1
0
votes
1 answer
how to initialize @replit/database out side of node.js
here is my file:
const express = require('express');
const path = require('path');
const app = express();
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'Basic-signupsignin-setup', '../pages',…

Louis Goldean
- 1
- 1
0
votes
0 answers
Nodejs Replit createClient() function error
New to coding, learning python with Replit and building a personal project. I'm running into an error running this app (index.html, main.js, and style.css are the files) through the Replit command line using node main.js.
The error is
const db =…

MA1
- 33
- 6
0
votes
0 answers
Why am I getting a "cannot set property of undefined" when writing to an array generated by a replit.db call?
This was marked duplicate for some reason. I didn't even know what the thing in the other post was called.
So, my problem is that this replitdb call below (not sure if thats what it's called) somehow sets the users array to…

TheComputerWizard
- 150
- 1
- 12
0
votes
0 answers
Replit node.js http server fails to interact with replit db
I want to create the api for my application in replit and then move it to a host and because this is just a prototype, i really dont care about security so please give me the answer and dont say ThIs iS sO InSEcuRe
So im working on an application…

AmirparsaDD
- 13
- 6
0
votes
0 answers
How do I import the database from Replit with "Import" in javascript?
Id like to use import to import the database. Is this possible?
import Database from "@replit/database"
This doesn't work
I tried that without "@" and with other variations, but with no success

Venixi
- 1
0
votes
1 answer
discord.ext.commands.bot Ignoring exception in command note
I am trying to make a discord bot in python with a note command where te user can make a note. The note gets saved using the database from replit.
Imports, commands, prefix ect, ect (Prefix = !)
@bot.command()
async def note(ctx, *, note_add):
…
0
votes
1 answer
@replit/database db.get returning [object Object] on json
I'm trying to use @replit/database for my backend, couldn't get it to display anything other than [object Object]
This is the code that I have
const Database = require("@replit/database")
const db = new Database()
app.get("/click", (req, res) => {
…

thisistrueuser
- 1
- 1
0
votes
0 answers
How to use exclamation in HTML using replit
How to use "!" option in replit like we use it in VS code?
If we type ! in VS code it will autofill the program like in the provided image but i can see that option in replit and i can't fill it
0
votes
1 answer
Import sklearn doesn’t exist on my replit
For some odd reason when I do “import sklearn” it says ModuleNotFound or something like that. Can anyone please help?
I tried going online and using bash to fix it but still didn’t work.

Anon
- 11
- 2
0
votes
0 answers
The webview in replit says "Server IP address couldn't be found" solution?
All of my forked replits and the ones that I had created have the same "Server IP address couldn't be found" problem. Help me through it please
I tried forking new repls and creating new ones but nothing works.
0
votes
2 answers
How do you get more storage in the Replit Database (@replit/database)?
I am distributing a product based on Replit and it’s already out of storage. I’ve seen that the Replit hacker plan can add more local storage, but I can’t find anything regarding the database. Is there any way to get more storage?

Odiend1
- 1
0
votes
0 answers
Why am I not able to put an object into a list?
I'm using replit for my programming here, and am trying to put an object into a list. When I try and make a new game to update my data to the default data, it tells me ValueError: Circular reference detected., and I am not entirely sure what this…

TextBasedYoutube
- 21
- 1
- 6