deviantony / xtrabackup-scripts

Wrapper scripts (Python) for the Percona Xtrabackup tool.
http://www.percona.com/doc/percona-xtrabackup
110 stars 46 forks source link

Unexpected keyword argument 'json' when using webhook #34

Closed deviantony closed 8 years ago

deviantony commented 8 years ago

When trying to use the webhook with the latest version of the tool, the following exception is raised:

ERROR:xtrabackup.full_backup:pyxtrabackup failed.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/xtrabackup/full_backup.py", line 55, in main
    arguments['--webhook'])
  File "/usr/local/lib/python2.7/dist-packages/xtrabackup/backup_tools.py", line 216, in start_full_backup
    self.trigger_webhook(webhook)
  File "/usr/local/lib/python2.7/dist-packages/xtrabackup/backup_tools.py", line 162, in trigger_webhook
    self.http.post(webhook_url, postdata)
  File "/usr/local/lib/python2.7/dist-packages/xtrabackup/http_manager.py", line 7, in post
    requests.post(url, json=json)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 88, in post
    return request('post', url, data=data, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
TypeError: request() got an unexpected keyword argument 'json'