Hello Everyone,
I was facing an issue. I am using Prisma + Mongo ATLAS. While querying, I am getting an error "whoops. looks like an internal server error. search your server logs for request id: local ....".
The prisma logs are as following :
[INFO] Opened connection [connectionId{localValue:14, serverValue:52512}] to
cluster0-shard-00-01-7tnam.mongodb.net:27017
[INFO] Opened connection [connectionId{localValue:17, serverValue:52512}] to
cluster0-shard-00-01-7tnam.mongodb.net:27017
[INFO] Opened connection [connectionId{localValue:13, serverValue:52512}] to
cluster0-shard-00-01-7tnam.mongodb.net:27017
[INFO] Opened connection [connectionId{localValue:18, serverValue:52512}] to
cluster0-shard-00-01-7tnam.mongodb.net:27017
[INFO] Opened connection [connectionId{localValue:12, serverValue:47738}] to
cluster0-shard-00-01-7tnam.mongodb.net:27017
[INFO] Closed connection [connectionId{localValue:107}] to
cluster0-shard-00-01-7tnam.mongodb.net:27017 because there was a socket exception raised by this connection.
com.mongodb.MongoSocketReadException: Exception receiving message
at com.mongodb.internal.connection.InternalStreamConnection.translateReadException(InternalStreamConnection.java:543)
at com.mongodb.internal.connection.InternalStreamConnection.access$1200(InternalStreamConnection.java:74)
at com.mongodb.internal.connection.InternalStreamConnection$5.failed(InternalStreamConnection.java:500)
at com.mongodb.connection.netty.NettyStream.readAsync(NettyStream.java:232)
at com.mongodb.connection.netty.NettyStream.handleReadResponse(NettyStream.java:266)
at com.mongodb.connection.netty.NettyStream.access$600(NettyStream.java:66)
at com.mongodb.connection.netty.NettyStream$2$1.operationComplete(NettyStream.java:153)
at com.mongodb.connection.netty.NettyStream$2$1.operationComplete(NettyStream.java:150)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:507)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:481)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:420)
at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:104)
at io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:82)
at io.netty.channel.AbstractChannel$CloseFuture.setClosed(AbstractChannel.java:1148)
at io.netty.channel.AbstractChannel$AbstractUnsafe.doClose0(AbstractChannel.java:764)
at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:740)
at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:611)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.closeOnRead(AbstractNioByteChannel.java:85)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:146)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: The connection to the server was closed
... 20 more
Has anyone face a similar problem? How to go about it?
TIA.