question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not save annotations

See original GitHub issue

My actions before raising this issue

  • Read/searched the docs
  • Searched past issues

Expected Behaviour

The annotations are saved without a problem

Current Behaviour

A popup appears with the following message:

Could not save annotations Error: Request failed with status code 400. “duplicate key value violates unique constraint "engine_trackedshape_pkey"\nDETAIL: Key (id)=(113) already exists.\n”.

Steps to Reproduce (for bugs)

I am annotating a video with the tracking bounding boxes. When trying to save mid way through, the error appears.

Context

I am not able to save any annotations. All my work will be lost, when I close the window. When opening the job in a 2nd window it show the last save was 400 frames ago.

Edit: I was able to “save” my work by downloading the annotation via the “Menu” -> “Dump annotations” / “Export Dataset” Buttons.

Your Environment

  • Git hash commit (git log -1): cb4d8e6ee571594f74ff96bc6cbc7c597c732e4a
  • Docker version docker version (e.g. Docker 17.0.05): 19.03.5
  • Are you using Docker Swarm or Kubernetes? no
  • Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu Desktop
  • Code example or link to GitHub repo or gist to reproduce problem:
  • Other diagnostic information / logs:

2020-09-09 07:05:44,580 DEBG ‘runserver’ stderr output: [Wed Sep 09 07:05:44.580126 2020] [wsgi:error] [pid 630:tid 139984631072512] [remote 172.28.0.7:54352] WARNING:django.request:Bad Request: /api/v1/jobs/2/annotations

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:30 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
TorstenSandellcommented, Apr 20, 2022

I can reproduce this error message consistently in browser by doing the following steps:

  • Create a tracked object
  • Save and reload the page
  • Remove the tracked object
  • Undo the remove

Trying to save after following these steps produces the error message.

1reaction
joon612commented, Jul 27, 2021

Are there any update for this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not save annotations · Issue #2157 · opencv/cvat - GitHub
@mfruhner , I was able to "save" my work by downloading the annotation via the "Menu" -> "Dump annotations" / "Export Dataset" Buttons....
Read more >
Preview does not save annotations - Apple Community
Hi. I am working in Preview using text boxes to annotate a pdf. When I Save, Quit and reopen, most of the annotations...
Read more >
Why Are the Annotations not Saved? - PDF Reader Pro
Why Are the Annotations not Saved on PDF Reader Pro for Android? The article will give you a helpful answer.
Read more >
opencv-cvat/public - Gitter
I'm facing an error when saving my tracks: Could not save annotations Error: Request failed with status code 400. "duplicate key value violates...
Read more >
Errors Saving Annotations - Church Tech Forum
Now today I'm getting the "unable to save annotation" message again. It appears below the dialog where I'm typing my annotation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found