Repository navigation
[Bug]: BioSimDB Invenio community invitation fails #86
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Report
Invite to BioSimDB community on Invenio instance fails when a logged in user is not already a part of the BioSimDB community.
To Reproduce
When a user clicks to submit data to BioSimDB, the submmision fails with an unhelpful error:
Actual output
From server:
/venv/lib/python3.14/site-packages/MDAnalysis/coordinates/DCD.py:171: DeprecationWarning: DCDReader currently makes independent timesteps by copying self.ts while other readers update self.ts inplace. This behavior will be changed in 3.0 to be the same as other readers. Read more at https://github.com/MDAnalysis/mdanalysis/issues/3889 to learn if this change in behavior might affect you.
warnings.warn("DCDReader currently makes independent timesteps"
/venv/lib/python3.14/site-packages/MDAnalysis/coordinates/DCD.py:171: DeprecationWarning: DCDReader currently makes independent timesteps by copying self.ts while other readers update self.ts inplace. This behavior will be changed in 3.0 to be the same as other readers. Read more at https://github.com/MDAnalysis/mdanalysis/issues/3889 to learn if this change in behavior might affect you.
warnings.warn("DCDReader currently makes independent timesteps"
[2026-10-21 08:47:46,047] ERROR in app: Exception on /do_submit [POST]
Traceback (most recent call last):
File "/venv/lib/python3.14/site-packages/flask/app.py", line 1511, in wsgi_app
response = self.full_dispatch_request()
File "/venv/lib/python3.14/site-packages/flask/app.py", line 919, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/venv/lib/python3.14/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
File "/venv/lib/python3.14/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/venv/lib/python3.14/site-packages/biosimdb_interface/form/webform.py", line 233, in do_submit
invite_user("biosimdb", token)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.14/site-packages/biosimdb_interface/login/community_invite.py", line 54, in invite_user
for m in r.json()["hits"]["hits"]:
~~~~~~~~^^^^^^^^
KeyError: 'hits'Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Activity