ilyakooo0 / warden

🛡️ A Bitwarden client for Ubuntu Touch
Other
9 stars 2 forks source link

Promise failed, couldn't extract JS error or string #55

Open gonchez opened 3 months ago

gonchez commented 3 months ago

Hi,

I have Ubuntu Touch 20.04 on my Fairphone 3, and when I introduce my correct login on Warden (correct user and password) it appears the next message:

Something went wrong! Promise failed, couldn't extract JS error or string

Is there any solution about this?

Thanks in advance. Warden can be a very useful app for me.

TheDeafenGuy commented 2 months ago

What OTA were you on? I see that in OTA-5, Morph Browser and qtwebengine got some updates. I do not have too much knowledge on JavaScript and HTML, but since the creator of this app said that CORS would cause issues, and the error you are facing is related to JavaScript, I suspect that this may be a CORS error. Perhaps qtwebengine or Morph Browser got updates that added CORS enforcement?

ilyakooo0 commented 2 months ago

@TheDeafenGuy What makes you think this is CORS?

TheDeafenGuy commented 2 months ago

Seeing as this is a JS error, and from what I know, it worked fine before OTA-5, I think it could be a CORS issue. This issue was posted 3 days before the post for OTA-5 was up on the Ubports blog. So @gonchez could have gotten OTA-5 before the post was up. As I said, I saw they updated qtwebengine and morph.

gonchez commented 2 months ago

Hi @TheDeafenGuy , I have OTA-5 and I have Warden still installed. When I try to log in with correct user and password, I get the same error message.

TheDeafenGuy commented 2 months ago

@gonchez Do you recall it working fine on OTA-4? If so, then I would assume it is either CORS or some other issue brought by the update to OTA-5.

TheDeafenGuy commented 1 month ago

It seems that I was wrong. I looked at the logs for the app and saw the following error that stood out to me:

[10/2/24 11:21 AM] Dbus error: QDBusError("org.freedesktop.DBus.Error.AccessDenied", "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.94\" (uid=32011 pid=4926 comm=\"webapp-container --local-content-can-access-remote\" label=\"soy.iko.warden_warden_1.2.4 (enforce)\") interface=\"com.lomiri.content.dbus.Service\" member=\"HasPending\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.lomiri.content.dbus.Service\" (uid=32011 pid=4579 comm=\"/usr/bin/content-hub-service \" label=\"unconfined\")")

I also saw an error for the same thing in the dbus logs for this app as well.

gonchez commented 1 month ago

Ok, so do you know any solution about it? It keeps the same for me, and it would be a really useful app if it was fine.

I keep on waiting...

Thanks a lot

ilyakooo0 commented 1 month ago

Unfortunately, I don't currently have the resources to work on this issue.

If someone would like to work on this I can arrange a quick call to go through the codebase and build process.