Skip to content

iOS app crashed on request timeout (Could not cast value of type '__NSDictionary0' to 'NSString' #1422

@MaxInMoon

Description

@MaxInMoon

Error description

When a request (done with axios) times out, the iOS app crashes 💥

Xcode 16.4 log:

Instabug - REACT LOG: 2025-07-29 14:35:52.083 [info][tid:com.facebook.react.runtime.JavaScript] E0008: Error logged here in console (dev only): Error: timeout of 6000ms exceeded // variables: {"url":"MY_URL","options":{},"code":"ECONNABORTED"}

Could not cast value of type '__NSDictionary0' (0x1f340f150) to 'NSString' (0x1f34077f8).

Package.json

"axios": "^0.21.1",
"react-native": "^0.80.1",
"instabug-reactnative": "^15.0.1", // (or 14)

Code

import Instabug from 'instabug-reactnative';

Instabug.init({
  token: MY_TOKEN,
});

Expected behaviour

The app should not crash on request timeout

Note

Related to #559 ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions