Is there a roblox-ts package for this wrapper?
Not at the moment, sorry!
Iโll look into potentially making one.
Does this support self-hosted mongodb connections? Iโm currently using MongoDB for a discord bot, and was wondering if this library supports self hosted MongoDB connections.
For the moment it only supports the MongoDB Data API so youโll need to create your own API and edit the source for Rongo for it do work with self-hosted instances.
[FIXED]:
Solution: In your Data API, copy the URL, and replace the 1 within the Module
Hello, Me and a couple others weโre looking for an External DataStore Service and we decided to use MongoDB, after tinkering for a while I figured out how it worked, except this was all with-in Studio, weโve been trying to move Data to a different place except when you play the Client version of the game it keeps giving a โHTTP 404 (Not Found)โ error, and I have changed the โbetaโ Variable, but it only seems to work in Studio. Any ideas?
Image: (Client)
Image: (Studio)
Yeah it happened to me too. I think itโs a bug
Iโm currently having an issue where itโs returning nil for my collection.
Thatโs the code, but when I do
print(Collection)
it returns a table so it must have found my collection and when I do print(Collection) I get no errors. There is also stuff in that Collection so Iโm unsure what Iโm doing wrong.
It worked at first but now itโs not working?? Http requests and the enable api services is on.
For starters, spamming replies doesnโt help.
Second, have you even tried debugging? You donโt even show your code or anything. How can anyone help you?
Is this occurring in game or in studio?
In-game, in studio it works most of the time.
Whatโs weird is Iโm having a similar issue. In roblox studio it works fine, but in an actual roblox server it just returns Request Failed: HTTP 404 (Not Found)
Make sure that you allow access from all IPs for your Data API, may fix it! @TheFastest10001 @weakslayer3000
I added 0.0.0.0/0 in my network access, but itโs still giving me this error.
Could Roblox or MongoDB done something that blocks access?
Hmm, may be something on Robloxโs end; Iโll have a look into it.
How does this work? I tried using FindOne
method but it returns nil always.
my json table is structured like this
{
"playername":{
"coins": 00
}
}
I came across a 404 error, and here is how to fix it!
So first make sure your Api id and key are filled in correctly. If it still gives you a 404 error, do the following steps.
- Go to mongodbโs data API section.
- Copy the URL endpoint (fully)
- Go into the Rongo module
What youโll see in the first few lines:
local APIVersion = "v1"
local URI = "https://data.mongodb-api.com/app/%s/endpoint/data/".. APIVersion
Now change URI to what you coppied, lets say my ID = โdata_abcdefโ
local APIVersion = "v1"
local URI = "https://eu-central-1.aws.data.mongodb-api.com/app/data_abcdef/endpoint/data/v1"
now the final step is to change your ID to โ%sโ and remove the version from the URI to keep stuff organized.
local APIVersion = "v1"
local URI = "https://eu-central-1.aws.data.mongodb-api.com/app/%s/endpoint/data/".. APIVersion
Hope this helps you @weakslayer3000 and all the others who will read this
I also keep getting the 404 error and unfortunately the above method didnโt work for me. It was the exact same link that was already there.
For me itโs not working in studio either so it may be I did something wrong but I keep double checking and it looks right.
uh guess i figured it out
i just replaced %s with the actual part of the link and it worked