lorniu / go-translate

Translator on Emacs. Supports multiple engines such as Google, Bing, deepL, ChatGPT, StarDict, Youdao and so on.
GNU General Public License v3.0
275 stars 37 forks source link

user-error: Error when fetching Token-key #10

Closed thjwong closed 2 years ago

thjwong commented 3 years ago

Running M-x go-translate results in the following error message:

user-error: Error when fetching Token-Key. Check your network and proxy, or retry later

I have been using the "google-translate" package without problem in emacs (26.1) that runs on WSL Debian (windows subsystem linux Debian).

n.b. I do have to implement the following within the use-package initialization for the "google-translate" package to solve its search TKK issue: (defun google-translate--search-tkk () "Search TKK." (list 430675 2721866130))

articuluxe commented 3 years ago

Also running into this error

otech-nl commented 3 years ago

Maybe this helps? https://github.com/atykhonov/google-translate/issues/137#issuecomment-728278849

otech-nl commented 3 years ago

I worked around it this with

(use-package go-translate
  :config
  (setq go-translate-token-current (cons 430675 2721866130)))

Based on a comment in the code

(I use straight/use-package)

lorniu commented 3 years ago

I worked around it this with

(use-package go-translate
  :config
  (setq go-translate-token-current (cons 430675 2721866130)))

Based on a comment in the code

(I use straight/use-package)

8

saminahbab commented 3 years ago

I

I worked around it this with

(use-package go-translate
  :config
  (setq go-translate-token-current (cons 430675 2721866130)))

Based on a comment in the code

(I use straight/use-package)

This worked for me. Cheers dude