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

Unknown error: Failed to fetch on docker instance #45

Open
Terramoto opened this issue Sep 25, 2022 · 2 comments
Open

Unknown error: Failed to fetch on docker instance #45

Terramoto opened this issue Sep 25, 2022 · 2 comments

Comments

@Terramoto
Copy link

Hello,

I've just recently setup a Trilium container on a random port 32768. I'm trying to set it up on the extension but it's coming up with:
Unknown error: Failed to fetch on docker instance
image

With or without port being specified it generates the same error. It's like it's not even reaching the server.

@zadam
Copy link
Owner

zadam commented Sep 25, 2022

It's like it's not even reaching the server.

Looks like that, yes. Does Trilium load when you load 10.0.0.51:32768 in the browser?

@Terramoto
Copy link
Author

It's like it's not even reaching the server.

Looks like that, yes. Does Trilium load when you load 10.0.0.51:32768 in the browser?

Yep, i can access it and create notes. Not sure if it's because im running it on Brave Browser which is chromium based.
It looks like the error is triggered by these lines in options.js:
try { resp = await fetch($triliumServerUrl.val() + '/api/login/token', { method: "POST", headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: JSON.stringify({ username: $triliumServerUsername.val(), password: $triliumServerPassword.val() }) }); }

After including http:// in the server field it accepted the server, so everything working now.

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