Skip to content

android connect error when RNFetchBlob.fetch url includes localhost or 127.0.0.1 #704

@liushmh

Description

@liushmh
const url= `http://127.0.0.1:3000/api/info`
await RNFetchBlob.fetch('GET', url, {});

when running it on IOS virtual device, it works fine,
running it on Android virtual device,
if set url with http://127.0.0.1:3000/api/info , get an error: Failed to connect to /127.0.0.1:3000
if set url with http://localhost:3000/api/info , get an error: Failed to connect to localhost/127.0.0.1:3000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions