Hey guys,
I’m taking an acloud.guru course on the serverless framework. I left a message on the portion I’m having trouble with, but thought i’d stop being so shy and ask for help in other places! Let me know if this wasn’t appropriate.
For those who might be familiar with the course - ://acloud.guru/course/serverless-chatbot/dashboard - The part i’m getting stuck on is the first installation function, which generates a generic slack API error (please let me know if the information provided is sensitive, I don’t believe it is)…
I go to create a slack button > add the slack button > selecting forex > checkmarking bot and unchecking everthing else > clicking add to slack my error.html page appears…
checking the error logs, I see the following…
START RequestId: 1742f3fb-980d-11e7-88e2-55c87ca16c93 Version: $LATEST
2017-09-12 15:52:45.388 (-07:00) 1742f3fb-980d-11e7-88e2-55c87ca16c93 Requesting token with 239594296340.239650116689.8104c5b5d591bbb8bfd30b909526fa7a67435188a817fd629a1332b3d7294d5d
2017-09-12 15:52:45.389 (-07:00) 1742f3fb-980d-11e7-88e2-55c87ca16c93 Fetching ://slack.com/api/oauth.access?clientid=239594296340.240813514535&clientsecret=&code=239594296340.239650116689.8104c5b5d591bbb8bfd30b909526fa7a67435188a817fd629a1332b3d7294d5d
2017-09-12 15:52:45.566 (-07:00) 1742f3fb-980d-11e7-88e2-55c87ca16c93 [Error: SlackAPIError]
END RequestId: 1742f3fb-980d-11e7-88e2-55c87ca16c93
REPORT RequestId: 1742f3fb-980d-11e7-88e2-55c87ca16c93 Duration: 182.48 ms Billed Duration: 200 ms Memory Size: 1024 MBMax Memory Used: 22 MB
The client ID is correct, I have no idea what’s going on with the secret code, but it contains part of the client ID…
I found a way to get a tad more by taking the http url and entering into my browser.
The original error shared in my post was generating the following json…
[{"ok":false,"error":"invalid_client_id"}](https://slack.com/api/oauth.access?clientid=239594296340.240813514535&clientsecret=&code=239594296340.239650116689.8104c5b5d591bbb8bfd30b909526fa7a67435188a817fd629a1332b3d7294d5d )
I’ve seem to made it past that, and now the error generates the following json error…
[{"ok":false,"error":"bad_client_secret"}](https://slack.com/api/oauth.access?client_id=239594296340.240813514535&client_secret=&code=239594296340.241143299862.28155ee9eb9fc96434ac4fec06993c6cd596330219563797a6f61a476ce801c0)
I tried regenerating anew secret key, updating server.yml, and redeploying, but to no avail. Still get the same non descriptive API error.
I realize this is probably more of a slack issue, but since the topic of these forums regard serverless apps I wanted to know if anyone has any insight on how I could troubleshoot this further? If more details are needed, I can provide those as well!
Cyrus
I’m quite stumped here, any ideas?