Skip to content

graphql api returns 500 http codes on unknown types #336

@massimilianobraglia

Description

@massimilianobraglia

Hey there,

query foobar($foobar: Foobar!){
  foobar(foobar: $foobar){
    foobar
  }
}

Calling this query on an environment that has no Foobar type defined results in a 500 http response like in this screenshot.

Is it normal? Shouldn't it be a 400 response?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions