Share via

Cosmos 500: Object reference not set to an instance of an object

Charlie LaMothe 26 Reputation points
2021-05-15T01:14:08.687+00:00

A cosmos query results in the following error.

com.mongodb.MongoQueryException: Query failed with error code 1 and error message '[ActivityId=b00ed574-9fa8-4c64-bda4-51bcce5a1a53] Error=1, Details='Response status code does not indicate success: InternalServerError (500); Substatus: 0; ActivityId: 00000000-0000-0000-0000-000000000000; Reason: (Object reference not set to an instance of an object.);' on server badgr-pro-stg-azure-cosmosdb-southcentralus.mongo.cosmos.azure.com:10255

This appears to be a null pointer exception within Cosmos internals. Are there any known causes, that we could be triggering by our query, or troubleshooting suggestions? This query is known to work against Mongo.

Azure Cosmos DB
Azure Cosmos DB

An Azure NoSQL database service for app development.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.