“TypeError: failed to fetch” from wso2 APIM

Viewed 486
1 Answers

This happens mostly due to SSL-certificate issue.

Open a new tab in browser and enter the URL: https://localhost:8243

This will download and install the certificate. Then restart the browser and try the API. This should work.

Otherwise, you can directly copy the Curl command generated above your error and import it into Postman application. Postman does not give SSL-certificate issue.

Steps for Postman:

  1. Open postman application

  2. Click on Import, which is at Top-Left of the window besides New button.

  3. In Import, select "Pate Raw Text" option

  4. Paste the curl command copied from swagger UI and click Import.

  5. Click on Send.

Related