Skip to content

Wrong error trace showing up #2281

Closed
Closed
@Loschcode

Description

@Loschcode

Context

Rails 5.2.2.1
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin18]

My problem

It's been a while I work with this gem and I noticed when I was having errors - usually about syntax or anything which's eager loaded such as class names, etc. - the correct error was showing up once or less, and when I would re-run the exact same query this shows up

{
  "error": "Unable to autoload constant Types::MutationType, expected /my-project/api/app/graphql/types/mutation_type.rb to define it"
}

When testing it out through GraphiQL, my current workaround is to slightly change a file and save it, then re-run to see the real error. The thing is, I believe there should be a better error output than that, something stable.

I'm unsure the gem itself is causing this and not some shady Rails thing, caching up or whatever, so here I ask.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions