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

occasional panic #2

Open
steebchen opened this issue Feb 12, 2019 · 0 comments
Open

occasional panic #2

steebchen opened this issue Feb 12, 2019 · 0 comments

Comments

@steebchen
Copy link
Owner

steebchen commented Feb 12, 2019

Query:

query {
  feed {
    id
    title
    content

    comments {
      id
      text
      
      user { # <- this
        id
        name
      }
    }
  }
}

user is nil occasionally in L31:

https://github.com/steebchen/graphql/blob/48a47d8c71e9e4eb4bffd16f0431796e5f3c9e7b/server/resolver.go#L30-L33

which logs this:

2019/02/12 16:21:53 comment: &prisma.Comment{ID:"cjrznt17n001n0764ngrtfcju", CreatedAt:"2019-02-11T01:29:02.744Z", Text:"gaj"}, user: (*prisma.User)(nil)

which causes the nil pointer dereference in the first place.

see prisma/prisma#4033

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant