Issue
Hiya,
I am experiencing some issues with the latest release. Essentially, I am unable to create Oplogs. Any attempts results in the following error messages:
TransactionManagementError at /oplog/create/
An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block.
and
Could not generate an API key for your new operation log – contact your admin!
Looking a bit further into it, I tracked it down to when Ghostwriter attempts to create a new API key for the oplog. If I try to create a new API key through the Admin Panel, I get the following error message:
DataError at /admin/rest_framework_api_key/apikey/add/
value too long for type character varying(100)
It looks like this may be an issue with the djangorestframework-api-key package. They recently pushed a commit to fix a similar issue 4 days ago (as of this writing):
Have you experienced any issues on your end?
Reproduction
Using a fresh install of Ghostwriter - tested with master (as of the 6th of March 2022) branch and v2.2.3 release:
- go to the Admin Panel
- Under API KEY PERMISSIONS, click API Keys
- click on ADD API KEY
- enter a name for the key (
my-new-api-key was selected for this example)
- click on Save
Expected behaviour
A new API key is created.
Actual behaviour
The following error message is observed:
DataError at /admin/rest_framework_api_key/apikey/add/
value too long for type character varying(100)
Issue
Hiya,
I am experiencing some issues with the latest release. Essentially, I am unable to create Oplogs. Any attempts results in the following error messages:
and
Looking a bit further into it, I tracked it down to when Ghostwriter attempts to create a new API key for the oplog. If I try to create a new API key through the Admin Panel, I get the following error message:
It looks like this may be an issue with the
djangorestframework-api-keypackage. They recently pushed a commit to fix a similar issue 4 days ago (as of this writing):Have you experienced any issues on your end?
Reproduction
Using a fresh install of Ghostwriter - tested with master (as of the 6th of March 2022) branch and v2.2.3 release:
my-new-api-keywas selected for this example)Expected behaviour
A new API key is created.
Actual behaviour
The following error message is observed: