Closed saccohuo closed 2 months ago
Same here
`The error messages you provided indicate several issues related to JavaScript and possibly an associated framework that might not be named or described in your question. Here are some explanations for each of these errors:
SVG Attribute Error:
Hello. I am also getting same error. A flash of correct screen, followed by error message being displayed.
Pasting console log below:
/api/settings?detailed=true:1
Failed to load resource: the server responded with a status of 403 (Forbidden)
fd9d1056-2b978342deb60015.js:1 Error:
Failed to load resource: the server responded with a status of 403 (Forbidden)
7023-52c1be60135eb057.js:1 TypeError: Cannot read properties of undefined (reading 'icon')
at page-36c7dd2d51d747e5.js:1:22255
at Array.map (
Describe the bug
Open localhost:42110, after a flash of some window, then get the blank page with error
Application error: a client-side exception has occurred (see the browser console for more information).
In the console, shows
fd9d1056-2b978342deb60015.js:1 Error: <svg> attribute height: Expected length
.Screenshots
Platform
* Server: * [ ] Cloud-Hosted (https://app.khoj.dev) * [x] Self-Hosted Docker * [ ] Self-Hosted Python package * [ ] Self-Hosted source code * Client: * [ ] Obsidian * [ ] Emacs * [ ] Desktop app * [x] Web browser * [ ] WhatsApp * OS: * [x] Windows * [ ] macOS * [ ] Linux * [ ] Android * [ ] iOS
If self-hosted
* Server Version [e.g. 1.0.1]: I cannot get the version.
Additional context
Add any other context about the problem here.
Hello. I am also getting same error.
issue fix update this value in docker-compose.yml KHOJ_DEBUG=True and upgrade the build docker-compose up --build
please try this
issue fix update this value in docker-compose.yml KHOJ_DEBUG=True and upgrade the build docker-compose up --build
please try this
No luck, still get the same error after rebuild, after a quick flash of normal page, error page kicks in
Hello I am having the same problem on Debian Bookworm (self-hosting with Docker).
It seems the problem is in the page.tsx:114 file of the web frontend. Specifically one of the agents in the agents
array seems to be undefined which in turn causes the error. I'm not sure what the root cause of it is, but modifying the code from:
const agentIcons = agents.map(
(agent) =>
getIconFromIconName(agent.icon, agent.color) || (
<Image
key={agent.name}
src={agent.avatar}
alt={agent.name}
width={50}
height={50}
/>
),
);
to:
const agentIcons = agents.filter(agent => agent !== null && agent !== undefined).map(
(agent) =>
getIconFromIconName(agent.icon, agent.color) || (
<Image
key={agent.name}
src={agent.avatar}
alt={agent.name}
width={50}
height={50}
/>
),
);
seems to work. Of course you need to make the docker-compose build from source instead of pull the image for the changes to take effect.
Hey folks! Sorry about this, let me push a fix for this. This should also be resolved if you setup a chat model configuration and restart your server. Thanks for the root cause discovery, @Miskina !
Hey folks! Sorry about this, let me push a fix for this. This should also be resolved if you setup a chat model configuration and restart your server. Thanks for the root cause discovery, @Miskina !
Hi, Sabi
Can you please tell us how to setup a chat model config in docker compose? by adding a environment parameter or what ? Thank you.
@sabaimran Hi, the 1.20.4 version solves the problem, but I get Bad Request (400)
when I visit http://<myip>:42110/server/admin
.
@sabaimran Hi, the 1.20.4 version solves the problem, but I get
Bad Request (400)
when I visithttp://<myip>:42110/server/admin
.
I'm having the same problem, blank 400 page for /server/admin
@sabaimran Hi, could you please fix this problem? Many thanks.
I'll make some time to look into it today or tomorrow @saccohuo . You're able to load the rest of the app, right? And are you able to load it on localhost
, or is it always returning a bad request 400? Some more details about your setup will be helpful to debug.
I'll make some time to look into it today or tomorrow @saccohuo . You're able to load the rest of the app, right? And are you able to load it on
localhost
, or is it always returning a bad request 400? Some more details about your setup will be helpful to debug.我会在今天或明天抽时间来看看这个问题 @saccohuo。你能加载应用的其他部分吗?你能在localhost
上加载吗,还是总是返回错误请求 400?关于你的设置的更多细节将有助于调试。
@sabaimran After Application error: a client-side exception has occurred (see the browser console for more information).
problem solved, I get 400 at http://<myip>:42110/server/admin
.
I cannot set the model, so I cannot do anything to it.
@sabaimran Hi, is any update?
Hi folks, this issue seems to contain 2 separate issues, both of which should be resolved:
On issue 2. @saccohuo,
http://<myip>:42110/server/admin
when run from PR #919.I get Bad Request (400) when I visit http://
:42110/server/admin.
I can reproduce the Bad Request (400) page when trying to access the server admin page when the KHOJ_DOMAIN
environment variable in the docker-compose.yml
isn't (correctly) set to <myip>
. This issue can be resolved by setting the environment variable KHOJ_DOMAIN=<myip>
in your docker-compose.yml
for folks who got stuck trying to setup their Khoj server for remote access
- Delete your Khoj docker container, images and volumes (with
docker-compose down --volumes
)- Get the latest Khoj docker-compose.yml . The Docker setup has been simplified in #919 using self hosted Khoj
- Edit the downloaded khoj docker-compose.yml for Remote Access and Chat Models you want to enable by default. See the new Remote Access Doc and the updated Self Hosting Setup Docs for details
- Now startup Khoj by running
docker-compose up
I'm closing this issue as the original bug has been resolved. Feel free to create a new issue if you're still facing problems with remote access. Details on how you tried to setup Khoj (OS, Docker vs Pip) and what error you're seeing (screenshots or server logs) would be useful to troubleshoot
Describe the bug
Open localhost:42110, after a flash of some window, then get the blank page with error
Application error: a client-side exception has occurred (see the browser console for more information).
In the console, shows
fd9d1056-2b978342deb60015.js:1 Error: <svg> attribute height: Expected length
.Screenshots
Platform
If self-hosted
Additional context
Add any other context about the problem here.