Skip to content

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

@freyes

Description

@freyes

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''
---

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions