Skip to content

TypeError on updating the database #138

Description

@noyainrain

Application.update() fails with the following error:

Traceback (most recent call last):
  File ".venv39/lib/python3.9/site-packages/tornado/testing.py", line 268, in _callTestMethod
    result = method()
  File ".venv39/lib/python3.9/site-packages/tornado/testing.py", line 604, in post_coroutine
    return self.io_loop.run_sync(
  File ".venv39/lib/python3.9/site-packages/tornado/ioloop.py", line 547, in run_sync
    return future_cell["future"].result()
  File "micro/tests/test_micro.py", line 121, in test_update_db_fresh
    await app.update()
  File "micro/micro.py", line 230, in update
    self._generate_push_vapid_keys()) # type: ignore
  File "micro/micro.py", line 470, in _generate_push_vapid_keys
    vapid.generate_keys()
  File ".venv39/lib/python3.9/site-packages/py_vapid/__init__.py", line 200, in generate_keys
    self.private_key = ec.generate_private_key(ec.SECP256R1,
TypeError: curve must be an EllipticCurve instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbug.criticalBug that disables a substantial feature, use case or the entire appdepends-on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions