Sudden strange "WD_VALIDATION_ERROR" when calling wix-data services (only for certain users)

I had a production system which was working without any issues. Suddenly Some users get the following error when trying to call the backend (or data) services.

Error: {“message”:“missing_context, details: {"fields":"MSID / (appDefId, instanceId)","apps":"null","entities":"{\"context\":{\"appDefId\":\"eb377299-86b4-4a86-a1b5-774a2d1d374b\"},\"identities\":[{\"service\":{\"appDefId\":\"eb377299-86b4-4a86-a1b5-774a2d1d374b\"}}]}"}”,“details”:{“entities”:“{"context":{"appDefId":"eb377299-86b4-4a86-a1b5-774a2d1d374b"},"identities":[{"service":{"appDefId":"eb377299-86b4-4a86-a1b5-774a2d1d374b"}}]}”,“error”:“missing_context”,“fields”:“MSID / (appDefId, instanceId)”,“category”:“api_error”,“apps”:“null”}}

I have tried deleting the affected users and signing up again, but error persists for those users. But there are other users who are not affected from this error. I tried all I can think of, but seems I’m lost now.

To clarify further, here is how the error appears. “LoadInstitutesFromServer()” is a server code that returns a list from a query. I even tried replacing the server function with a client-side query. Still I get the same error.

The problem was that the query I was executing had an “include()” of “PrivateMemberData” collection. PrivateMemberData has strict permission not allowing Members to read it’s data. The solution was to overwrite permission through Query Options as below:

find({ suppressAuth: true })

Hi @hasith and @hasith42731 ,

I have been having the same issue over the last week. Can you please show your code to see how we all can solve this problem? My code looks like this and even with the options feature my code still gives the same error message. Here is my code:

$w.onReady( function () {

let options = {
“suppressAuth”: true ,
“suppressHooks”: true
};

wixData.query(“Members/PrivateMembersData”)
.eq(“_id”, wixUsers.currentUser.id)
.find(options)
.then( (results) => {…}

})//end

do not insert _id field.