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

lazr.restfulclient.errors.PreconditionFailed: HTTP Error 412: Precondition Failed #16

Open
freyes opened this issue Apr 17, 2023 · 0 comments

Comments

@freyes
Copy link
Member

freyes commented Apr 17, 2023

Issue seen in this run: https://github.com/openstack-charmers/charmed-openstack-info/actions/runs/4711964242

Traceback (most recent call last):
  File "/snap/charmhub-lp-tool/25/bin/charmhub-lp-tool", line 8, in <module>
    sys.exit(cli_main())
  File "/snap/charmhub-lp-tool/25/lib/python3.8/site-packages/charmhub_lp_tools/main.py", line 1140, in cli_main
    main()
  File "/snap/charmhub-lp-tool/25/lib/python3.8/site-packages/charmhub_lp_tools/main.py", line 1134, in main
    args.func(args, gc)
  File "/snap/charmhub-lp-tool/25/lib/python3.8/site-packages/charmhub_lp_tools/main.py", line 774, in sync_main
    charm_project.ensure_charm_recipes(
  File "/snap/charmhub-lp-tool/25/lib/python3.8/site-packages/charmhub_lp_tools/charm_project.py", line 1011, in ensure_charm_recipes
    lp_recipe.lp_save()
  File "/snap/charmhub-lp-tool/25/lib/python3.8/site-packages/lazr/restfulclient/resource.py", line 830, in lp_save
    response, content = self._root._browser.patch(
  File "/snap/charmhub-lp-tool/25/lib/python3.8/site-packages/lazr/restfulclient/_browser.py", line 541, in patch
    return self._request(
  File "/snap/charmhub-lp-tool/25/lib/python3.8/site-packages/lazr/restfulclient/_browser.py", line 484, in _request
    raise error
lazr.restfulclient.errors.PreconditionFailed: HTTP Error 412: Precondition Failed
Response headers:
---
content-length: 0
content-security-policy: frame-ancestors 'self';
content-type: text/plain
date: Sun, 16 Apr 2023 06:49:32 GMT
server: gunicorn
status: 412
strict-transport-security: max-age=15552000
vary: Accept
x-content-type-options: nosniff
x-content-type-warning: guessed from content
x-frame-options: SAMEORIGIN
x-launchpad-revision: 87e01a184063d9dc53acb2343d6484f5546064fd
x-lazr-notifications: []
x-powered-by: Zope (www.zope.org), Python (www.python.org)
x-request-id: 0d6d1cb7-0233-4b9d-a240-2296c490ef00
x-vcs-revision: 87e01a184063d9dc53acb2343d6484f5546064fd
x-xss-protection: 1; mode=block
---
Response body:
---
b''
---
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