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

Deepl API key not working #412

Open
wokawoka opened this issue Nov 7, 2024 · 11 comments
Open

Deepl API key not working #412

wokawoka opened this issue Nov 7, 2024 · 11 comments
Labels
bug Something isn't working deepl Issues affecting the DeepL provider

Comments

@wokawoka
Copy link

wokawoka commented Nov 7, 2024

Hello, I was trying to enter my deepl API key (free but working, I have used it with other tools before) and I am able to enter it, dialect validates the key correctly and closes the pop-up dialog but apparently nothing happens.

My key is validated (and I don't get any invalid key error, as was happening e.g. here #389 ) but it is simply not considered by dialect.

Any suggestion? Thank you!

@rafaelmardojai
Copy link
Member

So the API key is validated and saved in the preferences right? Then what happens? Do you get an "Invalid API key" error when translating or opening the app?

@wokawoka
Copy link
Author

wokawoka commented Nov 7, 2024

Actually the key is not saved in the preferences (but at the same time I do not get any red error as when I enter an invalid key) and when I click on the check button the dialog just closes.
Since the key is not saved, the main screen of the program remains on “API key is required to use the service” when I close the options window
The key is valid and I am copying it from the deepl dashboard

@mufeedali
Copy link
Member

What platform are you using and how was the package installed? I'm unable to reproduce this with my API key on the Flatpak

@wokawoka
Copy link
Author

wokawoka commented Nov 7, 2024

Ubuntu 24.04 / KDE 5.27.11
installed version 2.5.0 via flatpak
I just create a fresh deepl API key and tried again but I am still getting the same issue
just let me know if I can provide more info to try to debug in a deeper way
thank you very much

@mufeedali
Copy link
Member

Can you run the app from a terminal using flatpak run app.drey.Dialect, try to save the API key and send us the terminal logs?

@wokawoka
Copy link
Author

wokawoka commented Nov 7, 2024

this is the message I am getting after trying to save the API key:

(dialect:2): Gtk-WARNING **: 19:43:16.781: GtkText - did not receive a focus-out event.
If you handle this event, you must return
GDK_EVENT_PROPAGATE so the default handler gets the event as well
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)

@mufeedali mufeedali added the bug Something isn't working label Nov 7, 2024
@mufeedali
Copy link
Member

@wokawoka Can share the complete log?

@wokawoka
Copy link
Author

wokawoka commented Nov 7, 2024

@wokawoka Can share the complete log?

sure
here it is:

$ flatpak run app.drey.Dialect
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:763: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:794: FINISHME: support more multi-planar formats with DRM modifiers
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)

(dialect:2): Gtk-WARNING **: 19:57:47.820: GtkText - did not receive a focus-out event.
If you handle this event, you must return
GDK_EVENT_PROPAGATE so the default handler
gets the event as well
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)
WARNING:root:g-dbus-error-quark: org.freedesktop.DBus.Error.ServiceUnknown (2)

@mufeedali
Copy link
Member

(dialect:2): Gtk-WARNING **: 19:57:47.820: GtkText - did not receive a focus-out event.
If you handle this event, you must return
GDK_EVENT_PROPAGATE so the default handler
gets the event as well

I have this too, but it doesn't cause any issues in my case.

I wonder why the org.freedesktop.DBus.Error.ServiceUnknown error is happening though? @rafaelmardojai , any clues?

@wokawoka
Copy link
Author

is there something else I could try in order to collect more information to debug this issue?
I would love to be able to use deepl through dialect.
Thank you!

@rafaelmardojai
Copy link
Member

@wokawoka we're a bit lost right now on what can be the issue. Maybe you can try the development version of Dialect to see if something is different since we refactored a few things.

@rafaelmardojai rafaelmardojai added the deepl Issues affecting the DeepL provider label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deepl Issues affecting the DeepL provider
Projects
None yet
Development

No branches or pull requests

3 participants