Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Discuss Key Alt Names #36

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

biniona-mongodb
Copy link
Contributor

@biniona-mongodb biniona-mongodb commented Apr 13, 2022

PR to discuss dynamic key selection in schemas with DevEd DBX team

@biniona-mongodb
Copy link
Contributor Author

biniona-mongodb commented Apr 13, 2022

Adding upsert operation back in raises the following error which is surprising:

pymongo.errors.EncryptionError: A non-static (JSONPointer) keyId is not supported., full error:
RawBSONDocument(b'v\x00\x00\x00\x01ok\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02errmsg\x003\x00\x00\x00A non-static (JSONPointer) keyId is not supported.\x00\x10code\x00\x95\xc7\x00\x00\x02codeName\x00\x0e\x00\x00\x00Location51093\x00\x00', codec_options=CodecOptions(document_class=<class 'bson.raw_bson.RawBSONDocument'>, tz_aware=False, uuid_representation=UuidRepresentation.PYTHON_LEGACY, unicode_decode_error_handler='strict', tzinfo=None, type_registry=TypeRegistry(type_codecs=[], fallback_encoder=None)))

Unsure how an upsert operation could cause this error while an insert and read do not 🤔. Will keep futzing with this and raise to others if I can't make any progress.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant