Skip to content

Queries API always return not null #15408

Answered by MarGraz
weirdyang asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @weirdyang,

  1. Did you had this error through the Queries preview in the Admin panel > Search > Queries > All queries > Run (by clicking on your query)?
  2. Or did the error appear when you called {your domain or localhost}/api/queries/queryname?

In the second scenario, it's possible that you are using an incorrect query name, or you are calling your API query anonymously, from the browser or from Postman, without having permission to do so. It's usually better to invoke a query by providing OAuth 2.0 authentication. I experienced a similar issue here (always try to search in the "Issues" section, not just in "Discussions", sometimes you can find helpful information).
Essentially, to resolv…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@weirdyang
Comment options

@MarGraz
Comment options

Answer selected by weirdyang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants