hydroserver2 / hydroserver

Documentation and issue tracker for HydroServer and related applications
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Deleting and re-creating a site tag throws a 500 error #197

Open daniel-slaugh opened 1 month ago

daniel-slaugh commented 1 month ago

Steps to reproduce:

  1. Add a tag to a site and save
  2. Go to the 'edit site' form
  3. Click remove for the tag but don't save yet
  4. Create a new tag with the same key as the deleted tag
  5. Save

This should successfully delete the one and create the other, but instead it deletes the first and throws a 500 error on the second:

POST https://udwri.hydroserver.org/api/data/things/c5808394-362b-4f99-a4ae-5c5129c797bc/tags Failed to upload tags: SyntaxError: Unexpected token 'T', "Traceback "... is not valid JSON