funkyremi / vscode-google-translate

Translate text right in your code
MIT License
134 stars 39 forks source link

Translation not working due to 429 status code ("rate limiting") #12

Closed SamHuo213 closed 5 years ago

SamHuo213 commented 5 years ago

I ran into a issue with the extension today. It was not working as expected. I had to debug the extension to figure out why.

image

This call to the google api is returning a 429 rate limiting error code. I am guessing it is because the google api used has a limit. Is it possible to switch to another google api that does not have a limit?

SamHuo213 commented 5 years ago

Also, I want to suggest having some way for the user to see errors like this in the future without having to debug the extension. Maybe like a toast?

oshliaer commented 5 years ago

I think time has come to add Google Auth for correct using the API.

funkyremi commented 5 years ago

If you don't want limits, you need to get a Google Translate API key and pay for the service. For now, you can't set the api key in Vscode Google Translate extension but it would be a nice feature to have. I add it as a new issue (#14)

Regarding the error messages not displayed, I create a new issue too (#13)

I'm running out of time. PR are welcome for both issues.