Skip to content

insights: nil error when creating a dashboard with an invalid userId

Created by: coury-clark

When creating dashboard with an orgID or userID that doesn't belong to the current user, the API returns the following error:

{"errors":[{"message":"graphql: got nil for non-null \"InsightsDashboardPayload\"","path":["createInsightsDashboard"]}]

Reported by @andreeleuterio