409 Status Code When Pushing Strings

We push detected strings in CI via txjs-cli push but occasionally we receive a 409 when this occurs resulting in no strings being pushed.

What are the conditions that a 409 would be returned?

Hello Aarr0n,

Could you please share the full description of the error and in which project you are having this issue? I want to investigate this further. Thanks in advance.

This error is related to conflicts between what you have in your Transifex project and what you’re trying to upload, as you can see in the below example:

{
  "errors": [
    {
      "code": "conflict",
      "detail": "Value `some_field_value` already exists",
      "source": {
        "pointer": "/data/attributes/some_field"
      },
      "status": "409",
      "title": "Field `some_field` conflicted"
    }
  ]
}

There’s not a log in logs, just the following.

Uploading content to Transifex... Failed

    AxiosError: Request failed with status code 409

    Code: ERR_BAD_REQUEST

Am I right in saying that if we attempt a push when another push is in progress we’ll get a 409?

Confirmed this by running two pushes as the same time, response is as follows:

   data: {
      status: 409,
      message: 'Another content upload is already in progress'
    }

I think we’re getting this since occasionally were making two push requests at relatively the same time to the same project with the same hash of content.

Hello @aarr0n

Thanks for taking the time to let us know. We will add an alert somewhere in our documentation for future users.

Best Regards

1 Like