grand-stack / graphql-architect

GraphQL Architect: A tool for designing and building GraphQL APIs backed by Neo4j
20 stars 1 forks source link

Unable to start GraphQL server in GraphQL Architect #13

Open toby-griffiths opened 3 years ago

toby-griffiths commented 3 years ago

I'm new to Neo4J & attempting to start up a GraphQL server from within Neo4J Desktop, however when opened it reports "Local GraphQL server not running".

When I click the 'Start' button, shortly afterwards I see INFO :: Local Graph Process Exit in the log window below the button.

And the LH panel just displays "Loading" spinner permanently.

Entries from the main.log


[2021-06-20 13:52:34.723] [info] Online check request: https://dist.neo4j.org/neo4j-desktop/win/latest.yml
[2021-06-20 13:52:34.824] [info] Online check response: 200 version: 1.4.5
files
[2021-06-20 13:52:45.819] [info] Online check request: https://dist.neo4j.org/neo4j-desktop/win/latest.yml
[2021-06-20 13:52:45.912] [info] Online check response: 200 version: 1.4.5
files
[2021-06-20 13:52:49.727] [error] Failed to send event to Desktop Project mixpanel MemoryInfo {
  event: '@grandstack/graphql-architect:desktop_startup-workspace_data',
  properties: MemoryInfo {
    graphPlatformId: 'neo4j-desktop',
    graphPlatformVersion: '1.4.5',
    platform: 'darwin',
    platformVersion: '10.15.7',
    distinct_id: 'client-[redacted]',
    appId: '@grandstack/graphql-architect',
    appVersion: '1.4.5',
    databaseId: 'database-[redacted]',
    dbmsName: 'Movies',
    dbmsVersion: '4.2.1',
    dbmsEdition: 'enterprise',
    token: '[redacted]]',
    mp_lib: 'node'
  }
}
[2021-06-20 13:52:49.885] [info] Executing node graphql inferschema --neo4j-user neo4j --neo4j-uri bolt://localhost:7687 --neo4j-password movies  --database neo4j
[2021-06-20 13:52:50.440] [error] Failed to send event to Desktop Project mixpanel {
  event: '@grandstack/graphql-architect:graphiql-save',
  properties: {
    graphPlatformId: 'neo4j-desktop',
    graphPlatformVersion: '1.4.5',
    platform: 'darwin',
    platformVersion: '10.15.7',
    distinct_id: 'client-[redacted]',
    appId: '@grandstack/graphql-architect',
    appVersion: '1.4.5',
    databaseId: 'database-[redacted]',
    dbmsName: 'neo4j',
    dbmsVersion: '4',
    token: '[redacted]]',
    mp_lib: 'node'
  }
}
[2021-06-20 13:52:50.443] [error] Failed to send event to Desktop Project mixpanel {
  event: '@grandstack/graphql-architect:typedefs-infer',
  properties: {
    graphPlatformId: 'neo4j-desktop',
    graphPlatformVersion: '1.4.5',
    platform: 'darwin',
    platformVersion: '10.15.7',
    distinct_id: 'client-[redacted]',
    appId: '@grandstack/graphql-architect',
    appVersion: '1.4.5',
    databaseId: 'database-[redacted]',
    dbmsName: 'neo4j',
    dbmsVersion: '4',
    token: '[redacted]]',
    mp_lib: 'node'
  }
}
[2021-06-20 13:52:51.519] [info] Process [81815] exit with code '0', signal 'null'
[2021-06-20 13:52:51.540] [error] Failed to send event to Desktop Project mixpanel {
  event: '@grandstack/graphql-architect:graphiql-save',
  properties: {
    graphPlatformId: 'neo4j-desktop',
    graphPlatformVersion: '1.4.5',
    platform: 'darwin',
    platformVersion: '10.15.7',
    distinct_id: 'client-[redacted]',
    appId: '@grandstack/graphql-architect',
    appVersion: '1.4.5',
    databaseId: 'database-[redacted]',
    dbmsName: 'neo4j',
    dbmsVersion: '4',
    token: '[redacted]]',
    mp_lib: 'node'
  }
}
[2021-06-20 13:53:00.454] [info] Executing node graphql dev --types type Person {
  name: String
  age: Int
  worksFor: [Company] @relation(name: "WORKS_FOR", direction: "OUT")
}

type Company {
  name: String
  employees: [Person] @relation(name: "WORKS_FOR", direction: "IN")
} --neo4j-user neo4j --neo4j-uri bolt://localhost:7687 --neo4j-password movies --graphql-port 4000  --database neo4j
[2021-06-20 13:53:01.606] [error] Failed to send event to Desktop Project mixpanel {
  event: '@grandstack/graphql-architect:localServer-start',
  properties: {
    graphPlatformId: 'neo4j-desktop',
    graphPlatformVersion: '1.4.5',
    platform: 'darwin',
    platformVersion: '10.15.7',
    distinct_id: 'client-[redacted]',
    appId: '@grandstack/graphql-architect',
    appVersion: '1.4.5',
    databaseId: 'database-[redacted]',
    dbmsName: 'neo4j',
    dbmsVersion: '4',
    token: '[redacted]]',
    mp_lib: 'node'
  }
}
[2021-06-20 13:53:03.650] [info] Process [81987] exit with code '0', signal 'null'
[2021-06-20 13:53:14.733] [info] Online check request: https://dist.neo4j.org/neo4j-desktop/win/latest.yml
[2021-06-20 13:53:14.866] [info] Online check response: 200 version: 1.4.5
files

OS: MacOS 10.15.7 (19H1217) Neo4J Desktop: 1.4.5 (1.4.5.55) Running as a non-admin with sudo permissions

L-Botero commented 3 years ago

Having the exact same issue OS: Windows 10 Neo4J Desktop: 1.4.7 Running as admin

image

lonniev commented 3 years ago

Does anyone have a video or article on what we should be seeing here? Probably, obviously, the Loading Spinner should go away. ;-) There's nothing evident to indicate what is going wrong. The Export feature claims to generate "local" files but nothing appears in the available folder path provided.

Functional tool or vaporware?

vimsvei commented 3 years ago

I've similar problem.

OS: MacOS 11.4 (20F71) Neo4j Desktop: Version 1.4.7

L-Botero commented 3 years ago

Looks like the tool stopped working after an update to Neo4j desktop, still waiting on a fix see here for answer from developer: https://github.com/grand-stack/graphql-architect/issues/10#issuecomment-772213054

SR253 commented 3 years ago

Same problem, infinite loop when trying to connect to local database. Latest version Neo4j Desktop

zhibor commented 2 years ago

hope this gets fixed soon.

kristianmandrup commented 2 years ago

This package is obsolete. Unfortunately the source code has not been made available so we can fix it.

Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.

It likely only works on an older version of the Neo4J Desktop which uses an older version of NodeJs and older dependencies (Neo4J Desktop from around 2019 - June 2020)

yarn add @grandstack/graphql-architect
yarn add v1.22.5
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning @grandstack/graphql-architect > react-scripts > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning @grandstack/graphql-architect > react-scripts > html-webpack-plugin@4.0.0-beta.11: please switch to a stable version
warning @grandstack/graphql-architect > react-scripts > eslint-loader@3.0.3: This loader has been deprecated. Please use eslint-webpack-plugin
warning @grandstack/graphql-architect > react-scripts > fsevents@2.1.2: "Please update to latest v2.3 or v2.2"
warning @grandstack/graphql-architect > fomantic-ui > gulp-concat-filenames > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
warning @grandstack/graphql-architect > fomantic-ui > gulp-dedupe > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
warning @grandstack/graphql-architect > react-scripts > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @grandstack/graphql-architect > fomantic-ui > gulp > glob-watcher > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @grandstack/graphql-architect > react-scripts > webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @grandstack/graphql-architect > semantic-ui-react > react-popper > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
warning @grandstack/graphql-architect > fomantic-ui > gulp-concat-css > rework > css > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning @grandstack/graphql-architect > fomantic-ui > gulp-concat-css > rework > css > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning @grandstack/graphql-architect > fomantic-ui > gulp-concat-css > rework > css > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning @grandstack/graphql-architect > react-scripts > babel-jest > @jest/transform > jest-haste-map > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @grandstack/graphql-architect > react-scripts > @svgr/webpack > @svgr/plugin-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning @grandstack/graphql-architect > react-scripts > webpack-dev-server > sockjs > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning @grandstack/graphql-architect > react-scripts > webpack-dev-server > webpack-log > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning @grandstack/graphql-architect > react-scripts > webpack-dev-server > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning @grandstack/graphql-architect > react-scripts > jest-environment-jsdom-fourteen > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @grandstack/graphql-architect > react-scripts > jest-environment-jsdom-fourteen > jsdom > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning @grandstack/graphql-architect > react-scripts > jest-environment-jsdom-fourteen > jsdom > request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
warning @grandstack/graphql-architect > react-scripts > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @grandstack/graphql-architect > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi@15.1.1: Switch to 'npm install joi'
warning @grandstack/graphql-architect > react-scripts > babel-jest > @jest/transform > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning @grandstack/graphql-architect > react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @grandstack/graphql-architect > react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
warning @grandstack/graphql-architect > react-scripts > optimize-css-assets-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning @grandstack/graphql-architect > react-scripts > jest-environment-jsdom-fourteen > jsdom > request > har-validator@5.1.5: this library is no longer supported
warning @grandstack/graphql-architect > react-scripts > postcss-preset-env > postcss-color-gray > postcss-values-parser > flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
warning @grandstack/graphql-architect > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
warning @grandstack/graphql-architect > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning @grandstack/graphql-architect > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
warning @grandstack/graphql-architect > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning @grandstack/graphql-architect > react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
warning @grandstack/graphql-architect > react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()
warning @grandstack/graphql-architect > react-scripts > workbox-webpack-plugin > workbox-build > strip-comments > babel-plugin-transform-object-rest-spread > babel-runtime > core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.