Skip to content

repo_syncs import fails with "unexpected end of JSON input" in v2.55.0 #1038

@horstmannmat

Description

@horstmannmat

Description I am encountering a regression when running the repo_syncs import command using phrase-cli version 2.55.0. The command fails immediately with a JSON parsing error.

phrase repo_syncs import --account_id $PHRASE_ACCOUNT_ID --id $GITLAB_SYNC_ID
ERROR: unexpected end of JSON input

When downgrading to version 2.54.3, the exact same command works as expected.

phrase repo_syncs import --account_id $PHRASE_ACCOUNT_ID --id $GITLAB_SYNC_ID 
Please consider updating the Phrase Strings CLI client (2.54.3 < 2.55.0)
You can get the latest version from https://phrase.com/cli.
{
 "id": "$GITLAB_SYNC_ID",
 "type": "import",
 "created_at": "2026-01-28T16:10:59Z",
 "status": "running",
 "auto_import": false
}

I verified the API endpoint directly using curl to ensure the API wasn't returning an empty body. The API returns valid JSON, which suggests the issue is isolated to the CLI client's handling of the response in v2.55.0.

When running the API via curl it work as expected

$ curl "https://api.phrase.com/v2/accounts/$PHRASE_ACCOUNT_ID/repo_syncs/$GITLAB_SYNC_ID/import"   -u  $PHRASE_ACCESS_TOKEN: -X POST    -H 'Content-Type: application/json'
{"id":"$GITLAB_SYNC_ID","type":"import","created_at":"2026-01-28T16:35:07Z","status":"running","auto_import":false}%                     

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions