Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after initial start of the application (404 Not Found) #18

Open
schminkel opened this issue Jul 7, 2023 · 3 comments
Open

Error after initial start of the application (404 Not Found) #18

schminkel opened this issue Jul 7, 2023 · 3 comments

Comments

@schminkel
Copy link

Following the "Get Started" on https://houdinigraphql.com/intro the application did not to work properly after initial start.

npx degit houdinigraphql/intro hello-houdini
cd hello-houdini
npm i
npm run dev

node -v (v18.16.0)
open  http://localhost:5173/

Error: Not found: /
at resolve (/node_modules/@sveltejs/kit/src/runtime/server/respond.js:394:13)
at resolve (/node_modules/@sveltejs/kit/src/runtime/server/respond.js:243:5)
at #options.hooks.handle (/node_modules/@sveltejs/kit/src/runtime/server/index.js:41:55)
at Module.respond (/node_modules/@sveltejs/kit/src/runtime/server/respond.js:240:40)
Error: Not found: /
at resolve (/node_modules/@sveltejs/kit/src/runtime/server/respond.js:394:13)
at resolve (/node_modules/@sveltejs/kit/src/runtime/server/respond.js:243:5)
at #options.hooks.handle (/node_modules/@sveltejs/kit/src/runtime/server/index.js:41:55)
at Module.respond (/node_modules/@sveltejs/kit/src/runtime/server/respond.js:240:40)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

image

Thanks for your support!

@kasparpalgi
Copy link

500 Internal Error for me at http://localhost:5173/6

@kasparpalgi
Copy link

Ah, didn't chech that should use the final branch. That one gives me more detailed error:

SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)
    at Proxy.eval (/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:286:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async eval (/@fs/C:/git/course/houdini-pokemon-final/$houdini/runtime/client/plugins/fetch.js:62:12)
    at async network (/@fs/C:/git/course/houdini-pokemon-final/$houdini/runtime/client/plugins/fetch.js:23:24)

@kasparpalgi
Copy link

I suspect it was API issue. As I don't know the test API used, I just connected to my Hasura GraphQL API endpoint and worked well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants