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.

ClassCastException when downloading the project translations

See original GitHub issue

Describe 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:

  1. 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%'",
  }
]
  1. 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
andrii-bodnarcommented, May 26, 2020

Hi, @kingiw ! You need to have manager access in the project to perform this action. 403: Forbidden - is a permissions error.

0reactions
BozhenaDobrovolskacommented, May 26, 2020

Hello! We’re investigating the behaviour and will get back to you soon

Sorry for the inconvenience!

Read more comments on GitHub >

github_iconTop 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 >

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