Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-2428

[Expo] Realm Errors are not propagated to console

      How frequently does the bug occur?

      Always

      Description

      Hey!

      I'm building an app with Expo and Realm, and one of the biggest issues I'm facing with realm is inability to understand what's going wrong in case of issues with schema, query (or anything else related to Realm), since Realm always throws the same error in console which gives no details. The error looks like that:

       ERROR  Error: Exception in HostFunction: <unknown>
      
      This error is located at:
          in Unknown (created by App)
          in Provider (created by App)
          in RCTView (created by View)
          in View (created by GestureHandlerRootView)
          in GestureHandlerRootView (created by App)
          in App (created by RootApp)
          in ReactNativeProfiler (created by RootApp)
          in RCTView (created by View)
          in View (created by __Sentry.TouchEventBoundary)
          in __Sentry.TouchEventBoundary (created by RootApp)
          in RootApp (created by withDevTools(RootApp))
          in withDevTools(RootApp)
          in RCTView (created by View)
          in View (created by AppContainer)
          in RCTView (created by View)
          in View (created by AppContainer)
          in AppContainer
          in main(RootComponent), js engine: hermes
      

      Is this something known or maybe I'm missing some configuration step to make the output cleaner? Or is there some better way to look up the detailed stack trace?

      Stacktrace & log output

      No response

      Can you reproduce the bug?

      Always

      Reproduction Steps

      No response

      Version

      11.9.0

      What services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      iOS 16

      Build environment

      Expo SDK 48

      Cocoapods version

      No response

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: