Skip to content

Warning: Possible Unhandled Promise Rejection (id: 0) #378

Open
@arstropica

Description

@arstropica

Current Behavior

I get this warning after every pingInterval call.

Possible Unhandled Promise Rejection (id: 0):
    SyntaxError: Unexpected end of JSON input
    SyntaxError: Unexpected end of JSON input

The plugin works perfectly otherwise, and I have confirmed that my networkSaga and network reducer are configured correctly. (I can see the network state from Redux's @@INIT action onward. I have also tried using my own private ping server with no difference.

FYI - I didn't set up the network middleware as I am not looking to preserve the state when a user goes offline. Instead, I have another saga that tracks offlineActionTypes.CONNECTION_CHANGE and navigates to my offline screen if the payload changes to false, or back to my main screen if it changes to true.

software version
react-native-offline 6.0.2
react-native 0.63.2
node 14.19.1
npm or yarn yarn (1.22.19)

Any help would be greatly appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions