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

TypeError: Cannot read properties of null (reading '1') #117

Open
delusion8399 opened this issue Jun 1, 2023 · 7 comments
Open

TypeError: Cannot read properties of null (reading '1') #117

delusion8399 opened this issue Jun 1, 2023 · 7 comments

Comments

@delusion8399
Copy link

` if (json[1][0][0][5] === undefined || json[1][0][0][5] === null) {
^

TypeError: Cannot read properties of null (reading '1')
Url: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute?rpcids=MkEWBc&source-path=%2F&f.sid=812076496398908190&bl=boq_translate-webserver_20230530.06_p0&hl=en-US&soc-app=1&soc-platform=1&soc-device=1&_reqid=3014&rt=c `

getting this error I am using "@vitalets/google-translate-api": "^8.0.0",

@delusion8399 delusion8399 changed the title Cannot read TypeError: Cannot read properties of null (reading '1') Jun 1, 2023
@vitalets
Copy link
Owner

vitalets commented Jun 4, 2023

Could you check with v9+?

@limonte
Copy link

limonte commented Jun 4, 2023

same here, using ^8.0.0 and can't migrate to ^9.0.0 because it's missing result.from.text.autoCorrected, result.from.language.didYouMean, result.from.text.didYouMean features.

@vitalets
Copy link
Owner

vitalets commented Jun 5, 2023

Looks like something changed in response json structure. Could you post response json here, and we will try to find hotfix.

@Love2Explore
Copy link

Any progress on this Issue ?

@Asmedian
Copy link

Asmedian commented Aug 11, 2023

Can this endpoint be used with this package at all?

@AnderRedna
Copy link

any progress on this Issue?

@vitalets
Copy link
Owner

vitalets commented Oct 8, 2023

@AnderRedna could you provide a code sample that reproduces the bug?
I've checked on v8 branch, all tests are passing.

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

6 participants