devika icon indicating copy to clipboard operation
devika copied to clipboard

Ollama WebUI Backend Required (Svelte Package Error)

Open blevlabs opened this issue 1 year ago • 1 comments

SvelteKitError: Not found: /api/v1/
    at resolve (/home/blabs/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:522:13)
    at resolve (/home/blabs/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:322:5)
    at #options.hooks.handle (/home/blabs/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/index.js:71:56)
    at Module.respond (/home/blabs/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:319:40) {
  status: 404,
  text: 'Not Found'
}
12:05:16 PM [vite] page reload .svelte-kit/generated/server/internal.js
12:05:16 PM [vite] page reload .svelte-kit/generated/root.svelte

Also, unfortunately every time I boot the service I run into this issue. Ollama is running on my backend.

image

Any ideas to fix this?

blevlabs avatar Mar 23 '24 16:03 blevlabs

fetch the latest changes. are you still facing the same issue.

ARajgor avatar Apr 03 '24 18:04 ARajgor

@ARajgor I'm facing the same issue with the latest changes. Any idea on the fix?

  ➜  Local:   http://localhost:3000/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
SvelteKitError: Not found: /api/v1/
    at resolve (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:522:13)
    at resolve (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:322:5)
    at #options.hooks.handle (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/index.js:71:56)
    at Module.respond (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:319:40) {
  status: 404,
  text: 'Not Found'

ghost avatar Apr 06 '24 18:04 ghost

@ARajgor I'm facing the same issue with the latest changes. Any idea on the fix?

  ➜  Local:   http://localhost:3000/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
SvelteKitError: Not found: /api/v1/
    at resolve (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:522:13)
    at resolve (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:322:5)
    at #options.hooks.handle (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/index.js:71:56)
    at Module.respond (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:319:40) {
  status: 404,
  text: 'Not Found'

What the node version??

ARajgor avatar Apr 06 '24 18:04 ARajgor

@ARajgor I'm facing the same issue with the latest changes. Any idea on the fix?

  ➜  Local:   http://localhost:3000/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
SvelteKitError: Not found: /api/v1/
    at resolve (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:522:13)
    at resolve (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:322:5)
    at #options.hooks.handle (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/index.js:71:56)
    at Module.respond (/Users/jnarayan/Documents/AI/devika/ui/node_modules/@sveltejs/kit/src/runtime/server/respond.js:319:40) {
  status: 404,
  text: 'Not Found'

What the node version??

v18.16.0

ghost avatar Apr 06 '24 18:04 ghost

@jeyadevnarayanan is it showing the UI?

ARajgor avatar Apr 06 '24 18:04 ARajgor

@jeyadevnarayanan is it showing the UI?

So I just did a clean install of all the components and its working now. Thanks!

ghost avatar Apr 06 '24 18:04 ghost