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

GQL API: Schema in query results may contain invalid JSON #746

Closed
sergiimk opened this issue Jul 29, 2024 · 1 comment · Fixed by #925
Closed

GQL API: Schema in query results may contain invalid JSON #746

sergiimk opened this issue Jul 29, 2024 · 1 comment · Fixed by #925
Labels
bug Something isn't working

Comments

@sergiimk
Copy link
Member

Describe the bug

GQL API may be incorrectly escaping JSON in schema.content field

Steps To Reproduce

  1. Open web UI at: https://platform.demo.kamu.dev/kamu/net.rocketpool.reth.mint-burn?tab=data
  2. Execute the following query:
select
  sum(case when event_name = 'TokensMinted' then amount else amount end)
from 'kamu/net.rocketpool.reth.mint-burn'
  1. Observe the error in the console
Expected ',' or '}' after property value in JSON at position 132

Current Behavior

The schema.content field looks insufficiently escaped and thus breaking JSON parsing in the UI

Expected Behavior

Query executes successfully

kamu system info

latest master

Logs

No response

Anything else?

No response

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