I am having trouble with a query, when I run this as a curl it works just fine, however when trying to implement this in java in the response body I simply get"
Invalid parameter(s) specified: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
When I try to access the body of the response ( I am using OKTTP3)
Here is how the query is structured. I use Java block quotes and then pass it as ‘query into’
String query = """
"collection":"Jars",
"database":"TikoJarTest",
"dataSource":"PositivityJar",
"filter": { "serverID": "ABC123" },
"projection": { "messages": 1 }
""".stripIndent();
body = RequestBody.create(query, mediaType);
Then that is passed into
// OKHTTP Stuff
.method("POST", body)
// OKHTTP STuff
Any help would be appreciated.