Skip to content
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

Unhandled Promise Rejection: Ot: Native Client is not available, can't start on native. #847

Open
j-jalving opened this issue Feb 26, 2025 · 0 comments

Comments

@j-jalving
Copy link

j-jalving commented Feb 26, 2025

Environment

@sentry/capacitor@1.2.0
@capacitor/app@7.0.0
nuxt@3.13.2
vue@3.5.13

Issue

When running my Capacitor app on iOS no errors are sent to Sentry and the following error is shown in the debug console Unhandled Promise Rejection: Ot: Native Client is not available, can't start on native. Error logging on web works fine.

This is where I initialize Sentry.

import * as Sentry from "@sentry/capacitor";
import * as SentryVue from "@sentry/vue";

export default defineNuxtPlugin((nuxtApp) => {
  const { sentry } = useRuntimeConfig().public;

  Sentry.init(
    {
      app: nuxtApp.vueApp,
      dsn: sentry.dsn,

      integrations: [],
      tracesSampleRate: 1.0,
      tracePropagationTargets: [
        "localhost",
      ],
      replaysSessionSampleRate: 0.1,
      replaysOnErrorSampleRate: 1.0,
    },

    SentryVue.init
  );
});

Currently I've set enableNative to false to disable the native error logging completely. This way I get my normal JS errors in Sentry, but I would like to have native error logging as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Discussion
Development

No branches or pull requests

1 participant