https://forums.realm.io/t/permission-denied-when-using-asyncopenwithconfiguration/780/9
Access a realm that was made readonly to everyone through the "*" wildcard
Should be able to access the readonly realm when logged in with any user without throwing an error
2017-12-13 22:02:59.282599-0500 ALPSRealmDemo[541:84570] Sync: Connection[1]: Received: ERROR(error_code=206, message_size=33, try_again=0, session_ident=1)
2017-12-13 22:02:59.283055-0500 ALPSRealmDemo[541:84570] Sync: Connection[1]: Connection closed due to error reported by server: Permission denied (BIND, REFRESH) (206)
run the xcode projects
https://github.com/yodellabs/RealmBug-objc
Realm framework version: ? 3.0.2
Realm Object Server version: ? 2.2.0
Xcode version: 9.2
iOS/OSX version: ? iOS 11.2.1
Dependency manager + version: cocoa pods 1.2.1
It looks like this issue is the same or very similar to issue #4485.
https://github.com/realm/realm-cocoa/issues/4485
I have a repository here that demonstrates the issue.
I've not had an opportunity to look at your sample project, but if you're seeing a permission denied error in response to an "upload" message when opening a read-only Realm using +asyncOpenWithConfiguration:callbackQueue:callback:, two possibilities come to mind:
If neither of these solve your problem, let me know and I'll see if I can reproduce what you're seeing.
Closing this issue due to no response. Feel free to reopen if additional information can be provided.
I just wasted many hours on this. In my case I definitely think there is a schema mismatch. Wouldn't it be a good thing if this was included in the error message? I mean, you get permission denied because of that you are trying to modify the schema. It would be great if this was mentioned in the logs.
Agree with @sipersso , one full day to discover finally that "Permission denied (BIND, REFRESH)" was due to a simple property added on device schema, which to effect to try writing on a read only permission realm. Without this issue, I was unable to find real cause !
Please add this in documentation if not implemented.
Thanks !
Most helpful comment
Agree with @sipersso , one full day to discover finally that "Permission denied (BIND, REFRESH)" was due to a simple property added on device schema, which to effect to try writing on a read only permission realm. Without this issue, I was unable to find real cause !
Please add this in documentation if not implemented.
Thanks !