marisukukise/japReader

[BUG] Translation window for Deepl stuck on "Please wait patiently..."

Ashdemai opened this issue ยท 12 comments

Describe the bug
Program fails to connect to DeepL like it had previously. I was not using an API key.
To Reproduce
Launch program, wait for DeepL to connect

Expected behavior
A clear and concise description of what you expected to happen.
It should say it connected to the DeepL server

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Arch
  • Version: latest

Additional context
Add any other context about the problem here.

Seems to work for me

Is it location based? It happens both on my desktop and laptop. It just doesn't want connect successfully. On the other hand, if I go directly to deepl's site, it loads fine that way. I'm just confused.

It's not location based, it just loads the deepl url to the hidden window, so it should work the same as in your browser.
By latest do you mean 1.9.1 version or 2.0.0-beta?
Also can you make a screenshot of your settings under the keyboard shortcut "O"?

If you want to debug it yourself, you can:

  1. Clone the repository
  2. Change the line 316 in src/index.js https://github.com/marisukukise/japReader/blob/57e5f5a340a6d26e0ca81b22e8bc0ab572a7633f/src/index.js#L316C15-L316C15 to show: true,
  3. Run the program npm i; npm start
  4. The window with DeepL should now be visible, so you can see what's wrong in it, you can press Ctrl+Shift+I to open the DevTools and see if there are any errors

By latest do you mean 1.9.1 version or 2.0.0-beta?

Sorry, hadn't mentioned it. I still use 1.9.1

Here's an image of the settings.

I'll give your debug suggestion a try and tell you if I find something.
Screenshot from 2023-09-17 07-11-48

Gfurst commented

It was working for me till today, now I'm getting stuck with no response from deepl as well, even tho I can open the site just fine. (updated the app just now)

I will check it out later today, but it seems like it stopped working for everyone today. So for now you can enable the DeepL API in options, make a DeepL account and use the DeepL API key. It's been implemented for emergency cases like these.

I don't know what to tell you guys, but for some reason it started working for me again. I literally did nothing to fix it. I also tried the debugging mode when it wasn't working and the open deepl site was working so I have no clue what caused the program side to not show anything.

Should I close this issue?

Should I close this issue?

Keep it open for now, because looks like it may still be happening to others, and maybe it will stop working for you again

Gfurst commented

So for now you can enable the DeepL API in options, make a DeepL account and use the DeepL API key

I was hoping to do this, but for some reason deepl doesn't show me any API key, I think because my country isn't available in the premium plans, they don't even offer the free API.

Gfurst commented

Perfect!

I think this solved the issue. I'm going to close this now.