-
Notifications
You must be signed in to change notification settings - Fork 399
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
Initialization includes unhandled async request #248
Comments
I can reproduce this. It looks like there's a bug with our |
@shaydewael @seratch @aoberoi any update on this? No rush, just curious. The only reason it's an issue is it can sometimes mask/muddle other problems like this one (see the comment at the bottom of the issue). |
👋 Hey there, thanks for checking in. We haven't started working on this yet, but I agree that it should be a relatively high priority to get this bug out of your way. I'm adding it to our project board now. |
@aoberoi we ended up fixing it on our end just by making the Slack init something we wait for instead of having it just start and assuming it'll work. We realized that that pattern was introducing other problems too, so I'm glad we refactored to fix it. I'd still love to see this handled in some way so I could chose to ignore the error. |
@SpencerKaiser Having the similar issue, have any code to share your fix? I'm just looking to verify tokens before discarding the App. |
@DanielTamkin we have a decent workaround, but still not great. |
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. |
Description
On initializing an App, it appears a call to the API test endpoint is made but the response is not being handled appropriately.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Creating an app with bad credentials results in an
UnhandledPromiseRejectionWarning
.Reproducible in:
package version: *
node version: *
OS version(s): *
Steps to reproduce:
Expected result:
The app should handle the failed response and then throw an appropriate error when used after the faulty initialization.
In my opinion, this auth test call shouldn't be a part of the initialization, but I can see why y'all would add it.
Actual result:
The app initializes and an
UnhandledPromiseRejectionWarning
occursAdditional Info
Here are the logs for the above snippet:
The text was updated successfully, but these errors were encountered: