My question is regarding the MBSMongoDB plugin…
I’m venturing into the MongoDB universe for a new project, all hosted on DigitalOcean. However, I’m not having any luck getting it to work in a web app hosted on that Debian host.
I’m using the MBSMongoDB plugin to connect and interact.
On DigitalOcean, I’m currently using:
- Droplet: Debian 11
- Managed Database (MongoDB)
I don’t think it’s a “Xojo”-issue itself, because my app does load and display in the browser. I have a textfield and button that should add a new record to my hosted MongoDB…
Problem:
On my local Mac (M1, Ventura), when I run the app in the browser locally, it works and actually does add a record to my hosted DB.
But, when doing the same thing with the same app on my hosted Debian 11 server, everything displays (so I’m able to push the “go” button), but no record is ever added.
I know this is probably due to some Linux setting I’m missing, but had a question regarding the MBSMongoDB plugin…
Question 1:
If anyone here knows - Do I need to also install the MongoDB package onto my Debian server for the MBSMongoDB plugin to successfully work - Or does it contain a whole bundled library, which negates the need to install the actual MongoDB package separately?
On the MongoDB site, it looks like “mongosh” is used with current versions, which I’m not sure if the MBS plugin is using to send the requests/commands/etc.?
Question 2:
When clicking on the button when it’s hosted, in the web inspector I do get an error that says:
jquery-3.5.1.min.js:2
POST https://EXAMPLE.com/36AE389CFF37F982B96A811A02620B06C7A625BFECBDCA1255FA687CCB1CE784/comm/event/xrA3ZG.Pressed 404 (NOT FOUND)
So, the request appears to not go anywhere. However, I’m not sure where it’s trying to point to. I can’t seem to find the right parameter to query in the MBS plugin to see what happened.
If any other details would help, please let me know. Again, this is regarding a web app using MongoDB, through the MBS plugins.
Thank you very much in advance for any info or help.