Report this

What is the reason for this report?

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.