Skip to content

await dispatchData does not resolve if no network #18

@velevtzvetlin

Description

@velevtzvetlin

const response: Response = await dispatchData({ cardData }); promise never resolves if there is no internet connection though you can see

  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'Referer: https://int-medbox.quickfill.dev/' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36' \
  -H 'sec-ch-ua: "Not)A;Brand";v="8", "Chromium";v="138", "Google Chrome";v="138"' \
  -H 'Content-Type: application/json; charset=UTF-8' \
  -H 'sec-ch-ua-mobile: ?0' \
  --data-raw '{"securePaymentContainerRequest":{"merchantAuthentication":{"name":"...","clientKey":"..."},"data":{"type":"TOKEN","id":"47a83199-09b9-e989-3b49-76537c57590f","token":{"cardNumber":"4242424242424242","expirationDate":"0527","cardCode":"456","zip":"92691","fullName":"lobby elev"}}}}'```

failing in console

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