Sagar Gupta
Sagar Gupta

Reputation: 41

Model derivative translate job giving status code 409 (CONFLICT)

How to fix status code 409 for translate job. There are two types of problems I am facing. 1. Sometimes API returns error status code 409(conflict) 2. Sometimes it continuously gives in progress status and never completes or fails even.

Once any of the above error occurs, any subsequent job requests starts failing with error code 409.

We are trying node js API for translating job using following code. let translateResult = derivativesAPI.translate(job, { 'xAdsForce': true }, forgeSvc.requestOAuth2TwoLeggedOBJ(), accessToken);

Upvotes: 1

Views: 530

Answers (2)

Shabbir Haider
Shabbir Haider

Reputation: 168

First try to delete manifest for the stuck/pending request file,

If that doesn't works , last option is to delete the bucket with pending/stuck translation request and then try again.

Upvotes: 2

Augusto Goncalves
Augusto Goncalves

Reputation: 8574

As per documentation, the 409 means:

The request conflicts with a previous request that is still in progress

As you mentioned a previous request failed, but is pending on our system and causes this conflict. Is that happening consistently with a file? Or random? When it fails (or hangs), what's the manifest? Finally, can you share a problematic URN?

EDIT: the file is working now and we'll keep investigating this.

Upvotes: 0

Related Questions