Skip to content

Error while starting backend #464

Description

@maparent

I am attempting to run unigraph locally on an ubuntu machine, following the readme.
When starting the server, dgraph starts without issues, but the backend server bootstrap fails. After a few successful upserts, I get the following error message:

[Subscription] Refreshing subscriptions...
[Subscription] Total of 0 type queries, 0 object queries, and 1 query queries,
[Subscription] Merged into 1 queries.
/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:415
            entries = lodash_1.default.merge(entries, { _value: makePart(schemaMap[type]._definition, depth + 1, true) });
                                                                                         ^

TypeError: Cannot read properties of undefined (reading '_definition')
    at makePart (/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:415:90)
    at /home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:438:36
    at Array.forEach (<anonymous>)
    at makePart (/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:437:47)
    at makePart (/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:459:56)
    at /home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:423:41
    at Array.map (<anonymous>)
    at makePart (/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:420:58)
    at makePart (/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:415:65)
    at /home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:438:36
error Command failed with exit code 1.

I instrumented, and found that the type is subentity; the loop is called successfully (thrice) with type executable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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