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 configuring Slack integration #6073

Open
rickbijkerk opened this issue Dec 3, 2024 · 1 comment
Open

Error while configuring Slack integration #6073

rickbijkerk opened this issue Dec 3, 2024 · 1 comment

Comments

@rickbijkerk
Copy link
Contributor

Context:

  • we're trying to connect hive to our slack
  • with identical hive config and the same slackbot it did work on our staging environment
  • trying to integrate with slack on our pro environment leads to the following error in the log:
image
GraphQLError: Variable "$input" got invalid value { organization: "my-organization" }; Field value.token of required type String! was not provided.
    at getVariables (eval at compileVariableParsing (file:///usr/src/app/@hive/server/index.js:249937:23), <anonymous>:44:23)
    at addSlackIntegration (file:///usr/src/app/@hive/server/index.js:250335:35)
    at ValueOrPromise.then.result.stringify (file:///usr/src/app/@hive/server/index.js:349701:37)
    at new ValueOrPromise (file:///usr/src/app/@hive/server/index.js:270170:15)
    at jitExecutor (file:///usr/src/app/@hive/server/index.js:349701:12)
    at file:///usr/src/app/@hive/server/index.js:349406:75
    at file:///usr/src/app/@hive/server/index.js:269844:22
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async YogaServer.getResultForParams (file:///usr/src/app/@hive/server/index.js:275279:18)
    at async handle (file:///usr/src/app/@hive/server/index.js:275355:20)
    at async file:///usr/src/app/@hive/server/index.js:358390:24
    at async Object.<anonymous> (file:///usr/src/app/@hive/server/index.js:358387:5) {
  locations: [ { line: 1, column: 30 } ]
}

it looks like the https://slack.com/api/oauth.v2.access call does not get a token as a response?
i already double checked the INTEGRATION_SLACK_CLIENT_SECRET and its correct.
Any clue with it can be/experience with it?

Hive version: 10-sept-2024

@kamilkisiela
Copy link
Contributor

Pushing this #6261 to validate the response from Slack API and detect missing access_token field.

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

No branches or pull requests

2 participants