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

Crashing when switching from GraphQL variables back to request body #2450

Open
2 tasks done
idmyn opened this issue Jun 12, 2024 · 2 comments
Open
2 tasks done

Crashing when switching from GraphQL variables back to request body #2450

idmyn opened this issue Jun 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@idmyn
Copy link

idmyn commented Jun 12, 2024

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

If I have a salesforce GraphQL query and switch from the variables tab back to the request body tab then I land on the bruno error screen

The API isn't publicly accessible and I'm not a GraphQL expert so I can't help much in reproducing/debugging but here's what I've observed:

  • if the request body is empty then the error doesn't happen
  • I've reproduced it with multiple different Salesforce instances
  • it happens very consistently

.bru file to reproduce the bug

meta {
  name: foo
  type: graphql
  seq: 5
}

post {
  url: {{SALESFORCE_DOMAIN}}/services/data/v60.0/graphql
  body: graphql
  auth: bearer
}

auth:bearer {
  token: {{SALESFORCE_ACCESS_TOKEN}}
}

body:graphql {
  query Foo {
    uiapi {
      query {
        Case {
          totalCount
        }
      }
    }
  }
}

Screenshots/Live demo link

CleanShot 2024-06-12 at 16 20 08@2x

CleanShot.2024-06-12.at.16.24.31.mp4
@idmyn idmyn added the bug Something isn't working label Jun 12, 2024
@gagan2125
Copy link

meta {
name: foo
type: graphql
seq: 5
}

post {
url: {{SALESFORCE_DOMAIN}}/services/data/v60.0/graphql
body: graphql
auth: bearer
}

auth: bearer {
token: {{SALESFORCE_ACCESS_TOKEN}}
}

body: graphql {
query: |
query Foo {
uiapi {
query {
Case {
totalCount
}
}
}
}
}

try this one

If the issue remains unresolved, report it with the following details:

Exact steps to reproduce the error.
Environment details.
Simplified GraphQL query causing the issue.
Any relevant logs or console errors.

@sanjai0py
Copy link
Collaborator

Hey @idmyn, please share more information and if possible, the error object from the console.

Screenshot 2024-06-14 at 12 25 32 PM

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

No branches or pull requests

3 participants