Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Unable to set up Dimension. This version of Element may not supported or there may be a problem with the server. #471

Open
pratikbin opened this issue Feb 8, 2022 · 1 comment

Comments

@pratikbin
Copy link

pratikbin commented Feb 8, 2022

Getting Unable to set up Dimension. This version of Element may not supported or there may be a problem with the server.

image

Getting same whether Federation is enable(zero whitelist domains) or disable

Running everything in container using https://github.com/spantaleev/matrix-docker-ansible-deploy

Dimension verson (docker tags): 429-test, dependabot_npm_and_yarn_bl-4.0.3, dependabot_npm_and_yarn_dns-packet-1.3.4, dependabot_npm_and_yarn_elliptic-6.5.4, dependabot_npm_and_yarn_hosted-git-info-2.8.9, dependabot_npm_and_yarn_lodash-4.17.21, dependabot_npm_and_yarn_netmask-2.0.1, dependabot_npm_and_yarn_ssri-6.0.2, dependabot_npm_and_yarn_url-parse-1.5.1, dependabot_npm_and_yarn_y18n-4.0.1, latest, pre2021-12-13
element version: v1.10.0
synapse version: v1.51.0

config.yaml

admins:
- '@rakshit:xxx.xxxxxx.xxx'
- '@pratikbalar:xxx.xxxxxx.xxx'
- '@shyam:xxx.xxxxxx.xxx'
database:
    uri: postgres://matrix_dimension:xxxxx@matrix-postgres:5432/matrix_dimension
dimension:
    publicUrl: https://dimension.xxx.xxxxxx.xxx
goneb:
    avatars:
        circleci: mxc://t2bot.io/xxxx
        echo: mxc://t2bot.io/xxxx
        giphy: mxc://t2bot.io/xxxx
        github: mxc://t2bot.io/xxxx
        google: mxc://t2bot.io/xxxx
        guggy: mxc://t2bot.io/xxxx
        imgur: mxc://t2bot.io/xxxx
        jira: mxc://t2bot.io/xxxx
        rss: mxc://t2bot.io/xxxx
        travisci: mxc://t2bot.io/xxxx
        wikipedia: mxc://t2bot.io/xxxx
homeserver:
    accessToken: syt_ZGltZW5zaW9u_DaVHUBywaRbPWfLJQMZe_3rgqkh
    clientServerUrl: http://matrix-nginx-proxy:12080
    federationUrl: http://matrix-nginx-proxy:12088
    mediaUrl: https://matrix.xxx.xxxxxx.xxx
    name: xxx.xxxxxx.xxx
logging:
    console: true
    consoleLevel: verbose
    file: /dev/null
    fileLevel: info
    rotate:
        count: 5
        size: 52428800
web:
    address: 0.0.0.0
    port: 8184
widgetBlacklist:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
- 127.0.0.0/8

Dimension logs

