K-Francis-H / libretranslate-unofficial-ff-extension

An unofficial Firefox extension for the LibreTranslate API
GNU Affero General Public License v3.0
14 stars 0 forks source link

Not functional with Firefox 112.0.2? #2

Open poVoq opened 1 year ago

poVoq commented 1 year ago

Hi.

I installed this from the Firefox marketplace on Firefox 112.0.2 on Fedora Linux, but the drop-down menus for the languages do not work, neither in the main translation menu, nor for the default settings. Subsequently it seems impossible to use.

I tried both with the default instance and my own functional self-hosted LibreTranslate instance.

Thanks for the help!

K-Francis-H commented 1 year ago

Interesting... It works for me right now. I'll try updating Firefox to the latest and downloading it from the store again. I believe the language drop downs are filled by querying the API so if the drop down is empty there is probably a connection issue.

It looks like the default API is up right now: https://translate.terraprint.co/ , its hosted on a bare bones linode instance so I have seen it go down on occasion.

I'll take a look and see if I can reproduce and fix the issue. Thanks for letting me know about it.

K-Francis-H commented 1 year ago

So I've tested the latest version from the add-on store with https://translate.terraprint.co and with a local docker image http://localhost:5000 and both work fine for me.

If the local or remote API that you are using is running then it should work. Another possibility for the issue is the permissions you have setup in firefox for the add-on, maybe you have something enabled that prevents an add-on from making background http requests.

As a last resort, you could try cloning the repo and installing the add-on from file then try to debug the issue by looking at the log output. I'm sorry that it doesn't work for you. I'll keep an eye out for the issue, maybe it happens intermittently and I'll have an oppurtunity to reproduce and fix it.

poVoq commented 1 year ago

Ok strange. Disabling other addons didn't help.

After testing further I am getting a bit closer to the problem. Your main instance shows the dropdowns with https://translate.terraprint.co, but not with https://translate.terraprint.co/ which I think was the default after installing the addon.

However my own LibreTranslate instance is still not working regardless if there is a / in the end or not. Maybe it is something with my Nginx config?

K-Francis-H commented 1 year ago

I'll try running it locally with Apache or Nginx to see if there is an issue there. It works pretty well with Docker.

I'm adding some error checking around the settings page to prevent users from saving an API URL with an end slash or other malformed settings values. I'm also adding some error message output to the popup to help users identify issues.

I'll push an update to the store later today or tomorrow with these improvements.