Mongoose returns 502

Hiya @martini.daniels and welcome to our community!

Are you sure your site is a Jamstack site? Sounds like you are expecting a very different kind of web hosting than we provide - check out this site for some more details on our hosting philosophy:

I think you may be using a function to do this, which may work on our service, but just needed to clarify that our non-function hosting wouldn’t run code for you at browse time.

If I’m correct, could you tell me the x-nf-request-id from a 502’ing request so I can look into it in our internal logs? Sounds like you might be trying to run for more than 10 seconds which will not work by default, but I’ll be able to tell for sure with this detail: