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

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

Open
gonchez opened this issue Jul 27, 2024 · 6 comments
Open

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

gonchez opened this issue Jul 27, 2024 · 6 comments

Comments

@gonchez
Copy link

gonchez commented Jul 27, 2024

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
Copy link

TheDeafenGuy commented Sep 9, 2024

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
Copy link
Owner

@TheDeafenGuy What makes you think this is CORS?

@TheDeafenGuy
Copy link

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
Copy link
Author

gonchez commented Sep 10, 2024

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
Copy link

@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
Copy link

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.

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

3 participants