Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Cannot access reference realms #47

Closed
eliedrian opened this issue May 21, 2018 · 7 comments
Closed

Cannot access reference realms #47

eliedrian opened this issue May 21, 2018 · 7 comments

Comments

@eliedrian
Copy link

GraphQL can't access reference realms. This error appears when you attempt to access realm via realm-graphql-client

{"type":"https://realm.io/docs/object-server/problems/invalid-realm-type","title":"The type of the Realm file was invalid.","status":400,"code":619}

Tried setting the realm's permissions to allow the user accessing it, but the same error appears. For now, our workaround is to set the user as an Administrator, which allows access.

Thing to note, I've tried opening full realms, they work. On upgrading them to reference realms, they stop working.

@eliedrian
Copy link
Author

Follow up

@Dids
Copy link

Dids commented May 28, 2018

Also seeing this, but even if I try to access the GraphQL API of a reference realm with an admin user, I still can't seem to query anything:

Invalid options provided to ApolloServer: Query fields must be an object with field names as keys or a function which returns such an object.

@LucidComplex From the sounds of it, you can still query after authenticating as an admin?

@eliedrian
Copy link
Author

@Dids Yes, I can still query when using an admin user.

I can't access with a regular user, even if the reference realm was created by the same user.

@nirinchev
Copy link
Member

Reference realms are indeed accessible only by admin users. We are going to lift this limitation in a future version, but for now you'll need to deploy an intermediary service that reads data as an admin and serves it to non-admins.

@astigsen
Copy link
Contributor

astigsen commented Aug 1, 2018

Closing this for now as it relates to an outdated version of ROS and the question was answered. Please reopen if the problem resurfaces.

@astigsen astigsen closed this as completed Aug 1, 2018
@Dids
Copy link

Dids commented Apr 1, 2019

@nirinchev Is this still an issue with the latest Realm GraphQL client and Realm Cloud?

@nirinchev
Copy link
Member

No, this has been resolved, but you need to make sure to connect using query-based sync.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants