solid-start icon indicating copy to clipboard operation
solid-start copied to clipboard

Fetch failed

Open intermundos opened this issue 3 years ago • 0 comments

Hello all!

I have this code block

export function routeData() {
    return createServerData$(
        async key => {
            const response = await fetch( `http://localhost:9000/some` )
            return ( await response.json() )
        }
    )
}

When visiting the page I get following error Screen Shot 2022-11-21 at 19 56 31

This is what I get in terminal Screen Shot 2022-11-21 at 20 06 35

Tried to fetch with createRouteData but no luck either. I am using Mockoon that is running at port 9000. Doing fetch on client works without problems.

Would appreciate any help. Thanks!

intermundos avatar Nov 21 '22 17:11 intermundos