question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'api.crowdin.com: System error' when trying to download translations

See original GitHub issue

Describe the bug Hello, The CLI periodically fails with the error when we try to download translations for different our projects.

To Reproduce Steps to reproduce the behavior:

  1. Configuration file:
api_token_env: CROWDIN_PERSONAL_TOKEN
base_path: /opt/tailor/psdk/ext-acronis-backup/wd/po
files:
- ignore:
  - /[a-z]{2}-[A-Z]{2}/**/*.po
  import_eq_suggestions: 1
  languages_mapping:
    locale_with_underscore:
      ar: ar_AE
      fil: tl_PH
  source: /ext-acronis-backup/**/*.po
  translation: /%locale_with_underscore%/%original_path%/%original_file_name%
preserve_hierarchy: true
project_id: 433620
  1. Execute CLI command: crowdin download --config crowdin.yml
  2. See an error
2022-02-04T08:31:58.368711792+07:00 stdout F Running 'crowdin download --config crowdin.yml'...
2022-02-04T08:32:00.171406582+07:00 stdout F [?????] Fetching project info                             [?????] Fetching project info                             [?????] Fetching project info                             ? Fetching project info
2022-02-04T08:32:00.172052422+07:00 stderr F ? Failed to collect project info. Please contact our support team for help
2022-02-04T08:32:00.172063234+07:00 stderr F ? Error from server: <Code: <empty_code>, Message: api.crowdin.com: System error>

Expected behavior Translations has been downloaded without errors.

Environment:

Additional context Version of Crowdin CLI: 3.7.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
andrii-bodnarcommented, Feb 10, 2022

@dshiryaev-plesk like this:

crowdin download --config crowdin.yml --debug

It should show more data in the unsuccessful runs.

0reactions
dshiryaev-pleskcommented, Feb 21, 2022

Hello @andrii-bodnar, Here is the error log for running the CLI with the --debug option:

2022-02-18T13:11:12.462024003+07:00 stdout F Running 'crowdin --debug download --config crowdin.yml'...	
2022-02-18T13:11:14.125844642+07:00 stdout F [?????] Fetching project info                             [?????] Fetching project info                             [?????] Fetching project info                             ? Fetching project info	
2022-02-18T13:11:14.127112169+07:00 stderr F java.lang.RuntimeException: Failed to collect project info. Please contact our support team for help	
2022-02-18T13:11:14.127290124+07:00 stderr F 	at com.crowdin.cli.utils.console.ConsoleSpinner.execute(ConsoleSpinner.java:29)	
2022-02-18T13:11:14.127323342+07:00 stderr F 	at com.crowdin.cli.commands.actions.DownloadAction.act(DownloadAction.java:93)	
2022-02-18T13:11:14.127346359+07:00 stderr F 	at com.crowdin.cli.commands.actions.DownloadAction.act(DownloadAction.java:58)	
2022-02-18T13:11:14.127393585+07:00 stderr F 	at com.crowdin.cli.commands.picocli.GenericActCommand.run(GenericActCommand.java:37)	
2022-02-18T13:11:14.127424711+07:00 stderr F 	at picocli.CommandLine.executeUserObject(CommandLine.java:1939)	
2022-02-18T13:11:14.127473661+07:00 stderr F 	at picocli.CommandLine.access$1300(CommandLine.java:145)	
2022-02-18T13:11:14.127497202+07:00 stderr F 	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)	
2022-02-18T13:11:14.127571758+07:00 stderr F 	at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)	
2022-02-18T13:11:14.127588831+07:00 stderr F 	at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)	
2022-02-18T13:11:14.12762487+07:00 stderr F 	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)	
2022-02-18T13:11:14.127658416+07:00 stderr F 	at picocli.CommandLine.execute(CommandLine.java:2078)	
2022-02-18T13:11:14.127673987+07:00 stderr F 	at com.crowdin.cli.commands.picocli.PicocliRunner.execute(PicocliRunner.java:37)	
2022-02-18T13:11:14.127717988+07:00 stderr F 	at com.crowdin.cli.Cli.main(Cli.java:16)	
2022-02-18T13:11:14.12787657+07:00 stderr F Caused by: java.lang.RuntimeException: Error from server: <Code: <empty_code>, Message: api.crowdin.com: System error>	
2022-02-18T13:11:14.127883285+07:00 stderr F 	at com.crowdin.cli.client.CrowdinClientCore.executeRequest(CrowdinClientCore.java:125)	
2022-02-18T13:11:14.127904105+07:00 stderr F 	at com.crowdin.cli.client.CrowdinClientCore.executeRequest(CrowdinClientCore.java:100)	
2022-02-18T13:11:14.127954752+07:00 stderr F 	at com.crowdin.cli.client.CrowdinProjectClient.getProject(CrowdinProjectClient.java:96)	
2022-02-18T13:11:14.127963856+07:00 stderr F 	at com.crowdin.cli.client.CrowdinProjectClient.populateProjectWithInfo(CrowdinProjectClient.java:80)	
2022-02-18T13:11:14.128006874+07:00 stderr F 	at com.crowdin.cli.client.CrowdinProjectClient.downloadFullProject(CrowdinProjectClient.java:45)	
2022-02-18T13:11:14.128019082+07:00 stderr F 	at com.crowdin.cli.utils.console.ConsoleSpinner.execute(ConsoleSpinner.java:24)	
2022-02-18T13:11:14.128027112+07:00 stderr F 	... 12 more	
2022-02-18T13:11:14.998314734+07:00 stdout F 	
2022-02-18T13:11:14.998373939+07:00 stdout F ????????????????????????????????????????????????????????????????????????????????	
2022-02-18T13:11:14.998382132+07:00 stdout F ?           New version of Crowdin CLI is available! 3.7.2 -> 3.7.7            ?	
2022-02-18T13:11:14.99840296+07:00 stdout F ????????????????????????????????????????????????????????????????????????????????	
2022-02-18T13:11:14.99840756+07:00 stdout F ?      Changelog: https://github.com/crowdin/crowdin-cli/releases/latest       ?	
2022-02-18T13:11:14.998411468+07:00 stdout F ?                    Please update for the best experience!                    ?	
2022-02-18T13:11:14.998415769+07:00 stdout F ????????????????????????????????????????????????????????????????????????????????
Read more comments on GitHub >

github_iconTop Results From Across the Web

API v2 Reference - About Crowdin Apps
Allows translators to download source files to their machines and upload translations back into the project. Project owner and managers can always download...
Read more >
API v2 Reference (Enterprise) - About Crowdin Apps
Allows translators to download source files to their machines and upload translations back into the project. Project owner and managers can always download...
Read more >
Downloading Translations | Crowdin Documentation
You can download translations for the whole project at once or for separate files. Translations will be downloaded according to the export settings ......
Read more >
Downloaded translations don't match the current project ...
Hello! There is some mismatch in your files specified in the source/translations field in crowdin.yaml and the files in your actual project. We ......
Read more >
Console Client (CLI) | Crowdin Developer Portal
Requirements · Installation · Standalone Version · Using Crowdin CLI with Proxy Server · Running the App · Configuration · Usage · Downloading...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found