Skip to content

Type errro in lib/query-http.ts:72:22 #9864

@nandalalshukla

Description

@nandalalshukla

What is the URL where the issue is happening

./src/lib/query-http.ts

What browsers are you seeing the problem on?

No response

Describe the Bug

the error occured when i was setting up the repo locally.

Failed to parse URL from undefined/v1-list-official-roadmaps

Image

Stack Trace
TypeError: Failed to parse URL from undefined/v1-list-official-roadmaps
at node:internal/deps/undici/undici:14900:13
at async httpCall (D:\practice\developer-roadmap\src\lib\query-http.ts:72:22)

Cause
{
"code": "ERR_INVALID_URL",
"input": "undefined/v1-list-official-roadmaps"
}

this is the function where the error is occuring:

const response = await fetch(fullUrl, {

^
credentials: 'include',
...options,
headers,
});

Output from browser console (if any)

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions