usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.6k stars 1.27k forks source link

Error while attempting to retrieve GQL schema in Bruno #3432

Closed hadidy100 closed 1 week ago

hadidy100 commented 2 weeks ago

I have checked the following:

Describe the bug

When clicking Schema tab and then click Load from Introspection for a valid GraphQL URI, I get the following error: " Error invoking remote method 'fetch-gql-schema': TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object"

.bru file to reproduce the bug

No response

Screenshots/Live demo link

ErrorLoadingSchema_GQL

ganesh-bruno commented 2 weeks ago

Hi @hadidy100,

I'm using Bruno 1.34.2, and I was able to reproduce this issue with a valid GraphQL API.

Here's what I did:

  1. Opened the Schema tab.
  2. Selected the Load from Introspection option.

The response I received was: GraphQL Schema loaded successfully.

I've also attached a video for reference:

Please let me know if this works on your end or if you're encountering any issues.

https://github.com/user-attachments/assets/fff123e3-b108-478a-be5e-0293addbdb32

hadidy100 commented 1 week ago

Hi @ganesh-bruno,

Thank you for the GIF! This revealed that I do not have the latest version of Bruno, so I downloaded the 1.34.2 version and it is now working as expected. so THANK YOU.

However this link : https://github.com/usebruno/bruno/issues/562

Says that we can update manually but that option was not available in the old version, but I am good now. Thanks again.