You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just started a self-hosted instance via docker compose, and correctly setup the some users and pages.
When I come accros an unattended behaviour / error during the addition of a new block TableView.
Adding the TableView view block apparently work, and I'm able to add new record and interact with the existing one, but when you try to open one record the full UI freeze and you need to reload the page.
I was able to identify some console errors that occurs on the addition of the block TableView, following the screenshot:
Tested on the following browsers:
Safari Version 18.0.1 (20619.1.26.31.7)
Google Chrome Version 130.0.6723.92 (Official Build) (arm64) ]
I assume that the error are linked to the following request that fails in the browser:
And the following error on the running container affine-graphql:stable :
[Nest] 117 - 11/06/2024, 8:26:25 AM ERROR [GraphQL] Internal server error
GraphQLError: Cannot query field "copilot" on type"UserType".
at Object.Field (/app/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js:51:13)
at Object.enter (/app/node_modules/graphql/language/visitor.js:301:32)
at Object.enter (/app/node_modules/graphql/utilities/TypeInfo.js:391:27)
at visit (/app/node_modules/graphql/language/visitor.js:197:21)
at validate (/app/node_modules/graphql/validation/validate.js:91:24)
at processGraphQLRequest (/app/node_modules/@apollo/server/dist/cjs/requestPipeline.js:101:61)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async internalExecuteOperation (/app/node_modules/@apollo/server/dist/cjs/ApolloServer.js:644:16)
at async runHttpQuery (/app/node_modules/@apollo/server/dist/cjs/runHttpQuery.js:135:29)
at async runPotentiallyBatchedHttpQuery (/app/node_modules/@
Other informations:
the instance is running on a intel base server
the instance is served over HTTPS behind a proxy
the docker compose used for the instance is:
services:
affine:
image: ghcr.io/toeverything/affine-graphql:canarycontainer_name: affine_selfhostedcommand:
['sh', '-c', 'node ./scripts/self-host-predeploy && node ./dist/index.js']ports:
- '3010:3010'
- '5555:5555'depends_on:
redis:
condition: service_healthypostgres:
condition: service_healthyvolumes:
# custom configurations
- ./config:/root/.affine/config# blob storage
- ./storage:/root/.affine/storagelogging:
driver: 'json-file'options:
max-size: '1000m'restart: unless-stoppedenvironment:
- NODE_OPTIONS="--import=./scripts/register.js"
- AFFINE_CONFIG_PATH=/root/.affine/config
- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgres://affine:affine@postgres:5432/affine
- NODE_ENV=production
- [email protected]
- AFFINE_ADMIN_PASSWORD=SuperSecretTempPassword
- AFFINE_SERVER_HOST=affine.domain.com
- AFFINE_SERVER_HTTPS=true# Telemetry allows us to collect data on how you use the affine. This data will helps us improve the app and provide better features.# Uncomment next line if you wish to quit telemetry.# - TELEMETRY_ENABLE=falseredis:
image: rediscontainer_name: affine_redisrestart: unless-stoppedvolumes:
- ./redis:/datahealthcheck:
test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping']interval: 10stimeout: 5sretries: 5postgres:
image: postgrescontainer_name: affine_postgresrestart: unless-stoppedvolumes:
- ./postgres:/var/lib/postgresql/datahealthcheck:
test: ['CMD-SHELL', 'pg_isready -U affine']interval: 10stimeout: 5sretries: 5environment:
POSTGRES_USER: affinePOSTGRES_PASSWORD: affinePOSTGRES_DB: affinePGDATA: /var/lib/postgresql/data/pgdata
Distribution version
macOS ARM 64 (Apple Silicon)
What browsers are you seeing the problem on if you're using web version?
Chrome, Safari
Are you self-hosting?
Yes
Relevant log output
[Nest] 117 - 11/06/2024, 8:26:25 AM ERROR [GraphQL] Internal server error
GraphQLError: Cannot query field "copilot" on type"UserType".
at Object.Field (/app/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js:51:13)
at Object.enter (/app/node_modules/graphql/language/visitor.js:301:32)
at Object.enter (/app/node_modules/graphql/utilities/TypeInfo.js:391:27)
at visit (/app/node_modules/graphql/language/visitor.js:197:21)
at validate (/app/node_modules/graphql/validation/validate.js:91:24)
at processGraphQLRequest (/app/node_modules/@apollo/server/dist/cjs/requestPipeline.js:101:61)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async internalExecuteOperation (/app/node_modules/@apollo/server/dist/cjs/ApolloServer.js:644:16)
at async runHttpQuery (/app/node_modules/@apollo/server/dist/cjs/runHttpQuery.js:135:29)
at async runPotentiallyBatchedHttpQuery (/app/node_modules/@
Anything else?
The text was updated successfully, but these errors were encountered:
What happened?
Hi,
I just started a self-hosted instance via docker compose, and correctly setup the some users and pages.
When I come accros an unattended behaviour / error during the addition of a new block TableView.
Adding the TableView view block apparently work, and I'm able to add new record and interact with the existing one, but when you try to open one record the full UI freeze and you need to reload the page.
I was able to identify some console errors that occurs on the addition of the block TableView, following the screenshot:
Tested on the following browsers:
I assume that the error are linked to the following request that fails in the browser:
And the following error on the running container affine-graphql:stable :
Other informations:
the docker compose used for the instance is:
Distribution version
macOS ARM 64 (Apple Silicon)
What browsers are you seeing the problem on if you're using web version?
Chrome, Safari
Are you self-hosting?
Relevant log output
Anything else?
The text was updated successfully, but these errors were encountered: