cgwire / kitsu-publisher-next

Send previews from your DCC to the Kitsu Collaboration Platform
GNU General Public License v3.0
21 stars 7 forks source link

Can't connect to server #42

Open lukas-remis opened 1 week ago

lukas-remis commented 1 week ago

Context

Studio name: Imaginary Pixels Kitsu publisher version: 0.5.1 Kitsu publisher installer: msi/appimage Zou/Kitsu installation type: selfhosted

Desktop (please complete the following information):

Describe the bug Can't connect to Kitsu server. Getting: The connection to the server failed, please verify the address. Tried from Windows and Linux

EvanBldy commented 1 week ago

Hi @lukas-remis, Which address do you use ? Can you open the console (shift+ctrl+i) and copy the logs ?

lukas-remis commented 1 week ago

It's showing this:

192.168.1.200/api/auth/authenticated:1 Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID Login.vue:155 Error: Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc. at x.crossDomainError (client.js:651:17) at XMLHttpRequest. (client.js:754:19) (anonymous) @ Login.vue:155 (anonymous) @ login.js:73 (anonymous) @ auth.js:23 x.callback @ client.js:641 x.crossDomainError @ client.js:656 (anonymous) @ client.js:754 XMLHttpRequest.send (async) x._end @ client.js:831 x.end @ client.js:707 logIn @ auth.js:17 logIn @ login.js:66 (anonymous) @ vuex.esm-bundler.js:305 ht.dispatch @ vuex.esm-bundler.js:1032 dispatch @ vuex.esm-bundler.js:914 n. @ vuex.esm-bundler.js:1281 confirmLogIn @ Login.vue:147 QG.P.onClick.t..t. @ Login.vue:76 qn @ runtime-core.esm-bundler.js:155 kt @ runtime-core.esm-bundler.js:164 n @ runtime-dom.esm-bundler.js:354 client.js:831 POST https://192.168.1.200/api/auth/login net::ERR_CERT_AUTHORITY_INVALID x._end @ client.js:831 x.end @ client.js:707 logIn @ auth.js:17 logIn @ login.js:66 (anonymous) @ vuex.esm-bundler.js:305 ht.dispatch @ vuex.esm-bundler.js:1032 dispatch @ vuex.esm-bundler.js:914 n. @ vuex.esm-bundler.js:1281 confirmLogIn @ Login.vue:147 QG.P.onClick.t..t. @ Login.vue:76 qn @ runtime-core.esm-bundler.js:155 kt @ runtime-core.esm-bundler.js:164 n @ runtime-dom.esm-bundler.js:354

We're using SSL. I'm assuming the self signed certificate is a problem here?

EvanBldy commented 1 week ago

Yeah, can you try to connect in http instead?

lukas-remis commented 1 week ago

I've made some modifications to our server settings and I can now correctly log in from Windows. But on Ubuntu I'm getting an infinite loading animation. This is in the logs:

192.168.1.200/api/data/user/context:1 Failed to load resource: the server responded with a status of 403 (FORBIDDEN) init.js:20 An init operation failed: Error: FORBIDDEN at x. (client.js:450:21) at t.emit (index.js:145:20) at XMLHttpRequest. (client.js:757:10) (anonymous) @ init.js:20

I've tried Appimage and .deb versions. Both showing the same error. BTW where is the publisher saving the server settings? It seems both deb and appimage version are using the same settings.

EvanBldy commented 1 week ago

They are in ~/.config/kitsu-publisher, you should try to delete them.

lukas-remis commented 1 week ago

Deleted settings but still getting the same error and loading animation.

EvanBldy commented 1 week ago

Do you have MFA set for your account ?

lukas-remis commented 1 week ago

You mean 2-factor authentication? No, I don't And as mentioned, Publisher works fine on Windows. So this seems like a Linux version problem. I've tried on 2 different Ubuntu computers, with same result.