Click to expand!
Feb 08 19:02:50 matrix-1 matrix-dimension[935448]: Error: Can't set headers after they are sent.
Feb 08 19:02:50 matrix-1 matrix-dimension[935448]:     at SendStream.headersAlreadySent (/home/node/matrix-dimension/node_modules/send/index.js:390:13)
Feb 08 19:02:50 matrix-1 matrix-dimension[935448]:     at SendStream.send (/home/node/matrix-dimension/node_modules/send/index.js:617:10)
Feb 08 19:02:50 matrix-1 matrix-dimension[935448]:     at onstat (/home/node/matrix-dimension/node_modules/send/index.js:729:10)
Feb 08 19:02:50 matrix-1 matrix-dimension[935448]:     at FSReqCallback.oncomplete (fs.js:193:5)
Feb 08 19:02:50 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:50 GMT [INFO] [Webserver] Incoming request: GET /element?scalar_token=redacted&room_id=!UPteKhUeThIigpHvIJ%3Axxx.xxxxxxx.xxx&room_name=DimensionTesting&theme=light
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [INFO] [Webserver] Incoming request: GET /api/v1/scalar/account?v=1.1&scalar_token=redacted
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [WARN] [MatrixSecurity] Request used old scalar_token auth - this will be removed in a future version
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "userId", "scalarToken", "isDimensionToken", "upstreamId" FROM "dimension_scalar_tokens" AS "UserScalarToken" WHERE "UserScalarToken"."userId" = '@pratikbalar:xxx.xxxxxxx.xxx';
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "name", "type", "scalarUrl", "apiUrl" FROM "dimension_upstreams" AS "Upstream";
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "UserScalarToken"."id", "UserScalarToken"."userId", "UserScalarToken"."scalarToken", "UserScalarToken"."isDimensionToken", "UserScalarToken"."upstreamId", "upstream"."id" AS "upstream.id", "upstream"."name" AS "upstream.name", "upstream"."type" AS "upstream.type", "upstream"."scalarUrl" AS "upstream.scalarUrl", "upstream"."apiUrl" AS "upstream.apiUrl" FROM "dimension_scalar_tokens" AS "UserScalarToken" LEFT OUTER JOIN "dimension_upstreams" AS "upstream" ON "UserScalarToken"."upstreamId" = "upstream"."id" WHERE "UserScalarToken"."isDimensionToken" = false AND "UserScalarToken"."userId" = '@dimension:xxx.xxxxxxx.xxx' AND "UserScalarToken"."upstreamId" = 1;
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [INFO] [ScalarClient] Doing upstream scalar request: https://scalar.vector.im/api/account
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [INFO] [Webserver] Incoming request: GET /img/logo/favicon/favicon-32x32.png
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [INFO] [Webserver] Incoming request: GET /img/logo/favicon/favicon-16x16.png
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [INFO] [Webserver] Incoming request: GET /img/logo/favicon/favicon.ico
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "termsId", "userId" FROM "dimension_terms_signed" AS "TermsSignedRecord" WHERE "TermsSignedRecord"."userId" = '@pratikbalar:xxx.xxxxxxx.xxx';
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "UserScalarToken"."id", "UserScalarToken"."userId", "UserScalarToken"."scalarToken", "UserScalarToken"."isDimensionToken", "UserScalarToken"."upstreamId", "upstream"."id" AS "upstream.id", "upstream"."name" AS "upstream.name", "upstream"."type" AS "upstream.type", "upstream"."scalarUrl" AS "upstream.scalarUrl", "upstream"."apiUrl" AS "upstream.apiUrl" FROM "dimension_scalar_tokens" AS "UserScalarToken" LEFT OUTER JOIN "dimension_upstreams" AS "upstream" ON "UserScalarToken"."upstreamId" = "upstream"."id" WHERE "UserScalarToken"."userId" = '@pratikbalar:xxx.xxxxxxx.xxx';
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "UserScalarToken"."id", "UserScalarToken"."userId", "UserScalarToken"."scalarToken", "UserScalarToken"."isDimensionToken", "UserScalarToken"."upstreamId", "upstream"."id" AS "upstream.id", "upstream"."name" AS "upstream.name", "upstream"."type" AS "upstream.type", "upstream"."scalarUrl" AS "upstream.scalarUrl", "upstream"."apiUrl" AS "upstream.apiUrl" FROM "dimension_scalar_tokens" AS "UserScalarToken" LEFT OUTER JOIN "dimension_upstreams" AS "upstream" ON "UserScalarToken"."upstreamId" = "upstream"."id" WHERE "UserScalarToken"."isDimensionToken" = false AND "UserScalarToken"."userId" = '@dimension:xxx.xxxxxxx.xxx' AND "UserScalarToken"."upstreamId" = 1;
Feb 08 19:02:51 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:51 GMT [INFO] [ScalarClient] Doing upstream scalar request: https://scalar.vector.im/_matrix/integrations/v1/account
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [INFO] [ScalarClient] Doing upstream scalar request: https://scalar.vector.im/_matrix/integrations/v1/account
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Error: Can't set headers after they are sent.
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]:     at SendStream.headersAlreadySent (/home/node/matrix-dimension/node_modules/send/index.js:390:13)
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]:     at SendStream.send (/home/node/matrix-dimension/node_modules/send/index.js:617:10)
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]:     at onstat (/home/node/matrix-dimension/node_modules/send/index.js:729:10)
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]:     at FSReqCallback.oncomplete (fs.js:193:5)
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [INFO] [Webserver] Incoming request: GET /api/v1/dimension/admin/check?scalar_token=redacted
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [WARN] [MatrixSecurity] Request used old scalar_token auth - this will be removed in a future version
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Error: Can't set headers after they are sent.
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]:     at SendStream.headersAlreadySent (/home/node/matrix-dimension/node_modules/send/index.js:390:13)
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]:     at SendStream.send (/home/node/matrix-dimension/node_modules/send/index.js:617:10)
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]:     at onstat (/home/node/matrix-dimension/node_modules/send/index.js:729:10)
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]:     at FSReqCallback.oncomplete (fs.js:193:5)
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [INFO] [Webserver] Incoming request: GET /api/v1/dimension/stickers/packs?scalar_token=redacted
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [WARN] [MatrixSecurity] Request used old scalar_token auth - this will be removed in a future version
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "userId", "scalarToken", "isDimensionToken", "upstreamId" FROM "dimension_scalar_tokens" AS "UserScalarToken" WHERE "UserScalarToken"."userId" = '@pratikbalar:xxx.xxxxxxx.xxx';
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [INFO] [Webserver] Incoming request: GET /api/v1/dimension/integrations/room/!UPteKhUeThIigpHvIJ:xxx.xxxxxxx.xxx?scalar_token=redacted
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [WARN] [MatrixSecurity] Request used old scalar_token auth - this will be removed in a future version
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "userId", "scalarToken", "isDimensionToken", "upstreamId" FROM "dimension_scalar_tokens" AS "UserScalarToken" WHERE "UserScalarToken"."userId" = '@pratikbalar:xxx.xxxxxxx.xxx';
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "name", "type", "scalarUrl", "apiUrl" FROM "dimension_upstreams" AS "Upstream";
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "name", "type", "scalarUrl", "apiUrl" FROM "dimension_upstreams" AS "Upstream";
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "UserScalarToken"."id", "UserScalarToken"."userId", "UserScalarToken"."scalarToken", "UserScalarToken"."isDimensionToken", "UserScalarToken"."upstreamId", "upstream"."id" AS "upstream.id", "upstream"."name" AS "upstream.name", "upstream"."type" AS "upstream.type", "upstream"."scalarUrl" AS "upstream.scalarUrl", "upstream"."apiUrl" AS "upstream.apiUrl" FROM "dimension_scalar_tokens" AS "UserScalarToken" LEFT OUTER JOIN "dimension_upstreams" AS "upstream" ON "UserScalarToken"."upstreamId" = "upstream"."id" WHERE "UserScalarToken"."isDimensionToken" = false AND "UserScalarToken"."userId" = '@dimension:xxx.xxxxxxx.xxx' AND "UserScalarToken"."upstreamId" = 1;
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "UserScalarToken"."id", "UserScalarToken"."userId", "UserScalarToken"."scalarToken", "UserScalarToken"."isDimensionToken", "UserScalarToken"."upstreamId", "upstream"."id" AS "upstream.id", "upstream"."name" AS "upstream.name", "upstream"."type" AS "upstream.type", "upstream"."scalarUrl" AS "upstream.scalarUrl", "upstream"."apiUrl" AS "upstream.apiUrl" FROM "dimension_scalar_tokens" AS "UserScalarToken" LEFT OUTER JOIN "dimension_upstreams" AS "upstream" ON "UserScalarToken"."upstreamId" = "upstream"."id" WHERE "UserScalarToken"."isDimensionToken" = false AND "UserScalarToken"."userId" = '@dimension:xxx.xxxxxxx.xxx' AND "UserScalarToken"."upstreamId" = 1;
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [INFO] [ScalarClient] Doing upstream scalar request: https://scalar.vector.im/api/account
Feb 08 19:02:52 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:52 GMT [INFO] [ScalarClient] Doing upstream scalar request: https://scalar.vector.im/api/account
Feb 08 19:02:53 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:53 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "termsId", "userId" FROM "dimension_terms_signed" AS "TermsSignedRecord" WHERE "TermsSignedRecord"."userId" = '@pratikbalar:xxx.xxxxxxx.xxx';
Feb 08 19:02:53 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:53 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "UserScalarToken"."id", "UserScalarToken"."userId", "UserScalarToken"."scalarToken", "UserScalarToken"."isDimensionToken", "UserScalarToken"."upstreamId", "upstream"."id" AS "upstream.id", "upstream"."name" AS "upstream.name", "upstream"."type" AS "upstream.type", "upstream"."scalarUrl" AS "upstream.scalarUrl", "upstream"."apiUrl" AS "upstream.apiUrl" FROM "dimension_scalar_tokens" AS "UserScalarToken" LEFT OUTER JOIN "dimension_upstreams" AS "upstream" ON "UserScalarToken"."upstreamId" = "upstream"."id" WHERE "UserScalarToken"."userId" = '@pratikbalar:xxx.xxxxxxx.xxx';
Feb 08 19:02:53 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:53 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "termsId", "userId" FROM "dimension_terms_signed" AS "TermsSignedRecord" WHERE "TermsSignedRecord"."userId" = '@pratikbalar:xxx.xxxxxxx.xxx';
Feb 08 19:02:53 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:53 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "UserScalarToken"."id", "UserScalarToken"."userId", "UserScalarToken"."scalarToken", "UserScalarToken"."isDimensionToken", "UserScalarToken"."upstreamId", "upstream"."id" AS "upstream.id", "upstream"."name" AS "upstream.name", "upstream"."type" AS "upstream.type", "upstream"."scalarUrl" AS "upstream.scalarUrl", "upstream"."apiUrl" AS "upstream.apiUrl" FROM "dimension_scalar_tokens" AS "UserScalarToken" LEFT OUTER JOIN "dimension_upstreams" AS "upstream" ON "UserScalarToken"."upstreamId" = "upstream"."id" WHERE "UserScalarToken"."userId" = '@pratikbalar:xxx.xxxxxxx.xxx';
Feb 08 19:02:53 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:53 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "UserScalarToken"."id", "UserScalarToken"."userId", "UserScalarToken"."scalarToken", "UserScalarToken"."isDimensionToken", "UserScalarToken"."upstreamId", "upstream"."id" AS "upstream.id", "upstream"."name" AS "upstream.name", "upstream"."type" AS "upstream.type", "upstream"."scalarUrl" AS "upstream.scalarUrl", "upstream"."apiUrl" AS "upstream.apiUrl" FROM "dimension_scalar_tokens" AS "UserScalarToken" LEFT OUTER JOIN "dimension_upstreams" AS "upstream" ON "UserScalarToken"."upstreamId" = "upstream"."id" WHERE "UserScalarToken"."isDimensionToken" = false AND "UserScalarToken"."userId" = '@dimension:xxx.xxxxxxx.xxx' AND "UserScalarToken"."upstreamId" = 1;
Feb 08 19:02:53 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:53 GMT [INFO] [ScalarClient] Doing upstream scalar request: https://scalar.vector.im/_matrix/integrations/v1/account
Feb 08 19:02:53 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:53 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "UserScalarToken"."id", "UserScalarToken"."userId", "UserScalarToken"."scalarToken", "UserScalarToken"."isDimensionToken", "UserScalarToken"."upstreamId", "upstream"."id" AS "upstream.id", "upstream"."name" AS "upstream.name", "upstream"."type" AS "upstream.type", "upstream"."scalarUrl" AS "upstream.scalarUrl", "upstream"."apiUrl" AS "upstream.apiUrl" FROM "dimension_scalar_tokens" AS "UserScalarToken" LEFT OUTER JOIN "dimension_upstreams" AS "upstream" ON "UserScalarToken"."upstreamId" = "upstream"."id" WHERE "UserScalarToken"."isDimensionToken" = false AND "UserScalarToken"."userId" = '@dimension:xxx.xxxxxxx.xxx' AND "UserScalarToken"."upstreamId" = 1;
Feb 08 19:02:53 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:53 GMT [INFO] [ScalarClient] Doing upstream scalar request: https://scalar.vector.im/_matrix/integrations/v1/account
Feb 08 19:02:53 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:53 GMT [INFO] [ScalarClient] Doing upstream scalar request: https://scalar.vector.im/_matrix/integrations/v1/account
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "type", "name", "avatarUrl", "description", "isEnabled", "isPublic" FROM "dimension_bridges" AS "BridgeRecord" WHERE "BridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [INFO] [BridgeStore] Checking bridge configuration: IRC Bridge
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "upstreamId", "provisionUrl", "isEnabled" FROM "dimension_irc_bridges" AS "IrcBridgeRecord" WHERE "IrcBridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [INFO] [BridgeStore] Checking bridge configuration: Telegram Bridge
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "upstreamId", "provisionUrl", "sharedSecret", "allowTgPuppets", "allowMxPuppets", "isEnabled" FROM "dimension_telegram_bridges" AS "TelegramBridgeRecord" WHERE "TelegramBridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "upstreamId", "provisionUrl", "sharedSecret", "allowTgPuppets", "allowMxPuppets", "isEnabled" FROM "dimension_telegram_bridges" AS "TelegramBridgeRecord" WHERE "TelegramBridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [INFO] [BridgeStore] Checking bridge configuration: Slack Bridge
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "upstreamId", "provisionUrl", "isEnabled" FROM "dimension_slack_bridges" AS "SlackBridgeRecord" WHERE "SlackBridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "upstreamId", "provisionUrl", "isEnabled" FROM "dimension_slack_bridges" AS "SlackBridgeRecord" WHERE "SlackBridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [INFO] [BridgeStore] Checking bridge configuration: Github Bridge
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "upstreamId", "provisionUrl", "sharedSecret", "isEnabled" FROM "dimension_hookshot_github_bridges" AS "HookshotGithubBridgeRecord" WHERE "HookshotGithubBridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "upstreamId", "provisionUrl", "sharedSecret", "isEnabled" FROM "dimension_hookshot_github_bridges" AS "HookshotGithubBridgeRecord" WHERE "HookshotGithubBridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [INFO] [BridgeStore] Checking bridge configuration: Jira Bridge
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "upstreamId", "provisionUrl", "sharedSecret", "isEnabled" FROM "dimension_hookshot_jira_bridges" AS "HookshotJiraBridgeRecord" WHERE "HookshotJiraBridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "upstreamId", "provisionUrl", "sharedSecret", "isEnabled" FROM "dimension_hookshot_jira_bridges" AS "HookshotJiraBridgeRecord" WHERE "HookshotJiraBridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [INFO] [BridgeStore] Checking bridge configuration: Webhooks Bridge
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "upstreamId", "provisionUrl", "sharedSecret", "isEnabled" FROM "dimension_hookshot_webhook_bridges" AS "HookshotWebhookBridgeRecord" WHERE "HookshotWebhookBridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "id", "upstreamId", "provisionUrl", "sharedSecret", "isEnabled" FROM "dimension_hookshot_webhook_bridges" AS "HookshotWebhookBridgeRecord" WHERE "HookshotWebhookBridgeRecord"."isEnabled" = true;
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [INFO] [HookshotBridge] Doing provision Hookshot Bridge request: http://matrix-nginx-proxy:12080/v1/connectiontypes
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [ERROR] [HookshotBridge] Got status code 404 when calling http://matrix-nginx-proxy:12080/v1/connectiontypes
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [ERROR] [HookshotBridge]
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: <html>
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:   <head><title>404 - No Such Resource</title></head>
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:   <body>
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     <h1>No Such Resource</h1>
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     <p>No such child resource.</p>
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:   </body>
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: </html>
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [ERROR] [HookshotBridge] SyntaxError: Unexpected token < in JSON at position 1
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at JSON.parse (<anonymous>)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Request._callback (/home/node/matrix-dimension/build/app/bridges/HookshotBridge.js:68:49)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Request.self.callback (/home/node/matrix-dimension/node_modules/request/request.js:185:22)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Request.emit (events.js:400:28)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Request.<anonymous> (/home/node/matrix-dimension/node_modules/request/request.js:1154:10)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Request.emit (events.js:400:28)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at IncomingMessage.<anonymous> (/home/node/matrix-dimension/node_modules/request/request.js:1076:12)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Object.onceWrapper (events.js:519:28)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at IncomingMessage.emit (events.js:412:35)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at endReadableNT (internal/streams/readable.js:1317:12)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at processTicksAndRejections (internal/process/task_queues.js:82:21)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: SyntaxError: Unexpected token < in JSON at position 1
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at JSON.parse (<anonymous>)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Request._callback (/home/node/matrix-dimension/build/app/bridges/HookshotBridge.js:68:49)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Request.self.callback (/home/node/matrix-dimension/node_modules/request/request.js:185:22)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Request.emit (events.js:400:28)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Request.<anonymous> (/home/node/matrix-dimension/node_modules/request/request.js:1154:10)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Request.emit (events.js:400:28)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at IncomingMessage.<anonymous> (/home/node/matrix-dimension/node_modules/request/request.js:1076:12)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at Object.onceWrapper (events.js:519:28)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at IncomingMessage.emit (events.js:412:35)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at endReadableNT (internal/streams/readable.js:1317:12)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at processTicksAndRejections (internal/process/task_queues.js:82:21)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:32:54 GMT [INFO] [ScalarClient] Doing upstream scalar request: https://scalar.vector.im/_matrix/integrations/v1/account
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]: Error: Can't set headers after they are sent.
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at SendStream.headersAlreadySent (/home/node/matrix-dimension/node_modules/send/index.js:390:13)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at SendStream.send (/home/node/matrix-dimension/node_modules/send/index.js:617:10)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at onstat (/home/node/matrix-dimension/node_modules/send/index.js:729:10)
Feb 08 19:02:54 matrix-1 matrix-dimension[935448]:     at FSReqCallback.oncomplete (fs.js:193:5)
Feb 08 19:03:00 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:00 GMT [DEBUG] [MatrixClientLite] Received sync. Next token: s572_16260_2_195_628_7_232_134_1
Feb 08 19:03:00 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:00 GMT [DEBUG] [MatrixClientLite] Performing sync with token s572_16260_2_195_628_7_232_134_1
Feb 08 19:03:00 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:00 GMT [DEBUG] [MatrixHttpClient (REQ-115)] GET http://matrix-nginx-proxy:12080/_matrix/client/r0/sync
Feb 08 19:03:10 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:10 GMT [DEBUG] [MatrixClientLite] Received sync. Next token: s572_16260_2_195_628_7_232_134_1
Feb 08 19:03:10 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:10 GMT [DEBUG] [MatrixClientLite] Performing sync with token s572_16260_2_195_628_7_232_134_1
Feb 08 19:03:10 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:10 GMT [DEBUG] [MatrixHttpClient (REQ-116)] GET http://matrix-nginx-proxy:12080/_matrix/client/r0/sync
Feb 08 19:03:20 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:20 GMT [DEBUG] [MatrixClientLite] Received sync. Next token: s572_16260_2_195_628_7_232_134_1
Feb 08 19:03:20 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:20 GMT [DEBUG] [MatrixClientLite] Performing sync with token s572_16260_2_195_628_7_232_134_1
Feb 08 19:03:20 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:20 GMT [DEBUG] [MatrixHttpClient (REQ-117)] GET http://matrix-nginx-proxy:12080/_matrix/client/r0/sync
Feb 08 19:03:20 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:20 GMT [DEBUG] [MatrixClientLite] Received sync. Next token: s572_16263_2_195_628_7_232_134_1
Feb 08 19:03:20 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:20 GMT [DEBUG] [MatrixClientLite] Performing sync with token s572_16263_2_195_628_7_232_134_1
Feb 08 19:03:20 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:20 GMT [DEBUG] [MatrixHttpClient (REQ-118)] GET http://matrix-nginx-proxy:12080/_matrix/client/r0/sync
Feb 08 19:03:30 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:30 GMT [DEBUG] [MatrixClientLite] Received sync. Next token: s572_16263_2_195_628_7_232_134_1
Feb 08 19:03:30 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:30 GMT [DEBUG] [MatrixClientLite] Performing sync with token s572_16263_2_195_628_7_232_134_1
Feb 08 19:03:30 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:30 GMT [DEBUG] [MatrixHttpClient (REQ-119)] GET http://matrix-nginx-proxy:12080/_matrix/client/r0/sync
Feb 08 19:03:40 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:40 GMT [DEBUG] [MatrixClientLite] Received sync. Next token: s572_16263_2_195_628_7_232_134_1
Feb 08 19:03:40 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:40 GMT [DEBUG] [MatrixClientLite] Performing sync with token s572_16263_2_195_628_7_232_134_1
Feb 08 19:03:40 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:40 GMT [DEBUG] [MatrixHttpClient (REQ-120)] GET http://matrix-nginx-proxy:12080/_matrix/client/r0/sync
Feb 08 19:03:50 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:50 GMT [DEBUG] [MatrixClientLite] Received sync. Next token: s572_16263_2_195_628_7_232_134_1
Feb 08 19:03:50 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:50 GMT [DEBUG] [MatrixClientLite] Performing sync with token s572_16263_2_195_628_7_232_134_1
Feb 08 19:03:50 matrix-1 matrix-dimension[935448]: Tue, 08 Feb 2022 13:33:50 GMT [DEBUG] [MatrixHttpClient (REQ-121)] GET http://matrix-nginx-proxy:12080/_matrix/client/r0/sync
@cksit
Copy link

cksit commented May 14, 2022

Tue, 08 Feb 2022 13:32:54 GMT [ERROR] [HookshotBridge] SyntaxError: Unexpected token < in JSON at position 1
May I know how you obtain your token?
Based on my experience, I have also encountered a similar error. But the issue is resolved when I used the curl method to get the access token.
[https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/configuring-playbook-dimension.md#access-token]
curl -X POST --header 'Content-Type: application/json' -d '{ "identifier": { "type": "m.id.user", "user": "YourDimensionUsername" }, "password": "YourDimensionPassword", "type": "m.login.password" }' 'https://matrix.YOURDOMAIN/_matrix/client/r0/login'

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

No branches or pull requests

2 participants