Skip to content

Cannot deserialize value of type when using --verbose flag #925

@NogaMan

Description

@NogaMan

Describe the bug
I run npx crowdin pre-translate --method=ai --ai-prompt=2 --plain --verbose --translate-untranslated-only --branch=racom-gnu-tolpu

getting

❌ Error from server: <Code: <empty_code>, Message: Cannot deserialize value of type `java.util.LinkedHashMap<java.lang.String,java.lang.Integer>` from Array value (token `JsonToken.START_ARRAY`)
 at [Source: (String)"{"data":{"languages":[{"id":"es","files":[{"id":1991,"statistics":{"phrases":0,"words":0}},{"id":1989,"statistics":{"phrases":0,"words":0}},{"id":1987,"statistics":{"phrases":0,"words":0}},{"id":1985,"statistics":{"phrases":0,"words":0}},{"id":1983,"statistics":{"phrases":0,"words":0}},{"id":1981,"statistics":{"phrases":0,"words":0}},{"id":1885,"statistics":{"phrases":0,"words":0}},{"id":1931,"statistics":{"phrases":0,"words":0}},{"id":1923,"statistics":{"phrases":0,"words":0}},{"id":1889,"stati"[truncated 756 chars]; line: 1, column: 593] (through reference chain: com.crowdin.client.translations.model.PreTranslationReportResponseObject["data"]->com.crowdin.client.translations.model.PreTranslationReportResponse["languages"]->java.util.ArrayList[0]->com.crowdin.client.translations.model.PreTranslationReportResponse$TargetLanguage["skipped"])>

To Reproduce
Actually I have no idea, try to reproduce it yourself or maybe search through your logs. But I think it is connected to the newly added --verbose flag

Expected behavior
No error

Environment:

  • OS: [e.g. Ubuntu]
  • Version [e.g. 18.04]

Screenshots

Image

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions