deep-foundation / deeplinks

https://discord.gg/deep-foundation
The Unlicense
14 stars 9 forks source link

PayloadTooLargeError: request entity too large #278

Open FreePhoenix888 opened 1 year ago

FreePhoenix888 commented 1 year ago

Error

[1] PayloadTooLargeError: request entity too large
[1]     at readStream (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:156:17)
[1]     at getRawBody (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:109:12)
[1]     at read (/workspace/dev/node_modules/express/node_modules/body-parser/lib/read.js:79:3)
[1]     at jsonParser (/workspace/dev/node_modules/express/node_modules/body-parser/lib/types/json.js:135:5)
[1]     at Layer.handle [as handle_request] (/workspace/dev/node_modules/express/lib/router/layer.js:95:5)
[1]     at trim_prefix (/workspace/dev/node_modules/express/lib/router/index.js:328:13)
[1]     at /workspace/dev/node_modules/express/lib/router/index.js:286:9
[1]     at Function.process_params (/workspace/dev/node_modules/express/lib/router/index.js:346:12)
[1]     at next (/workspace/dev/node_modules/express/lib/router/index.js:280:10)
[1]     at cors (/workspace/dev/node_modules/cors/lib/index.js:188:7)

How to reproduce

I do not kniw. I have just enabled my gitpod workspace with dev monorepository and this error appeared multiple times in the terminal

Full log

1:22:58 PM - Starting compilation in watch mode...
[5] 
[2] 
[2] > @deep-foundation/deeplinks@0.0.322 start-engine-docker
[2] > npm run start-engine-docker-core
[2] 
[1] 
[1] > @deep-foundation/deeplinks@0.0.322 dev
[1] > (cd local && docker-compose down || true) && cross-env PORT=3006 npm run launch
[1] 
[1] time="2023-11-23T13:22:58Z" level=warning msg="The \"MIGRATIONS_DATE_TYPE_SQL\" variable is not set. Defaulting to a blank string."
[1] time="2023-11-23T13:22:58Z" level=warning msg="The \"MIGRATIONS_RL_TABLE\" variable is not set. Defaulting to a blank string."
[1] time="2023-11-23T13:22:58Z" level=warning msg="The \"MIGRATIONS_SCHEMA\" variable is not set. Defaulting to a blank string."
[1] time="2023-11-23T13:22:58Z" level=warning msg="The \"DEEPLINKS_HASURA_STORAGE_URL\" variable is not set. Defaulting to a blank string."
[1] time="2023-11-23T13:22:58Z" level=warning msg="The \"MOESIF_TOKEN\" variable is not set. Defaulting to a blank string."
[1] time="2023-11-23T13:22:58Z" level=warning msg="The \"DEFAULT_RL_CRON_SCHEDULE\" variable is not set. Defaulting to a blank string."
[1] time="2023-11-23T13:22:58Z" level=warning msg="The \"DEEPLINKS_PORT\" variable is not set. Defaulting to a blank string."
[1] time="2023-11-23T13:22:58Z" level=warning msg="The \"RESERVED_LIFETIME_MS\" variable is not set. Defaulting to a blank string."
[3] 
[3] > @deep-foundation/sdk@0.0.0 dev
[3] > next dev
[3] 
[0] 
[0] > @deep-foundation/deepcase-app@0.1.0-beta.12 dev
[0] > next dev "-p" "3007"
[0] 
[2] 
[2] > @deep-foundation/deeplinks@0.0.322 start-engine-docker-core
[2] > cd ./../../node_modules/@deep-foundation/hasura && npm run docker
[2] 
[0] ready - started server on 0.0.0.0:3007, url: http://localhost:3007
[3] - ready started server on 0.0.0.0:4000, url: http://localhost:4000
[3] - info Loaded env from /workspace/dev/packages/sdk/.env.development
[2] 
[2] > @deep-foundation/hasura@0.0.60 docker
[2] > cross-env JWT_SECRET="{\"type\":\"HS256\",\"key\":\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\"}" HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/postgres HASURA_GRAPHQL_ENABLE_CONSOLE=true HASURA_GRAPHQL_DEV_MODE=true HASURA_GRAPHQL_LOG_LEVEL=debug HASURA_GRAPHQL_ENABLED_LOG_TYPES="startup, http-log, webhook-log, websocket-log, query-log" HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS=true HASURA_GRAPHQL_UNAUTHORIZED_ROLE=undefined POSTGRES_USER=postgres POSTGRES_PASSWORD=postgrespassword PGGSSENCMODE=disable PGSSLMODE=disable PGREQUIRESSL=0 MINIO_ROOT_USER=minioaccesskey MINIO_ROOT_PASSWORD=miniosecretkey HASURA_STORAGE_DEBUG=true HASURA_METADATA=1 HASURA_ENDPOINT=http://host.docker.internal:8080/v1 S3_ENDPOINT=http://host.docker.internal:9000 S3_ACCESS_KEY=minioaccesskey S3_SECRET_KEY=miniosecretkey S3_BUCKET=default S3_ROOT_FOLDER=default POSTGRES_MIGRATIONS=0 POSTGRES_MIGRATIONS_SOURCE=postgres://postgres:postgrespassword@host.docker.internal:5432/postgres?sslmode=disable npm run docker-local
[2] 
[0] warn  - Invalid next.config.js options detected: 
[0] warn  -     The root value has an unexpected property, webpack5, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, configOrigin, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, modularizeImports, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, skipMiddlewareUrlNormalize, skipTrailingSlashRedirect, staticPageGenerationTimeout, swcMinify, target, trailingSlash, transpilePackages, typescript, useFileSystemPublicRoutes, webpack).
[0] warn  -     The root value has an unexpected property, future, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, configOrigin, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, modularizeImports, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, skipMiddlewareUrlNormalize, skipTrailingSlashRedirect, staticPageGenerationTimeout, swcMinify, target, trailingSlash, transpilePackages, typescript, useFileSystemPublicRoutes, webpack).
[0] warn  -     The root value has an unexpected property, strictMode, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, configOrigin, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, modularizeImports, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, skipMiddlewareUrlNormalize, skipTrailingSlashRedirect, staticPageGenerationTimeout, swcMinify, target, trailingSlash, transpilePackages, typescript, useFileSystemPublicRoutes, webpack).
[0] warn  - See more info here: https://nextjs.org/docs/messages/invalid-next-config
[3] - warn Invalid next.config.js options detected: 
[3] - warn     The root value has an unexpected property, strictMode, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, configOrigin, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, modularizeImports, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, skipMiddlewareUrlNormalize, skipTrailingSlashRedirect, staticPageGenerationTimeout, swcMinify, target, trailingSlash, transpilePackages, typescript, useFileSystemPublicRoutes, webpack).
[3] - warn See more info here: https://nextjs.org/docs/messages/invalid-next-config
[0] warn  - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[2] 
[2] > @deep-foundation/hasura@0.0.60 docker-local
[2] > cd ./local && docker-compose -p deep up -d && cd ../
[2] 
[0] warn  - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[0] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[0] This information is used to shape Next.js' roadmap and prioritize features.
[0] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[0] https://nextjs.org/telemetry
[0] 
[3] - event compiled client and server successfully in 1396 ms (20 modules)
[3] - wait compiling...
[2] time="2023-11-23T13:23:10Z" level=warning msg="volume \"deep-db-data\" already exists but was not created by Docker Compose. Use `external: true` to use an existing volume"
[2]  Container deep-postgres  Running
[2]  Container deep-hasura  Running
[2]  Container deep-hasura-storage  Running
[2]  Container deep-minio  Running
[2] npm run gitpod-engine exited with code 0
[3] - event compiled client and server successfully in 1488 ms (20 modules)
[1] 
[1] > @deep-foundation/deeplinks@0.0.322 launch
[1] > npm run package:build && node ./index.js;
[1] 
[1] 
[1] > @deep-foundation/deeplinks@0.0.322 package:build
[1] > tsc --project tsconfig.json
[1] 
[0] event - compiled client and server successfully in 8.3s (183 modules)
[0] warn  - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[5] 
[5] 1:23:21 PM - Found 0 errors. Watching for file changes.
[1] [HPM] Proxy created: /  -> http://localhost:8080
[1] [HPM] Proxy rewrite rule created: "/gql" ~> "/v1/graphql"
[1] [HPM] Subscribed to http-proxy events: [ 'error', 'close' ]
[1] [HPM] Proxy created: /  -> http://localhost:8000
[1] [HPM] Subscribed to http-proxy events: [ 'error', 'close' ]
[1] [HPM] Proxy created: /  -> http://localhost:8080
[1] [HPM] Subscribed to http-proxy events: [ 'error', 'close' ]
[0] wait  - compiling...
[0] event - compiled successfully in 36 ms (38 modules)
[6] 
[6] 1:23:28 PM - Found 0 errors. Watching for file changes.
[0] wait  - compiling / (client and server)...
[0] warn  - ../deeplinks/imports/client.js
[0] Critical dependency: the request of a dependency is an expression
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/imports/client.js
[0] 
[0] ../deeplinks/imports/client.js
[0] Critical dependency: the request of a dependency is an expression
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/imports/client.js
[0] warn  - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[0] warn  - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[0] (node:2345) [DEP0128] DeprecationWarning: Invalid 'main' field in '/workspace/dev/node_modules/uid/package.json' of 'yes'. Please either fix that or report it to the module author
[0] (Use `node --trace-deprecation ...` to show where the warning was created)
[0] Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
[0] Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
[0] index-page-urls {
[0]   gqlPath: '3007-deepfoundation-dev-zv8j4wl17d5.ws-us106.gitpod.io/api/gql',
[0]   gqlSsl: true
[0] }
[0] connector-urls {
[0]   deeplinksPath: '3006-deepfoundation-dev-zv8j4wl17d5.ws-us106.gitpod.io',
[0]   deeplinksSsl: true,
[0]   serverUrl: 'https://3007-deepfoundation-dev-zv8j4wl17d5.ws-us106.gitpod.io'
[0] } {
[0]   defaultGqlPath: '3006-deepfoundation-dev-zv8j4wl17d5.ws-us106.gitpod.io/gql',
[0]   defaultGqlSsl: true,
[0]   defaultServerUrl: 'https://3007-deepfoundation-dev-zv8j4wl17d5.ws-us106.gitpod.io'
[0] }
[0] needAnalitics true
[4] 
[4] > @deep-foundation/dev@0.0.21 gitpod-hasura-reattach
[4] > export REATTACH_HASURA_SECRET=myadminsecretkey; export REATTACH_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}'); export REATTACH_HASURA_SSL=1; export REATTACH_DEEPLINKS_PATH=$(echo $(gp url 3006) | awk -F[/:] '{print $4}'); npx gulp gitpod:hasura:reattach
[4] 
[4] [13:24:58] Requiring external module ts-node/register
[4] [13:25:00] Using gulpfile /workspace/dev/gulpfile.ts
[4] [13:25:00] Starting 'gitpod:hasura:reattach'...
[4] 3006-deepfoundation-dev-zv8j4wl17d5.ws-us106.gitpod.io
[4] remote_schemas [
[4]   {
[4]     name: 'authorization',
[4]     definition: {
[4]       url: 'http://host.docker.internal:3006/api/authorization',
[4]       timeout_seconds: 120,
[4]       headers: [Array],
[4]       forward_client_headers: true
[4]     },
[4]     permissions: [ [Object], [Object] ]
[4]   },
[4]   {
[4]     name: 'guest',
[4]     definition: {
[4]       url: 'http://host.docker.internal:3006/api/guest',
[4]       timeout_seconds: 60,
[4]       headers: [Array],
[4]       forward_client_headers: true
[4]     },
[4]     permissions: [ [Object], [Object] ]
[4]   },
[4]   {
[4]     name: 'jwt',
[4]     definition: {
[4]       url: 'http://host.docker.internal:3006/api/jwt',
[4]       timeout_seconds: 120,
[4]       headers: [Array],
[4]       forward_client_headers: true
[4]     },
[4]     permissions: [ [Object], [Object] ]
[4]   },
[4]   {
[4]     name: 'packager',
[4]     definition: {
[4]       url: 'http://host.docker.internal:3006/api/packager',
[4]       timeout_seconds: 60,
[4]       headers: [Array],
[4]       forward_client_headers: true
[4]     },
[4]     permissions: [ [Object] ]
[4]   }
[4] ]
[4] remote_schema  {
[4]   name: 'authorization',
[4]   definition: {
[4]     url: 'http://host.docker.internal:3006/api/authorization',
[4]     timeout_seconds: 120,
[4]     headers: [ [Object] ],
[4]     forward_client_headers: true
[4]   },
[4]   permissions: [
[4]     { role: 'undefined', definition: [Object] },
[4]     { role: 'link', definition: [Object] }
[4]   ]
[4] }
[4] a http://host.docker.internal:3006/api/authorization
[4] error Bad Request {
[4]   path: '$.args',
[4]   error: 'remote schema with name "authorization" already exists',
[4]   code: 'already-exists'
[4] }
[4] remote_schema  {
[4]   name: 'guest',
[4]   definition: {
[4]     url: 'http://host.docker.internal:3006/api/guest',
[4]     timeout_seconds: 60,
[4]     headers: [ [Object] ],
[4]     forward_client_headers: true
[4]   },
[4]   permissions: [
[4]     { role: 'undefined', definition: [Object] },
[4]     { role: 'link', definition: [Object] }
[4]   ]
[4] }
[4] a http://host.docker.internal:3006/api/guest
[4] error Bad Request {
[4]   path: '$.args',
[4]   error: 'remote schema with name "guest" already exists',
[4]   code: 'already-exists'
[4] }
[4] remote_schema  {
[4]   name: 'jwt',
[4]   definition: {
[4]     url: 'http://host.docker.internal:3006/api/jwt',
[4]     timeout_seconds: 120,
[4]     headers: [ [Object] ],
[4]     forward_client_headers: true
[4]   },
[4]   permissions: [
[4]     { role: 'undefined', definition: [Object] },
[4]     { role: 'link', definition: [Object] }
[4]   ]
[4] }
[4] a http://host.docker.internal:3006/api/jwt
[4] error Bad Request {
[4]   path: '$.args',
[4]   error: 'remote schema with name "jwt" already exists',
[4]   code: 'already-exists'
[4] }
[4] remote_schema  {
[4]   name: 'packager',
[4]   definition: {
[4]     url: 'http://host.docker.internal:3006/api/packager',
[4]     timeout_seconds: 60,
[4]     headers: [ [Object] ],
[4]     forward_client_headers: true
[4]   },
[4]   permissions: [ { role: 'link', definition: [Object] } ]
[4] }
[4] a http://host.docker.internal:3006/api/packager
[4] error Bad Request {
[4]   path: '$.args',
[4]   error: 'remote schema with name "packager" already exists',
[4]   code: 'already-exists'
[4] }
[4] actions [
[4]   {
[4]     name: 'reserve',
[4]     definition: {
[4]       handler: 'http://host.docker.internal:3006/api/reserved',
[4]       output_type: 'reserveResponse',
[4]       forward_client_headers: true,
[4]       arguments: [Array],
[4]       type: 'mutation',
[4]       kind: 'synchronous'
[4]     },
[4]     permissions: [ [Object] ]
[4]   }
[4] ]
[4] a http://host.docker.internal:3006/api/reserved
[4] error Bad Request {
[4]   path: '$.args',
[4]   error: 'action with name "reserve" already exists',
[4]   code: 'already-exists'
[4] }
[4] custom_types { objects: [ { name: 'reserveResponse', fields: [Array] } ] }
[4] cron_triggers [
[4]   {
[4]     name: 'reserved_links_cleaner',
[4]     webhook: 'https://3006-deepfoundation-dev-zv8j4wl17d5.ws-us106.gitpod.io////////api/reserved-cleaner',
[4]     schedule: '0 * * * *',
[4]     include_in_metadata: true,
[4]     payload: {},
[4]     retry_conf: {
[4]       num_retries: 3,
[4]       timeout_seconds: 120,
[4]       tolerance_seconds: 21675,
[4]       retry_interval_seconds: 12
[4]     },
[4]     comment: 'clean reserved'
[4]   }
[4] ]
[4] a https://3006-deepfoundation-dev-zv8j4wl17d5.ws-us106.gitpod.io////////api/reserved-cleaner
[4] [13:25:02] Finished 'gitpod:hasura:reattach' after 2.04 s
[4] sleep 120 && npm run gitpod-hasura-reattach exited with code 0
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[0] warn  - ../deeplinks/imports/client.js
[0] Critical dependency: the request of a dependency is an expression
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/imports/client.js
[0] 
[0] ../deeplinks/imports/client.js
[0] Critical dependency: the request of a dependency is an expression
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/imports/client.js
[0] wait  - compiling /api/deeplinks (client and server)...
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[0] warn  - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[0] warn  - ../deeplinks/imports/client.js
[0] Critical dependency: the request of a dependency is an expression
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/imports/client.js
[0] 
[0] ../deeplinks/node_modules/cross-spawn/index.js
[0] Module not found: Can't resolve 'spawn-sync' in '/workspace/dev/packages/deeplinks/node_modules/cross-spawn'
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/node_modules/cross-spawn/index.js
[0] ../deeplinks/node_modules/execa/index.js
[0] ../deeplinks/node_modules/shell-env/index.js
[0] ../deeplinks/node_modules/shell-path/index.js
[0] ../deeplinks/node_modules/fix-path/index.js
[0] ../deeplinks/imports/engine.js
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[0] __dirname /workspace/dev/packages/deepcase-app/app/server/pages/api
[0] rootDir /workspace/dev/packages/deepcase-app
[0] warn  - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[0] warn  - ../deeplinks/imports/client.js
[0] Critical dependency: the request of a dependency is an expression
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/imports/client.js
[0] 
[0] ../deeplinks/node_modules/cross-spawn/index.js
[0] Module not found: Can't resolve 'spawn-sync' in '/workspace/dev/packages/deeplinks/node_modules/cross-spawn'
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/node_modules/cross-spawn/index.js
[0] ../deeplinks/node_modules/execa/index.js
[0] ../deeplinks/node_modules/shell-env/index.js
[0] ../deeplinks/node_modules/shell-path/index.js
[0] ../deeplinks/node_modules/fix-path/index.js
[0] ../deeplinks/imports/engine.js
[0] wait  - compiling /api/healthz (client and server)...
[0] warn  - The `app` directory is experimental. To enable, add `appDir: true` to your `next.config.js` configuration under `experimental`. See https://nextjs.org/docs/messages/experimental-app-dir-config
[0] warn  - ../deeplinks/imports/client.js
[0] Critical dependency: the request of a dependency is an expression
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/imports/client.js
[0] 
[0] ../deeplinks/node_modules/cross-spawn/index.js
[0] Module not found: Can't resolve 'spawn-sync' in '/workspace/dev/packages/deeplinks/node_modules/cross-spawn'
[0] 
[0] Import trace for requested module:
[0] ../deeplinks/node_modules/cross-spawn/index.js
[0] ../deeplinks/node_modules/execa/index.js
[0] ../deeplinks/node_modules/shell-env/index.js
[0] ../deeplinks/node_modules/shell-path/index.js
[0] ../deeplinks/node_modules/fix-path/index.js
[0] ../deeplinks/imports/engine.js
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep false
[0] existsSync logs false
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0]  export PATH='/workspace/dev/packages/deepcase-app/node_modules/.bin:/workspace/dev/packages/node_modules/.bin:/workspace/dev/node_modules/.bin:/workspace/node_modules/.bin:/node_modules/.bin:/workspace/dev/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/workspace/dev/node_modules/.bin:/workspace/node_modules/.bin:/node_modules/.bin:/workspace/dev/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/workspace/dev/node_modules/.bin:/workspace/node_modules/.bin:/node_modules/.bin:/home/gitpod/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/gitpod/.sdkman/candidates/maven/current/bin:/home/gitpod/.sdkman/candidates/java/current/bin:/home/gitpod/.sdkman/candidates/gradle/current/bin:/workspace/.cargo/bin:/home/gitpod/.rvm/gems/ruby-3.2.1/bin:/home/gitpod/.rvm/gems/ruby-3.2.1@global/bin:/home/gitpod/.rvm/rubies/ruby-3.2.1/bin:/home/gitpod/.pyenv/shims:/home/gitpod/.nvm/versions/node/v18.17.1/bin:/home/gitpod/.nvm/versions/node/v18.17.1/bin:/workspace/go/bin:/home/gitpod/.nix-profile/bin:/ide/bin/remote-cli:/home/gitpod/go/bin:/home/gitpod/go-packages/bin:/home/gitpod/.nvm/versions/node/v18.17.1/bin:/home/gitpod/.yarn/bin:/home/gitpod/.pnpm:/home/gitpod/.pyenv/bin:/home/gitpod/.rvm/bin:/home/gitpod/.cargo/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:/home/gitpod/.local/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/gitpod/.nvm/versions/node/v18.17.1/bin:/home/gitpod/.rvm/bin' && export DOCKERHOST=10.0.5.2 && export DEEPLINKS_PORT=3006 && export DEEPCASE_PORT=3007 && export DEEPLINKS_PUBLIC_URL=https://3006-deepfoundation-dev-zv8j4wl17d5.ws-us106.gitpod.io && export DEEPLINKS_HASURA_STORAGE_URL=http://localhost:8000 && export RESTORE_VOLUME_FROM_SNAPSHOT=1 && export MANUAL_MIGRATIONS=0 && export npm_config_yes=true && export JWT_SECRET='{"type":"HS256","key":"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R"}' && export HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/postgres && export HASURA_GRAPHQL_ENABLE_CONSOLE=true && export HASURA_GRAPHQL_DEV_MODE=true && export HASURA_GRAPHQL_LOG_LEVEL=debug && export HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup,http-log,webhook-log,websocket-log,query-log && export HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey && export HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS=true && export HASURA_GRAPHQL_UNAUTHORIZED_ROLE=undefined && export POSTGRES_USER=postgres && export POSTGRES_PASSWORD=postgrespassword && export PGGSSENCMODE=disable && export PGSSLMODE=disable && export PGREQUIRESSL=0 && export MINIO_ROOT_USER=minioaccesskey && export MINIO_ROOT_PASSWORD=miniosecretkey && export HASURA_STORAGE_DEBUG=true && export HASURA_METADATA=1 && export HASURA_ENDPOINT=http://host.docker.internal:8080/v1 && export S3_ENDPOINT=http://host.docker.internal:9000 && export S3_ACCESS_KEY=minioaccesskey && export S3_SECRET_KEY=miniosecretkey && export S3_BUCKET=default && export S3_ROOT_FOLDER=default && export POSTGRES_MIGRATIONS=0 && export POSTGRES_MIGRATIONS_SOURCE=postgres://postgres:postgrespassword@host.docker.internal:5432/postgres?sslmode=disable && export MIGRATIONS_ID_TYPE_SQL=bigint && export MIGRATIONS_ID_TYPE_GQL=bigint && export MIGRATIONS_HASURA_SECRET=myadminsecretkey && export DEEPLINKS_HASURA_SECRET=myadminsecretkey && export MIGRATIONS_SCHEMA=public && export MIGRATIONS_RL_TABLE=rl_example__links__reserved && export MIGRATIONS_DATE_TYPE_SQL=timestamp && export RESERVED_LIFETIME_MS=86400000 && export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006 && export MIGRATIONS_DIR=/tmp/deep && export MIGRATIONS_HASURA_PATH=$(gp url 8080) && export DEEPLINKS_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}') && export MIGRATIONS_HASURA_SSL=1 && export DEEPLINKS_HASURA_SSL=1 && export NEXT_PUBLIC_GQL_SSL=1 && export NEXT_PUBLIC_DEEPLINKS_SERVER=https://$(echo $(gp url 3007) | awk -F[/:] '{print $4}') && export NEXT_PUBLIC_GQL_PATH=$(echo $(gp url 3006) | awk -F[/:] '{print $4}')/gql && export NEXT_PUBLIC_ENGINES=1 &&  docker version -f '{{json .}}'
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[0] __dirname /workspace/dev/packages/deepcase-app/app/server/pages/api
[0] rootDir /workspace/dev/packages/deepcase-app
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0]  export PATH='/workspace/dev/packages/deepcase-app/node_modules/.bin:/workspace/dev/packages/node_modules/.bin:/workspace/dev/node_modules/.bin:/workspace/node_modules/.bin:/node_modules/.bin:/workspace/dev/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/workspace/dev/node_modules/.bin:/workspace/node_modules/.bin:/node_modules/.bin:/workspace/dev/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/workspace/dev/node_modules/.bin:/workspace/node_modules/.bin:/node_modules/.bin:/home/gitpod/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/gitpod/.sdkman/candidates/maven/current/bin:/home/gitpod/.sdkman/candidates/java/current/bin:/home/gitpod/.sdkman/candidates/gradle/current/bin:/workspace/.cargo/bin:/home/gitpod/.rvm/gems/ruby-3.2.1/bin:/home/gitpod/.rvm/gems/ruby-3.2.1@global/bin:/home/gitpod/.rvm/rubies/ruby-3.2.1/bin:/home/gitpod/.pyenv/shims:/home/gitpod/.nvm/versions/node/v18.17.1/bin:/home/gitpod/.nvm/versions/node/v18.17.1/bin:/workspace/go/bin:/home/gitpod/.nix-profile/bin:/ide/bin/remote-cli:/home/gitpod/go/bin:/home/gitpod/go-packages/bin:/home/gitpod/.nvm/versions/node/v18.17.1/bin:/home/gitpod/.yarn/bin:/home/gitpod/.pnpm:/home/gitpod/.pyenv/bin:/home/gitpod/.rvm/bin:/home/gitpod/.cargo/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:/home/gitpod/.local/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/gitpod/.nvm/versions/node/v18.17.1/bin:/home/gitpod/.rvm/bin' && export DOCKERHOST=10.0.5.2 && export DEEPLINKS_PORT=3006 && export DEEPCASE_PORT=3007 && export DEEPLINKS_PUBLIC_URL=https://3006-deepfoundation-dev-zv8j4wl17d5.ws-us106.gitpod.io && export DEEPLINKS_HASURA_STORAGE_URL=http://localhost:8000 && export RESTORE_VOLUME_FROM_SNAPSHOT=1 && export MANUAL_MIGRATIONS=0 && export npm_config_yes=true && export JWT_SECRET='{"type":"HS256","key":"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R"}' && export HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/postgres && export HASURA_GRAPHQL_ENABLE_CONSOLE=true && export HASURA_GRAPHQL_DEV_MODE=true && export HASURA_GRAPHQL_LOG_LEVEL=debug && export HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup,http-log,webhook-log,websocket-log,query-log && export HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey && export HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS=true && export HASURA_GRAPHQL_UNAUTHORIZED_ROLE=undefined && export POSTGRES_USER=postgres && export POSTGRES_PASSWORD=postgrespassword && export PGGSSENCMODE=disable && export PGSSLMODE=disable && export PGREQUIRESSL=0 && export MINIO_ROOT_USER=minioaccesskey && export MINIO_ROOT_PASSWORD=miniosecretkey && export HASURA_STORAGE_DEBUG=true && export HASURA_METADATA=1 && export HASURA_ENDPOINT=http://host.docker.internal:8080/v1 && export S3_ENDPOINT=http://host.docker.internal:9000 && export S3_ACCESS_KEY=minioaccesskey && export S3_SECRET_KEY=miniosecretkey && export S3_BUCKET=default && export S3_ROOT_FOLDER=default && export POSTGRES_MIGRATIONS=0 && export POSTGRES_MIGRATIONS_SOURCE=postgres://postgres:postgrespassword@host.docker.internal:5432/postgres?sslmode=disable && export MIGRATIONS_ID_TYPE_SQL=bigint && export MIGRATIONS_ID_TYPE_GQL=bigint && export MIGRATIONS_HASURA_SECRET=myadminsecretkey && export DEEPLINKS_HASURA_SECRET=myadminsecretkey && export MIGRATIONS_SCHEMA=public && export MIGRATIONS_RL_TABLE=rl_example__links__reserved && export MIGRATIONS_DATE_TYPE_SQL=timestamp && export RESERVED_LIFETIME_MS=86400000 && export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006 && export MIGRATIONS_DIR=/tmp/deep && export MIGRATIONS_HASURA_PATH=$(gp url 8080) && export DEEPLINKS_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}') && export MIGRATIONS_HASURA_SSL=1 && export DEEPLINKS_HASURA_SSL=1 && export NEXT_PUBLIC_GQL_SSL=1 && export NEXT_PUBLIC_DEEPLINKS_SERVER=https://$(echo $(gp url 3007) | awk -F[/:] '{print $4}') && export NEXT_PUBLIC_GQL_PATH=$(echo $(gp url 3006) | awk -F[/:] '{print $4}')/gql && export NEXT_PUBLIC_ENGINES=1 &&  docker-compose version --short
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[0] MIGRATIONS_DIR /tmp/deep
[0] existsSync deep true
[0] existsSync logs true
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] GET /gql ~> http://localhost:8080
[1] [HPM] Upgrading to WebSocket
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] GET /gql ~> http://localhost:8080
[1] [HPM] Upgrading to WebSocket
[1] [HPM] Rewriting path from "/gql" to "/v1/graphql"
[1] [HPM] POST /gql ~> http://localhost:8080
[1] PayloadTooLargeError: request entity too large
[1]     at readStream (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:156:17)
[1]     at getRawBody (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:109:12)
[1]     at read (/workspace/dev/node_modules/express/node_modules/body-parser/lib/read.js:79:3)
[1]     at jsonParser (/workspace/dev/node_modules/express/node_modules/body-parser/lib/types/json.js:135:5)
[1]     at Layer.handle [as handle_request] (/workspace/dev/node_modules/express/lib/router/layer.js:95:5)
[1]     at trim_prefix (/workspace/dev/node_modules/express/lib/router/index.js:328:13)
[1]     at /workspace/dev/node_modules/express/lib/router/index.js:286:9
[1]     at Function.process_params (/workspace/dev/node_modules/express/lib/router/index.js:346:12)
[1]     at next (/workspace/dev/node_modules/express/lib/router/index.js:280:10)
[1]     at cors (/workspace/dev/node_modules/cors/lib/index.js:188:7)
[1] PayloadTooLargeError: request entity too large
[1]     at readStream (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:156:17)
[1]     at getRawBody (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:109:12)
[1]     at read (/workspace/dev/node_modules/express/node_modules/body-parser/lib/read.js:79:3)
[1]     at jsonParser (/workspace/dev/node_modules/express/node_modules/body-parser/lib/types/json.js:135:5)
[1]     at Layer.handle [as handle_request] (/workspace/dev/node_modules/express/lib/router/layer.js:95:5)
[1]     at trim_prefix (/workspace/dev/node_modules/express/lib/router/index.js:328:13)
[1]     at /workspace/dev/node_modules/express/lib/router/index.js:286:9
[1]     at Function.process_params (/workspace/dev/node_modules/express/lib/router/index.js:346:12)
[1]     at next (/workspace/dev/node_modules/express/lib/router/index.js:280:10)
[1]     at cors (/workspace/dev/node_modules/cors/lib/index.js:188:7)
[1] PayloadTooLargeError: request entity too large
[1]     at readStream (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:156:17)
[1]     at getRawBody (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:109:12)
[1]     at read (/workspace/dev/node_modules/express/node_modules/body-parser/lib/read.js:79:3)
[1]     at jsonParser (/workspace/dev/node_modules/express/node_modules/body-parser/lib/types/json.js:135:5)
[1]     at Layer.handle [as handle_request] (/workspace/dev/node_modules/express/lib/router/layer.js:95:5)
[1]     at trim_prefix (/workspace/dev/node_modules/express/lib/router/index.js:328:13)
[1]     at /workspace/dev/node_modules/express/lib/router/index.js:286:9
[1]     at Function.process_params (/workspace/dev/node_modules/express/lib/router/index.js:346:12)
[1]     at next (/workspace/dev/node_modules/express/lib/router/index.js:280:10)
[1]     at cors (/workspace/dev/node_modules/cors/lib/index.js:188:7)
[1] PayloadTooLargeError: request entity too large
[1]     at readStream (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:156:17)
[1]     at getRawBody (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:109:12)
[1]     at read (/workspace/dev/node_modules/express/node_modules/body-parser/lib/read.js:79:3)
[1]     at jsonParser (/workspace/dev/node_modules/express/node_modules/body-parser/lib/types/json.js:135:5)
[1]     at Layer.handle [as handle_request] (/workspace/dev/node_modules/express/lib/router/layer.js:95:5)
[1]     at trim_prefix (/workspace/dev/node_modules/express/lib/router/index.js:328:13)
[1]     at /workspace/dev/node_modules/express/lib/router/index.js:286:9
[1]     at Function.process_params (/workspace/dev/node_modules/express/lib/router/index.js:346:12)
[1]     at next (/workspace/dev/node_modules/express/lib/router/index.js:280:10)
[1]     at cors (/workspace/dev/node_modules/cors/lib/index.js:188:7)