Remix App can't query DB

I just deployed a Remix app using Fly.io. Upon opening the app a prisma findMany() operation is made but it’s failing. The Fly logs contain this message. Would appreciate help with this as its been bugging me for days

Raw query failed. Code: `unknown`. Message: `Server selection timeout: No available servers. Topology: { Type: ReplicaSetNoPrimary, Servers: [ { Address: ac-zcjp5z2-shard-00-00.ys7upsi.mongodb.net:27017, Type: Unknown, Error: unexpected end of file }, { Address: ac-zcjp5z2-shard-00-01.ys7upsi.mongodb.net:27017, Type: Unknown, Error: unexpected end of file }, { Address: ac-zcjp5z2-shard-00-02.ys7upsi.mongodb.net:27017, Type: Unknown, Error: unexpected end of file }, ] }`