MCPcopy Index your code
hub / github.com/slackapi/bolt-js / handleInstallPathRequest

Method handleInstallPathRequest

src/receivers/HTTPReceiver.ts:529–544  ·  view source on GitHub ↗
(req: IncomingMessage, res: ServerResponse)

Source from the content-addressed store, hash-verified

527 }
528
529 private handleInstallPathRequest(req: IncomingMessage, res: ServerResponse) {
530 // TODO:: this essentially ejects functionality out of the event loop, doesn't seem like a good idea unless intentional? should review
531 // NOTE: Wrapped in an async closure for ease of using await
532 (async () => {
533 try {
534 // biome-ignore lint/style/noNonNullAssertion: TODO: should check for falsiness
535 await this.installer!.handleInstallPath(req, res, this.installPathOptions, this.installUrlOptions);
536 } catch (err) {
537 const e = err as Error;
538 this.logger.error(
539 `An unhandled error occurred while Bolt processed a request to the installation path (${e.message})`,
540 );
541 this.logger.debug(`Error details: ${e}`);
542 }
543 })();
544 }
545
546 private handleInstallRedirectRequest(req: IncomingMessage, res: ServerResponse) {
547 // This function is only called from within unboundRequestListener after checking that installer is defined, and

Callers 1

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected