{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-js/issues/2123","repository_url":"https://api.github.com/repos/realm/realm-js","labels_url":"https://api.github.com/repos/realm/realm-js/issues/2123/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-js/issues/2123/comments","events_url":"https://api.github.com/repos/realm/realm-js/issues/2123/events","html_url":"https://github.com/realm/realm-js/issues/2123","id":382535627,"node_id":"MDU6SXNzdWUzODI1MzU2Mjc=","number":2123,"title":"[Bugs] Unable to open a realm at path | Invalid streaming format cookie.","user":{"login":"Winglonelion","id":16574690,"node_id":"MDQ6VXNlcjE2NTc0Njkw","avatar_url":"https://avatars1.githubusercontent.com/u/16574690?v=4","gravatar_id":"","url":"https://api.github.com/users/Winglonelion","html_url":"https://github.com/Winglonelion","followers_url":"https://api.github.com/users/Winglonelion/followers","following_url":"https://api.github.com/users/Winglonelion/following{/other_user}","gists_url":"https://api.github.com/users/Winglonelion/gists{/gist_id}","starred_url":"https://api.github.com/users/Winglonelion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Winglonelion/subscriptions","organizations_url":"https://api.github.com/users/Winglonelion/orgs","repos_url":"https://api.github.com/users/Winglonelion/repos","events_url":"https://api.github.com/users/Winglonelion/events{/privacy}","received_events_url":"https://api.github.com/users/Winglonelion/received_events","type":"User","site_admin":false},"labels":[{"id":320459477,"node_id":"MDU6TGFiZWwzMjA0NTk0Nzc=","url":"https://api.github.com/repos/realm/realm-js/labels/Reproduction%20Required","name":"Reproduction Required","color":"fbca04","default":false},{"id":247475514,"node_id":"MDU6TGFiZWwyNDc0NzU1MTQ=","url":"https://api.github.com/repos/realm/realm-js/labels/T:Help","name":"T:Help","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-20T07:35:15Z","updated_at":"2018-11-23T07:08:38Z","closed_at":null,"author_association":"NONE","body":"<!---\r\n\r\nQuestions: If you have questions about HOW TO use Realm, please ask on\r\nStackOverflow: http://stackoverflow.com/questions/ask?tags=realm\r\nWe monitor the `realm` tag.\r\n\r\nFeature Request: Just fill in the first two sections below.\r\n\r\nBugs: To help you as fast as possible with an issue please describe your issue\r\nand the steps you have taken to reproduce it in as much detail as possible.\r\n\r\n-->\r\n\r\n## Goals\r\nIt is a randomly crash. Almost times, it worked nice. But some of this crash was collected by sentry and google crash report from realmjs 2.14.0.\r\n<!--- What are you trying to achieve? -->\r\n\r\n## Expected Results\r\n Realm file open by a normal way.\r\n<!--- What did you expect to happen? -->\r\n\r\n## Actual Results\r\nRealm database can not open and an Exception be throwed:\r\n```\r\ncom.facebook.react.common.JavascriptException: Unable to open a realm at path '/data/data/my.app/files/local_v1.realm': Invalid streaming format cookie (3472328566010356275)., stack:\r\nupgradeSchema@1257:159\r\n<unknown>@967:468\r\nv@2:1496\r\nd@2:949\r\no@2:435\r\n<unknown>@965:542\r\nv@2:1496\r\nd@2:949\r\no@2:435\r\n<unknown>@619:368\r\nv@2:1496\r\nd@2:949\r\no@2:435\r\n<unknown>@11:81\r\nv@2:1496\r\nd@2:879\r\no@2:435\r\nglobal code@2870:4\r\nat com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java\r\n  at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException (ExceptionsManagerModule.java:38)\r\n  at java.lang.reflect.Method.invoke (Native Method)\r\n  at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372)\r\n  at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:160)\r\n  at com.facebook.react.bridge.queue.NativeRunnable.run (Native Method)\r\n  at android.os.Handler.handleCallback (Handler.java:790)\r\n  at android.os.Handler.dispatchMessage (Handler.java:99)\r\n  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:29)\r\n  at android.os.Looper.loop (Looper.java:164)\r\n  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run (MessageQueueThreadImpl.java:192)\r\n  at java.lang.Thread.run (Thread.java:764)\r\n```\r\n<!--- What happened instead? -->\r\n<!--- e.g. the stack trace of a crash -->\r\n\r\n## Steps to Reproduce\r\nSorry, but when i tried with our devices and reproduce code. It worked fine in all times.\r\nI think it happen in some special case.\r\n<!--- What are steps we can follow to reproduce this issue? -->\r\n\r\n## Code Sample\r\n\r\n<!---\r\nPlease provide a code sample or test case that highlights the issue.\r\nIf relevant, include your model definitions.\r\nFor larger code samples, links to external gists/repositories are preferred.\r\nFull projects that we can compile and run ourselves are ideal!\r\n-->\r\n\r\n```\r\n    const currentSchema = new studifySchema().current();\r\n    const syncConfig = {\r\n      sync: {\r\n        user,\r\n        url: realmUrl(),\r\n        error: err => console.log('realm error', err),\r\n      },\r\n      path: realmDbLocation(userID),\r\n      ...currentSchema,\r\n    };\r\n\r\n   studifyDB = await Realm.open(syncConfig).progress((transferred, transferable) => {\r\n        // ... handler\r\n    });\r\n```\r\n\r\n## Version of Realm and Tooling\r\n\r\n- Realm JS SDK Version: 2.16.0-rc.2\r\n- React Native: React Native 0.57.5\r\n- Nodejs: 8.12\r\n- Client OS & Version: Mac OS Sierra 10.12.6\r\n- Which debugger for React Native: React Native Debugger\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-js/issues/comments/441167876","html_url":"https://github.com/realm/realm-js/issues/2123#issuecomment-441167876","issue_url":"https://api.github.com/repos/realm/realm-js/issues/2123","id":441167876,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTE2Nzg3Ng==","user":{"login":"bmunkholm","id":1215687,"node_id":"MDQ6VXNlcjEyMTU2ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/1215687?v=4","gravatar_id":"","url":"https://api.github.com/users/bmunkholm","html_url":"https://github.com/bmunkholm","followers_url":"https://api.github.com/users/bmunkholm/followers","following_url":"https://api.github.com/users/bmunkholm/following{/other_user}","gists_url":"https://api.github.com/users/bmunkholm/gists{/gist_id}","starred_url":"https://api.github.com/users/bmunkholm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmunkholm/subscriptions","organizations_url":"https://api.github.com/users/bmunkholm/orgs","repos_url":"https://api.github.com/users/bmunkholm/repos","events_url":"https://api.github.com/users/bmunkholm/events{/privacy}","received_events_url":"https://api.github.com/users/bmunkholm/received_events","type":"User","site_admin":false},"created_at":"2018-11-23T07:08:38Z","updated_at":"2018-11-23T07:08:38Z","author_association":"CONTRIBUTOR","body":"Thanks for the reference to realm/realm-cocoa#5974. It looks like github search across an org is quite working :-) \r\nAre you by any chance copying the realm file?"}}
{"actor":{"display_login":"bmunkholm"}}