#3963 Unable to set a PR flags - EDBERROR
Closed: Fixed 2 years ago Opened 2 years ago by fbo.

I'm trying to set a PR flag using curl but I get a curious error:

curl -XPOST -H "Authorization: token XXXX" -d "username=zuul&comment=msg&url=https://sftests.com/zuul/log" https://pagure.io/api/0/test-zuul/pull-request/13/flag
  "error": "An error occurred at the database level and prevent the action from reaching completion",
  "error_code": "EDBERROR"

My token ACL is:

    Flag a commit
    Comment on a pull-request
    Flag a pull-request
    Merge a pull-request

The request seems correct according to "Flag a pull-request" in https://pagure.io/api/0/. Am I doing something wrong ?

There was indeed a DB issue, the DB schema was not exactly what it was supposed to be, not sure why since we have a migration for this, maybe that migration got confused somehow, weird.

Anyway, I've fixed it in the DB.

Thanks for the report!

Metadata Update from @pingou:
- Issue assigned to pingou
- Issue close_status updated to: Fixed
- Issue set to the milestone: 5.2
- Issue status updated to: Closed (was: Open)
- Issue tagged with: bug

2 years ago

Login to comment on this ticket.