Skip to content

NoSuchKeyException: initialResourceThreshold #847

Description

@cvincentcoleman

Stack trace

Stack Trace in LogCat

Exception in native call
com.facebook.react.bridge.NoSuchKeyException: initialResourceThreshold
at com.facebook.react.bridge.ReadableNativeMap.getValue(ReadableNativeMap.kt:72)
at com.facebook.react.bridge.ReadableNativeMap.getDouble(ReadableNativeMap.kt:197)
at com.datadog.reactnative.DdSdkConfigurationExtKt.asDdSdkConfiguration(DdSdkConfigurationExt.kt:52)
at com.datadog.reactnative.DdSdkImplementation.initialize(DdSdkImplementation.kt:39)
at com.datadog.reactnative.DdSdk.initialize(DdSdk.kt:50)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:146)
at com.facebook.jni.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl.lambda$startNewBackgroundThread$2(MessageQueueThreadImpl.java:217)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)

Reproduction steps

This happens on initialization of the DatadogProvider

Volume

100%

Affected SDK versions

2.6.5

Latest working SDK version

2.4.4

Does the crash manifest in the latest SDK version?

Yes

React Native Version

0.77.1

Package.json Contents

No response

iOS Setup

No response

Android Setup

No response

Device Information

No response

Other relevant information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions