Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while starting backend #464

Open
maparent opened this issue Apr 15, 2023 · 0 comments
Open

Error while starting backend #464

maparent opened this issue Apr 15, 2023 · 0 comments

Comments

@maparent
Copy link

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.

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

No branches or pull requests

1 participant