Skip to content

Simple GET API call fails with error #855

@feczo

Description

@feczo

Version Information

latest / v0.7.3

Environment

Docker

What is the expected behaviour?

Preview the JSON of the API call result
the same API returns with cURL and it is a valid JSON object

What is the current behaviour?

Error:
"Query could not be completed: Unexpected token < in JSON at position 0"

How to reproduce the issue?

  1. Add a REST API source
  2. Type GET
  3. Source "https://en.wikipedia.org/w/api.php?action=query&format=json&generator=search&gsrnamespace=0&gsrlimit=5&gsrsearch=API"

Screenshots or Screencast

api_fail

Please provide any traces or logs that could help here.

not sure, not much troubleshooting info on https://docs.tooljet.io/

Any possible solutions?

no

Can you identify the location in the driver source code where the problem exists?

no

If the bug is confirmed, would you be willing to submit a PR?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions