I can’t find any good documentation regarding this database used in serverless functions. Weird is it’s working on my machine but not when deployed to the app platform with trusted sources enabled.
{
"code": "9ab9ec620363086821768167675c3182",
"error": "There was an error processing your request."
}
This is my project repository: https://github.com/csulit/mth_serverless_scraper
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
Just came across this question.
It should be possible to use PostgreSQL and MongoDB drivers in serverless functions. If you have trusted sources enabled, try disabling it quickly, just as a test to see if it is a network issue.
Also, some drivers don’t play well in the serverless environment due to cold starts or missing native dependencies. If it works locally but not on App Platform, it’s likely a networking or environment variable issue.
If anyone hits this in the future, might be worth reaching out to support or testing with trusted sources temporarily disabled to debug further: https://do.co/support
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.