api icon indicating copy to clipboard operation
api copied to clipboard

Bug: /v1/health/service endpoint is broken

Open nightknighto opened this issue 3 years ago • 3 comments

Describe the bug

The endpoint https://api.opensauced.pizza/v1/health/service is broken. It returns an error page.

image

On local development, it gives a 500 internal error, and in console, this error:

[Nest] 28396  - 10/12/2022, 8:20:00 PM   ERROR [ExceptionsHandler] The following path is invalid (should be X:\...): /
InvalidPathError: The following path is invalid (should be X:\...): /
    at powershellCmd (I:\CODING\MLH\api.opensauced.pizza\node_modules\check-disk-space\dist\check-disk-space.cjs:144:24)
    at new Promise (<anonymous>)
    at checkWin32 (I:\CODING\MLH\api.opensauced.pizza\node_modules\check-disk-space\dist\check-disk-space.cjs:143:20)
    at DiskHealthIndicator.checkDiskSpace (I:\CODING\MLH\api.opensauced.pizza\node_modules\check-disk-space\dist\check-disk-space.cjs:194:16)
    at DiskHealthIndicator.<anonymous> (I:\CODING\MLH\api.opensauced.pizza\node_modules\@nestjs\terminus\dist\health-indicator\disk\disk.health.js:82:47)
    at Generator.next (<anonymous>)
    at I:\CODING\MLH\api.opensauced.pizza\node_modules\@nestjs\terminus\dist\health-indicator\disk\disk.health.js:20:71
    at new Promise (<anonymous>)
    at __awaiter (I:\CODING\MLH\api.opensauced.pizza\node_modules\@nestjs\terminus\dist\health-indicator\disk\disk.health.js:16:12)       
    at DiskHealthIndicator.checkStorage (I:\CODING\MLH\api.opensauced.pizza\node_modules\@nestjs\terminus\dist\health-indicator\disk\disk.health.js:81:16)

Steps to reproduce

Go to https://api.opensauced.pizza/v1/health/service

Affected services

api.opensauced.pizza

Platforms

Desktop

Browsers

Firefox

Environment

Production, Development

Additional context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Contributing Docs

  • [X] I agree to follow this project's Contribution Docs

nightknighto avatar Oct 12 '22 18:10 nightknighto