aries-vcr icon indicating copy to clipboard operation
aries-vcr copied to clipboard

OpenAPI / Swagger is returning "TypeError: Failed to Fetch" after hitting "Execute" on valid request

Open swcurran opened this issue 3 years ago • 0 comments

The following query does not work in the Swagger API.

If I try the query directly -- e.g. http://orgbook.gov.bc.ca/api/v2/search/autocomplete?q=Power%20Corp&inactive=any&latest=true&revoked=false It works fine.

If I try it in swagger:

  • Use the swagger as you are, e.g.: https://orgbook.gov.bc.ca/api/v3/
  • Type in your parameters and hit "Execute"

I get the error TypeError: Failed to fetch

To workaround, I can:

  • Copy the URL in the "curl -X GET..." text
  • Paste it into a browser address bar, hit enter and get the results.

Please fix whatever it is that is broken.

swcurran avatar Sep 06 '22 21:09 swcurran