Uploaded image for project: 'Zapped: AcousticBrainz'
  1. Zapped: AcousticBrainz
  2. AB-417

Cannot delete a dataset from the API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2019-07-31.0
    • None
    • None

      https://sentry.metabrainz.org/metabrainz/acousticbrainz/issues/89774/

      It looks like this method has never worked (no test?), as get_dataset returns a flask response. It looks like this method is instead expecting the response of get from the database.

      TypeError: 'Response' object has no attribute '__getitem__'
      (2 additional frame(s) were not displayed)
      ...
        File "webserver/decorators.py", line 13, in decorated
          return f(*args, **kwargs)
        File "webserver/views/api/v1/datasets.py", line 91, in delete_dataset
          if ds["author"] != current_user.id:
      
      TypeError: 'Response' object has no attribute '__getitem__'
      

            alastairp Alastair Porter
            alastairp Alastair Porter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2019-07-31.0