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

Promise rejection for fetching translation. #42525

Closed
rebornix opened this issue Jan 30, 2018 · 1 comment
Closed

Promise rejection for fetching translation. #42525

rebornix opened this issue Jan 30, 2018 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@rebornix
Copy link
Member

Re #42366

[transifex] Fetching /api/2/project/vscode-extensions/resource/vscode-chrome-debug/translation/hu?file&mode=onlyreviewed
[transifex] Fetching /api/2/project/vscode-extensions/resource/vscode-node-debug/translation/hu?file&mode=onlyreviewed
[transifex] Fetching /api/2/project/vscode-extensions/resource/vscode-node-debug2/translation/hu?file&mode=onlyreviewed
(node:14438) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'forEach' of undefined
(node:14438) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: TypeError: Cannot read property 'forEach' of undefined

I tried to download translation files for hu, but ran into this exception every time, after fetching vscode-node-debug2/translation.

@RMacfarlane
Copy link
Contributor

I'm seeing the same thing.

[transifex] Fetching /api/2/project/vscode-extensions/resource/vscode-node-debug2/translation/sv?file&mode=onlyreviewed
(node:7562) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'forEach' of undefined
    at /Users/ramacfar/dev/vscode/build/lib/i18n.js:245:32
    at Array.forEach (<anonymous>)
    at /Users/ramacfar/dev/vscode/build/lib/i18n.js:231:27
    at Parser.<anonymous> (/Users/ramacfar/dev/vscode/build/node_modules/xml2js/lib/parser.js:303:18)
    at Parser.emit (events.js:160:13)
    at SAXParser.onclosetag (/Users/ramacfar/dev/vscode/build/node_modules/xml2js/lib/parser.js:261:26)
    at emit (/Users/ramacfar/dev/vscode/build/node_modules/sax/lib/sax.js:624:35)
    at emitNode (/Users/ramacfar/dev/vscode/build/node_modules/sax/lib/sax.js:629:5)
    at closeTag (/Users/ramacfar/dev/vscode/build/node_modules/sax/lib/sax.js:889:7)
    at SAXParser.write (/Users/ramacfar/dev/vscode/build/node_modules/sax/lib/sax.js:1436:13)

aeschli added a commit to microsoft/vscode-nls-dev that referenced this issue Jan 31, 2018
@aeschli aeschli added this to the January 2018 milestone Jan 31, 2018
@aeschli aeschli added bug Issue identified by VS Code Team member as probable bug verified Verification succeeded labels Feb 1, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants