New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access reference realms #47

Closed
LucidComplex opened this Issue May 21, 2018 · 5 comments

Comments

Projects
None yet
4 participants
@LucidComplex
Copy link

LucidComplex commented May 21, 2018

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.

@LucidComplex

This comment has been minimized.

Copy link
Author

LucidComplex commented May 28, 2018

Follow up

@Dids

This comment has been minimized.

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?

@LucidComplex

This comment has been minimized.

Copy link
Author

LucidComplex commented May 28, 2018

@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

This comment has been minimized.

Copy link
Member

nirinchev commented May 29, 2018

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

This comment has been minimized.

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 Aug 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment