Getting 400 Error with Google Translate

{“error”=>{“code”=>400, “message”=>“Invalid Value”, “errors”=>[{“message”=>“Invalid Value”, “domain”=>“global”, “reason”=>“invalid”}]}}

  • I created the credential in Google Console.
  • Used it.
  • Language is set to “English”

Getting this Error Code 400 with new posts and existing posts.

How do I fix this?

1 Like

I get the same error, none of my settings have changed. I have just updated the install too.

In the error log it says:

[object Object]
Url: https://community.xxx.com/assets/ember_jquery-36a23101c869ab0dc53fc908de69adb785731593573d32bdeef416acc1076ef4.js
Line: 1
Column: 266898
Window Location: https://community.xxx.com/t/atalhos-fantasticos-e-onde-habitam/1249
Any ideas?

I found the problem. The default locale was set to English US but the user settings were set to UK.

2 Likes

Ah, excellent, thanks for sharing that, hopefully it will help others in the same situation!

2 Likes

We ran into the same problem now, but the @fidelio comment and your reply doesn’t help solving it.
Forum has English (US) locale by default. User with English (UK) locale gets translation button for all english posts and clicking on it triggers the error described in the first post.

Any way you guys got it solved for you?

It seems like this PR may fix the issue once and for all:

1 Like