ClassCastException when downloading the project translations
See original GitHub issueDescribe the bug
When I try to call crowdin download --config crowdin.yaml
, the following exception occurs:
» crowdin download --config crowdin.yaml
❌ Fetching project info
❌ Failed to collect project info. Please contact our support team for help
❌ Unhandled Exception: java.lang.ClassCastException: class com.crowdin.client.projectsgroups.model.Project cannot be cast to class com.crowdin.client.projectsgroups.model.ProjectSettings (com.crowdin.client.projectsgroups.model.Project and com.crowdin.client.projectsgroups.model.ProjectSettings are in unnamed module of loader 'app')
To Reproduce Steps to reproduce the behavior:
- Configuration file:
"project_id": "a_project_id"
"api_token": "my_personla_api_token"
"base_path": "."
"preserve_hierarchy": true
files: [
{
"source": "*",
"translation": "/resources/%locale%/%original_file_name%'",
}
]
- Execute CLI command:
crowdin download --config crowdin.yaml
Expected behavior Download the target translation projects as expected.
Environment: OS: macOS Catalina 10.15.4 Java:
» java -version
openjdk version "14.0.1" 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.1+7, mixed mode, sharing)
Crowdin version: 3.1.13
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
java.lang.ClassCastException - Stack Overflow
A ClassCastException ocurrs when you try to cast an instance of an Object to a type that it is not. Casting only works...
Read more >563302 – missing jgit translation bundle exception - Bugs
Exception in thread "main" org.eclipse.jgit.errors.TranslationBundleLoadingException: Loading of translation bundle failed for [org.eclipse.jgit.internal.
Read more >java.lang.ClassCastException: class cannot be cast to javax ...
No translations currently exist. Environment. JBoss Enterprise Application Platform (EAP) 6.x. Issue. We see the following exception:.
Read more >JDev 12.1.3 - java.lang.ClassCastException: org.eclipse ...
Hi all, We have an ADF project running fine in JDev 11.1.1.7 and we're attempting to migrate it to JDev 12.1.3.
Read more >java.lang.ClassCastException: hudson.model.Fingerprint ...
Uploaded image for project: 'Jenkins'. Jenkins · JENKINS-23566. java.lang.ClassCastException: hudson.model. ... Translation of french messages in log:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, @kingiw ! You need to have manager access in the project to perform this action. 403: Forbidden - is a permissions error.
Hello! We’re investigating the behaviour and will get back to you soon
Sorry for the inconvenience!