ImageMonkey / imagemonkey-core

ImageMonkey is an attempt to create a free, public open source image dataset.
https://imagemonkey.io
47 stars 10 forks source link

*pq.Error: null value in column "label_id" violates not-null constraint #236

Closed bbernhard closed 5 years ago

bbernhard commented 5 years ago

https://sentry.io/organizations/imagemonkey/issues/1007727884/?project=583245&referrer=github_plugin

*pq.Error: null value in column "label_id" violates not-null constraint
  File "/home/imagemonkey/go/src/github.com/getsentry/raven-go/client.go", line 679, in CaptureError
    return DefaultClient.CaptureError(err, tags, interfaces...)
  File "/home/imagemonkey/src/database/image_annotation.go", line 1443, in addOrUpdateRefinementsInTransaction
    raven.CaptureError(err, nil)
  File "/home/imagemonkey/src/database/image_annotation.go", line 304, in AddAnnotations
    err = addOrUpdateRefinementsInTransaction(tx, annotationId, val, refinements, apiUser.ClientFingerprint)
  File "/home/imagemonkey/src/api.go", line 2090, in func50
    annotationIds, err := imageMonkeyDatabase.AddAnnotations(apiUser, imageId, annos)
  File "/home/imagemonkey/go/src/github.com/gin-gonic/gin/context.go", line 109, in Next
    c.handlers[c.index](c)
...
(12 additional frame(s) were not displayed)

pq: null value in column "label_id" violates not-null constraint
bbernhard commented 5 years ago

should be fixed