Skip to content

Error : Failed to parse URL from undefined/health #1

Description

@yunhariadi

Failed to parse URL from undefined/health

○ Compiling /api/generate-report ...
✓ Compiled /api/generate-report in 576ms (2104 modules)
Error in generate-report API route: TypeError: Failed to parse URL from undefined/health
at POST (app/api/generate-report/route.ts:25:33)
23 |
24 | // Get backend status first

25 | const healthResponse = await fetch(${process.env.NEXT_PUBLIC_BACKEND_URL}/health, {
| ^
26 | headers
27 | });
28 | {
[cause]: TypeError: Invalid URL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions