You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/12/17 00:41:53 UTC
[GitHub] [superset] erick-enriquez-dd opened a new issue, #22442: The request to the Slack API failed when configuring alerts and reports
erick-enriquez-dd opened a new issue, #22442:
URL: https://github.com/apache/superset/issues/22442
A clear and concise description of what the bug is.
When configuring alerts and reports, I am seeing the following error in my production environment. I used the same exact Slack API token in my staging environment and had no issues. I have printed the token out in superset_config.py to verify. Is there some issue with using the same token in two different instances?
```
| superset [2022-12-17 00:34:00,175: INFO/ForkPoolWorker-31] Scheduling alert Test2 eta: 2022-12-17 00:34:00 │
│ superset Query for Test2 took 84.05 ms │
│ superset [2022-12-17 00:34:00,361: INFO/ForkPoolWorker-31] Query for Test2 took 84.05 ms │
│ superset Screenshotting chart at http://superset:8088/superset/slice/85/?standalone=true │
│ superset [2022-12-17 00:34:00,372: INFO/ForkPoolWorker-31] Screenshotting chart at http://superset:8088/superset/slic │
│ superset Init selenium driver │
│ superset [2022-12-17 00:34:00,375: INFO/ForkPoolWorker-31] Init selenium driver │
│ superset Taking a PNG screenshot or url http://superset:8088/superset/slice/85/?standalone=true&standalone=3 │
│ superset [2022-12-17 00:34:11,699: INFO/ForkPoolWorker-31] Taking a PNG screenshot or url http://superset:8088/supers │
│ superset Report state: The request to the Slack API failed. │
│ superset The server responded with: {'ok': False, 'error': 'not_authed'} │
│ superset [2022-12-17 00:34:12,363: INFO/ForkPoolWorker-31] Report state: The request to the Slack API failed. │
│ superset The server responded with: {'ok': False, 'error': 'not_authed'}
```
- browser type and version: chrome 108
- superset version: `1.3.1`
### Additional context
I configured the environment variable SLACK_API_TOKEN via a helm chart under the subfield values.superset.supersetNode.env.SLACK_API_TOKEN. This environment variable is visible when I describe my main superset pod but not visible in superset-custom-env (it was visible in my staging's version of superset-custom-env).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] erick-enriquez-dd commented on issue #22442: The request to the Slack API failed when configuring alerts and reports
Posted by GitBox <gi...@apache.org>.
erick-enriquez-dd commented on issue #22442:
URL: https://github.com/apache/superset/issues/22442#issuecomment-1358683484
Still unresolved. It seems that despite SLACK_API_TOKEN receiving the appropriate token in config.py, it isn't making it all the way through to the API call.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] nytai commented on issue #22442: The request to the Slack API failed when configuring alerts and reports
Posted by GitBox <gi...@apache.org>.
nytai commented on issue #22442:
URL: https://github.com/apache/superset/issues/22442#issuecomment-1355904830
Token reuse shouldn't be a problem. Looks like you configured thinks correctly in your staging instance, I'd suggest you apply whatever you did there to prod :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] The request to the Slack API failed when configuring alerts and reports [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #22442:
URL: https://github.com/apache/superset/issues/22442#issuecomment-1946591769
Closing this as stale since it's been silent for so long, and we're trying to steer toward a more actionable Issues backlog. If people are still encountering this in current versions (currently 3.x) please re-open this issue, open a new Issue with updated context, or raise a PR to address the problem. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] nytai commented on issue #22442: The request to the Slack API failed when configuring alerts and reports
Posted by GitBox <gi...@apache.org>.
nytai commented on issue #22442:
URL: https://github.com/apache/superset/issues/22442#issuecomment-1355900220
🤷 not sure what to say, seems like it's an issue with your token or environment. You could try generation a new token for prod.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] kcirerick commented on issue #22442: The request to the Slack API failed when configuring alerts and reports
Posted by GitBox <gi...@apache.org>.
kcirerick commented on issue #22442:
URL: https://github.com/apache/superset/issues/22442#issuecomment-1356442529
Yea I have `SLACK_API_TOKEN` set as an environment variable because I need it to read from an external secrets manager. I then call `SLACK_API_TOKEN = os.getenv(SLACK_API_TOKEN, none)` in my config overrides. I printed the token in my logs and it seems to appear fine. Just wanted to check that it wasn't an issue with the double-use. I'll keep looking, thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] The request to the Slack API failed when configuring alerts and reports [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #22442: The request to the Slack API failed when configuring alerts and reports
URL: https://github.com/apache/superset/issues/22442
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] nytai commented on issue #22442: The request to the Slack API failed when configuring alerts and reports
Posted by GitBox <gi...@apache.org>.
nytai commented on issue #22442:
URL: https://github.com/apache/superset/issues/22442#issuecomment-1370168949
maybe your network is blocking access to the slack api?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org