(req: IncomingMessage, res: ServerResponse)
| 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 |
no test coverage detected