Hi, i’m trying to get back the current user’s data over realtime.
Can somebody help me to understand why this function returns this error.
The user is authenticated and and administrator.
14:33:43.478 MessageDashboard.tsx:62 Received items: {type: ‘items’, status: ‘error’, error: {…}, uid: ‘5’}error: {code: ‘INVALID_COLLECTION’, message: ‘The provided collection does not exists or is not accessible.’}status: "error"type: "items"uid: “5”
function readUsers() {
client.sendMessage({
type: 'items',
collection: 'directus_users',
action: 'read',
query: {
fields: ['first_name', 'last_name', 'email'],
},
});
}