Hello,
I have been trying for days to write a simple proof of concept web api that writes 5 entries into a mongodb. The application is written in .net 3.1, it is the default weather sample that gets generated when a new web api is created. I have altered the api to write the weather samples to a collection, it is built inside of a docker container that has been pushed and setup as a service in Google Cloud Run. On my local instance the docker container works perfectly, writes the 5 entries into my local mongodb. However, the cloud run service errors out stating it is getting a ```
2022-07-07 15:24:49.688 MST —> System.IO.EndOfStreamException: Attempted to read past the end of the stream.
Default
Every single time. I was using the free cluster, but was unable to see the mongodb logs so I purchased the paid version. According to the log files, right after authentication, it says “Interrupted operation as its client disconnected”. I am using the latest Mongo Db.driver (2.16.1). For a more detailed description and to see the log files entries please go to https://stackoverflow.com/questions/72905203/cannot-connect-to-mongodb-atlas-from-google-cloud-run-docker-container on Stack overflow. At this point I do not know where to concentrate my efforts, (is it on the Cloud Run side or Mongodb side?), any help would be greatly appreciated.
R