Skip to content
This repository was archived by the owner on Oct 4, 2022. It is now read-only.
This repository was archived by the owner on Oct 4, 2022. It is now read-only.

MongoDB driver and Objects in Collections #13

@mm765

Description

@mm765

Last one for today...

I tried using the mongo-driver and did a simple find({}) (find all) and got the following error:
**** EXCEPTION ****
TypeError: Cannot find function entrySet in object en.
at /opt/itk/libs/decaf-mongodb/lib/BSON.js:53 (deserialize)
at /opt/itk/libs/decaf-mongodb/lib/BSON.js:75 (anonymous)
at /usr/local/decaf/builtins/decaf.js:41 (anonymous)
at /opt/itk/libs/decaf-mongodb/lib/BSON.js:74 (anonymous)
at /usr/local/decaf/builtins/decaf.js:41 (anonymous)
at /opt/itk/libs/decaf-mongodb/lib/BSON.js:53 (deserialize)
at /opt/itk/libs/decaf-mongodb/lib/Cursor.js:217 (anonymous)
at server.js:21
at /usr/local/decaf/builtins/rhino.js:117 (anonymous)
at /usr/local/decaf/builtins/include.js:96 (includeFile)
at /usr/local/decaf/builtins/include.js:107 (anonymous)
at /usr/local/decaf/builtins/shell.js:72 (anonymous)
at /usr/local/decaf/builtins/shell.js:18
at /usr/local/decaf/builtins/rhino.js:117 (anonymous)
at /usr/local/decaf/builtins/include.js:96 (includeFile)
at /usr/local/decaf/builtins/include.js:107 (anonymous)
at /usr/local/decaf/builtins/all.js:160

The "en" in the error message lets me suspect that it has a problem with an object like
Name['en'] = 'Choice'
Name['de'] = 'Auswahl'
in the collection - using a different collection that does not have an Object like that, works.
Any idea ?

Metadata

Metadata

Assignees

No one assigned

    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