realm / realm-graphql-service

GraphQL service for Realm Object Server
https://realm.io
Apache License 2.0
43 stars 10 forks source link

GraphQL Error #63

Closed howdyhyber closed 6 years ago

howdyhyber commented 6 years ago

Good morning!

We tried accessing two different realm paths using graphql/explore. The 1st realm path can successfully query classes, the second realm path displayed "Invalid options provided to ApolloServer: Cannot access realm that has been closed." . Our current way is to restart the server. Is there better way of resolving this scenario?

nirinchev commented 6 years ago

Are you able to reproduce that? This is a duplicate of https://github.com/realm/realm-graphql-service/issues/39 but we haven't been able to reproduce this behavior making it super hard to reliably fix.

howdyhyber commented 6 years ago

@nirinchev its a different scenario, the realm is not closed because i can still query the other realm path.

nirinchev commented 6 years ago

Each Realm path corresponds to a single Realm, whose lifecycle is managed individually. So I'm fairly certain it's the same case - for some reason one of your Realms got into an inconsistent state where a component believes its cached instance is valid and attempts to use it but in reality it is not and I'm super interested in reproducing and fixing that.

astigsen commented 6 years ago

Closing this for now as it relates to an outdated version of ROS and there has been no feedback from the user for over a month. Please reopen if it resurfaces.