Sending a GraphQL request to an endpoint w/ unreachable introspection crashes the app

When sending a request with body type GraphQL to a server with an unavailable schema introspection endpoint, the yaak app crashes, triggerring an app-wide error boundary with a Too many re-renders error (`Minified React Error #301`).

Repro

Import the following CURL command, send a request and switch the body type to GraphQL

curl -X POST 'https://gql.twitch.tv/gql' \
  --header 'Content-Type: application/json' \
  --header 'Client-ID: kimne78kx3ncx6brgo4mv6wki5h1ko' \
  --data-raw '{
  "query": "query LatestChannelVideo($login: String, $type: BroadcastType = ARCHIVE, $limit: Int = 10) { user(login: $login) { videos(first: $limit, type: $type) { edges { node { id title description createdAt lengthSeconds viewCount status game { displayName } owner { login, displayName } } } } } }",
  "variables": {
    "login": "resir014"
  }
}'

Please authenticate to join the conversation.

Upvoters
Status

Released

Board

Feedback

Tags

Bug

Date

About 1 year ago

Author

Angelo

Subscribe to post

Get notified by email when there are changes.