Skip to content

mongoDB upload error #6

Closed
Closed

Description

@TheScriptGuy

Running version 0.31.

Attempting to upload data to MongoDB.

Get python error:
Traceback (most recent call last):
File "/projects/github/certificateChecker/certCheck.py", line 350, in
processQueryFile()
File "/projects/github/certificateChecker/certCheck.py", line 267, in processQueryFile
uploadResult = sdMDB.uploadDataToMongoDB(myJsonScriptData)
File "/projects/github/certificateChecker/data/sendDataMongoDB.py", line 158, in uploadDataToMongoDB
uploadResult = self.sendResults(__jsonScriptData, collection)
File "/projects/github/certificateChecker/data/sendDataMongoDB.py", line 39, in sendResults
__uploadResult = __destCollection.insert_one(__results)
File "/usr/lib/python3/dist-packages/pymongo/collection.py", line 698, in insert_one
self._insert(document,
File "/usr/lib/python3/dist-packages/pymongo/collection.py", line 613, in _insert
return self._insert_one(
File "/usr/lib/python3/dist-packages/pymongo/collection.py", line 602, in _insert_one
self.__database.client._retryable_write(
File "/usr/lib/python3/dist-packages/pymongo/mongo_client.py", line 1498, in _retryable_write
return self._retry_with_session(retryable, func, s, None)
File "/usr/lib/python3/dist-packages/pymongo/mongo_client.py", line 1384, in _retry_with_session
return self._retry_internal(retryable, func, session, bulk)
File "/usr/lib/python3/dist-packages/pymongo/mongo_client.py", line 1416, in _retry_internal
return func(session, sock_info, retryable)
File "/usr/lib/python3/dist-packages/pymongo/collection.py", line 590, in _insert_command
result = sock_info.command(
File "/usr/lib/python3/dist-packages/pymongo/pool.py", line 699, in command
self._raise_connection_failure(error)
File "/usr/lib/python3/dist-packages/pymongo/pool.py", line 683, in command
return command(self, dbname, spec, slave_ok,
File "/usr/lib/python3/dist-packages/pymongo/network.py", line 120, in command
request_id, msg, size, max_doc_size = message._op_msg(
File "/usr/lib/python3/dist-packages/pymongo/message.py", line 714, in _op_msg
return _op_msg_uncompressed(
bson.errors.InvalidDocument: documents must have only string keys, key was 128

Activity

  1. self-assigned this
    on Oct 27, 2022
  2. linked a pull request that will close this issueVersion 0.32 released. Resolve issue #6 #7on Oct 27, 2022
  3. added a commit that references this issue on Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions