Skip to content
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

Error message while opening AIO Setup #199

Open
Dream2504 opened this issue Feb 3, 2024 · 7 comments
Open

Error message while opening AIO Setup #199

Dream2504 opened this issue Feb 3, 2024 · 7 comments

Comments

@Dream2504
Copy link

Screenshot 2024-02-03 105817

@jc-frosty
Copy link

Same on macOS Monterey.
Screen Shot 2024-02-03 at 08 24 12

@SayWut
Copy link

SayWut commented Feb 10, 2024

Ok I am not sure if the developers still working on this project or not.
I found it comes from the embedded google translate.
At app/index.html they are calling to this url https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit which is deprecated by Google
source: https://support.google.com/translate/thread/200407374?hl=en&msgid=200409076

Error:

DOMException: Failed to execute 'measure' on 'Performance': The mark '[object Object]' does not exist.
    at ho (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:110:499)
    at new ly (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:372:38)
    at new Dy (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:423:91)
    at new Py (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:438:244)
    at googleTranslateElementInit (file:///D:/SayWut/ProgramingProjects/mazda/MZD-AIO/app/index.html:281:9)
    at e (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:468)
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:497
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:502
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:442:4

I am not sure if it possible to fix it from the code or we need to replace this translation resource.
If we unable to fix this so it is possible to just remove the code and to leave the program in the default lang which is English.

@Trevelopment
Copy link
Owner

You have to disconnect from the internet when you start the app. I was in the process of fixing this issue but my laptop broke so it's going to be a while before I can fix this.

@Trevelopment
Copy link
Owner

Ok I am not sure if the developers still working on this project or not. I found it comes from the embedded google translate. At app/index.html they are calling to this url https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit which is deprecated by Google source: https://support.google.com/translate/thread/200407374?hl=en&msgid=200409076

Error:

DOMException: Failed to execute 'measure' on 'Performance': The mark '[object Object]' does not exist.
    at ho (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:110:499)
    at new ly (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:372:38)
    at new Dy (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:423:91)
    at new Py (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:438:244)
    at googleTranslateElementInit (file:///D:/SayWut/ProgramingProjects/mazda/MZD-AIO/app/index.html:281:9)
    at e (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:468)
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:497
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:502
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:442:4

I am not sure if it possible to fix it from the code or we need to replace this translation resource. If we unable to fix this so it is possible to just remove the code and to leave the program in the default lang which is English.

Thanks for letting me know the issue ye other issue is that so many of the packages I used are outdated so updating all those packages will take some work. Maybe we could try contacting google to make that link available for the sake of not crashing the app.

@SayWut
Copy link

SayWut commented Feb 10, 2024

@Trevelopment

Thanks for letting me know the issue ye other issue is that so many of the packages I used are outdated so updating all those packages will take some work. Maybe we could try contacting google to make that link available for the sake of not crashing the app.

You can try but i don't think that it will work with electron because they want your domain to your website.
Probably they are adding your website to a whitelist or something like that

Form: sign up with our form
Source: https://developers.google.com/search/blog/2020/05/google-translates-website-translator

@walterkammi
Copy link

walterkammi commented Feb 11, 2024

The following worked for me, as a temporal workaround, with keeping internet connection. Set var translateUrl as unreachable URL, result to start in default language, English.
[app/index.html]
if (navigator.onLine) {
// var translateUrl = "https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"
var translateUrl = "https://foo.example.com/"

@SayWut
Copy link

SayWut commented Feb 12, 2024

The following worked for me, as a temporal workaround, with keeping internet connection. Set var translateUrl as unreachable URL, result to start in default language, English. [app/index.html] if (navigator.onLine) { // var translateUrl = "https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" var translateUrl = "https://foo.example.com/"

Yes it is the same as disabling the translation feature.
I mentioned it above it is possible to do it but it will kill the feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants