Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to preview REST query #4413

Closed
mslourens opened this issue Feb 10, 2022 · 0 comments · Fixed by #4414
Closed

Unable to preview REST query #4413

mslourens opened this issue Feb 10, 2022 · 0 comments · Fixed by #4414
Assignees
Labels
bug Something isn't working

Comments

@mslourens
Copy link
Contributor

Describe the bug
I get an error when I try to preview a REST api query.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the data tab
  2. Click on the Plus button to create a new datasource
  3. Select the REST data source
  4. Click the Add query button
  5. Enter the url of the REST API endpoint
  6. Click the Send button to preview the results.
  7. Notice the Error message: "Error running query"

Expected behavior
The endpoint the query points to does exist, so I expect it to run and show me the result.

Cause of the issue
The validation of the preview query endpoint is missing three properties:

  • name (string)
  • flags (object)
  • schema (object)

Desktop (please complete the following information):

  • OS: MacOS 12.1
  • Browser: Vivaldi
  • Version: develop branch

Additional context
Add any other context about the problem here.

@mslourens mslourens added the bug Something isn't working label Feb 10, 2022
@mslourens mslourens self-assigned this Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant