-
-
Notifications
You must be signed in to change notification settings - Fork 792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknow issue when translate and replace #6153
Comments
Have you retried, and is the issue still the same? |
It's caused by response from Google Translate. I think we should catch the message and response correctly when they detect abnormal traffic 302 MovedThe document has moved here.2024-10-06 08:16:36,385 [ 19805] SEVERE - #cn.yiiguxing.plugin.translate.trans.AbstractTranslator - IdeaLoggingEvent[message=Translation parsing failed[translate.google]: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $, throwable=cn.yiiguxing.plugin.translate.diagnostic.ReportException: Translation parsing failed[translate.google]: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $ |
Unable to correctly recognize the contents of the error returned by the service. |
It means that
|
I'm not sure if the API is returning a 302 status code. Can you confirm this for me? |
📝 Issue Description
I got an error when translate and replace
🏷 Plugin Version
3.6.6
🔁 Translation Engine(s)
Google Translate
💻 IDE and Operating Environment
📋 Stacktrace
No response
The text was updated successfully, but these errors were encountered: