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

AccountQueryInput GraphQL - error when using zkapp query variable #1778

Open
jhult opened this issue Feb 26, 2025 · 1 comment
Open

AccountQueryInput GraphQL - error when using zkapp query variable #1778

jhult opened this issue Feb 26, 2025 · 1 comment
Assignees
Labels
Berkeley Bug Something isn't working properly Data Database, storage or retrieval of data, JSON, serialization, etc.

Comments

@jhult
Copy link
Member

jhult commented Feb 26, 2025

query AccountsQuery(
  $limit: Int = 100
  $sortBy: AccountSortByInput!
  $query: AccountQueryInput
) {
  accounts(limit: $limit, query: $query, sortBy: $sortBy) {
    publicKey
    username
    balance
    delegate
    nonce
    timeLocked
  }
}

Variables:

{
  "limit": 25,
  "sortBy": "BALANCE_DESC",
  "query": {
    "zkapp": false
  }
}

I get this error:

{
  "errors": [
    {
      "message": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON",
      "stack": "SyntaxError: Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON"
    }
  ]
}

If you remove zkApp, it works fine.

@jhult jhult added Berkeley Bug Something isn't working properly Data Database, storage or retrieval of data, JSON, serialization, etc. labels Feb 26, 2025
@jhult jhult added this to the Berkeley Support milestone Feb 26, 2025
@jhult
Copy link
Member Author

jhult commented Feb 26, 2025

Blocking Granola-Team/mina-block-explorer#1159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Berkeley Bug Something isn't working properly Data Database, storage or retrieval of data, JSON, serialization, etc.
Projects
Status: Backlog
Development

No branches or pull requests

2 participants