Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account.BulkDelete does not reauthenticate when running into 401 error #5

Open
majewsky opened this issue Jun 7, 2018 · 0 comments

Comments

@majewsky
Copy link
Owner

majewsky commented Jun 7, 2018

Gopherschwift usually calls Reauthenticate() when the token expires, by recognizing 401 responses. However, when a bulk-delete fails because of expired token, 400 is returned and the 401 errors can only be found in the BulkError. Example log output from swift-http-import (which knows how to unpack the BulkError, every line after the first is one of the constituent BulkObjectError instances):

2018/06/07 13:03:26 ERROR: cleanup of 131207 objects on target side failed: 400 Bad Request: Max delete failures exceeded (+1001 object errors)
2018/06/07 13:03:26 ERROR: DELETE /repo/ubuntu/dists/xenial-proposed/main/installer-i386/20101020ubuntu451.15/images/hwe-cdrom/vmlinuz: 401 Unauthorized
2018/06/07 13:03:26 ERROR: DELETE /repo/ubuntu/dists/xenial-proposed/main/installer-i386/20101020ubuntu451.15/images/hwe-hd-media/boot.img.gz: 401 Unauthorized
2018/06/07 13:03:26 ERROR: DELETE /repo/ubuntu/dists/xenial-proposed/main/installer-i386/20101020ubuntu451.15/images/hwe-hd-media/initrd.gz: 401 Unauthorized
2018/06/07 13:03:26 ERROR: DELETE /repo/ubuntu/dists/xenial-proposed/main/installer-i386/20101020ubuntu451.15/images/hwe-hd-media/vmlinuz: 401 Unauthorized
2018/06/07 13:03:26 ERROR: DELETE /repo/ubuntu/dists/xenial-proposed/main/installer-i386/20101020ubuntu451.15/images/hwe-netboot/boot.img.gz: 401 Unauthorized
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant