Election-Tech-Initiative / electionguard-api-python

ElectionGuard Web API in python to demonstrate usage of electionguard-python in performing ballot encryption, casting, spoiling, and tallying.
https://www.electionguard.vote/
MIT License
36 stars 26 forks source link

🐞 Decrypt Ballots Produces asyncio.run error #219

Closed lprichar closed 2 years ago

lprichar commented 2 years ago

Is there an existing issue for this?

Current Behavior

If you attempt to POST to {{mediator-url}}/api/{{version}}/tally/decrypt?restart=true with valid decryption shares submitted, then you get the error: RuntimeError: asyncio.run() cannot be called from a running event loop.

Expected Behavior

It should return a decrypted tally

Steps To Reproduce

No response

Environment

- OS:

Anything else?

No response