ROGoogleTranslate icon indicating copy to clipboard operation
ROGoogleTranslate copied to clipboard

400 response error

Open coryhymel opened this issue 7 years ago • 1 comments

I'm not sure if this an issue with my API key or the formatting of the URL. Here is what my url request looks like:

https://www.googleapis.com/language/translate/v2?key=MYKEYISHERE&q=Here's%20what%20I'm&source=en&target=ja&format=text

Then this is the 400 response that I'm getting:

{ Status Code: 400, Headers {
    "Cache-Control" =     (
        private
    );
    "Content-Encoding" =     (
        gzip
    );
    "Content-Length" =     (
        181
    );
    "Content-Type" =     (
        "application/json; charset=UTF-8"
    );
    Date =     (
        "Fri, 16 Feb 2018 23:38:01 GMT"
    );
    Server =     (
        ESF
    );
    Vary =     (
        Origin,
        "X-Origin",
        Referer
    );
    "alt-svc" =     (
        "hq=\":443\"; ma=2592000; quic=51303431; quic=51303339; quic=51303338; quic=51303337; quic=51303335,quic=\":443\"; ma=2592000; v=\"41,39,38,37,35\""
    );
    "x-content-type-options" =     (
        nosniff
    );
    "x-frame-options" =     (
        SAMEORIGIN
    );
    "x-xss-protection" =     (
        "1; mode=block"

    );
}

Maybe I have my API key wrong? I'm using the value of private_key_id after creating a new project on Google Cloud Platform API.

Any help would be much appreciated!

coryhymel avatar Feb 16 '18 23:02 coryhymel

Did you register your account correctly (including a credit card is also needed)?

prine avatar Aug 09 '18 14:08 prine