Problem with Assembly AI transcript

Hy,
i have a problem with my flow. I have an Assembly AI transcript and when I enable Wait until transcript is ready the flow have an error and when the Wait until transcript is ready is disable the flow is running but with out the transcription.
the log :

level=
30
time=
1745048110402
pid=
8
hostname=
880de88b1467
reqId=
req_1keKGKIdj4yswq4tUwU2p
req.hostname=
activepieces.scmshenmen.fr
req.method=
GET
req.remoteAddress=
127.0.0.1
req.remotePort=
53748
req.url=
/v1/step-files/signed?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJmaWxlSWQiOiJHTXJwa0RLa0lPYjAwNlFYU25kRkwiLCJpYXQiOjE3NDUwNDgxMDEsImV4cCI6MTc0NzY0MDEwMSwiaXNzIjoiYWN0aXZlcGllY2VzIn0.fT67peLBfn74gN4Gs9BwoDvvLhfLjsOera5sRgiR1-g
msg=
incoming request
level=
30
time=
1745048110424
pid=
8
hostname=
880de88b1467
reqId=
req_1keKGKIdj4yswq4tUwU2p
res.statusCode=
200
responseTime=
21.917531000450253
msg=
request completed
ProgressUpdateError: {
  "message": "Failed to send progress update"
}
    at <anonymous> (webpack://activepieces/engine/src/lib/services/progress.service.ts:81:19)
    at Generator.next (<anonymous>)
    at a (webpack://activepieces/node_modules/tslib/tslib.es6.mjs:118:56)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  cause: Response {
    [Symbol(realm)]: null,
    [Symbol(state)]: {
      aborted: false,
      rangeRequested: false,
      timingAllowPassed: true,
      requestIncludesCredentials: true,
      type: 'default',
      status: 400,
      timingInfo: [Object],
      cacheState: '',
      statusText: 'Bad Request',
      headersList: [HeadersList],
      urlList: [Array],
      body: [Object]
    },
    [Symbol(headers)]: HeadersList {
      cookies: null,
      [Symbol(headers map)]: [Map],
      [Symbol(headers map sorted)]: null
    }
  },
  type: 'ENGINE'
}
level=
30
time=
1745048111579
pid=
8
hostname=
880de88b1467
reqId=
req_dCXKX0cbvj2LVl8UQTVIU
req.hostname=
127.0.0.1:3000
req.method=
GET
req.remoteAddress=
127.0.0.1
req.remotePort=
37550
req.url=
/v1/worker/app-connections/sMTSukoO7z6ARjcFR1N0a?projectId=0Xp3KmiYg6XVAYWsvcfVU
msg=
incoming request
level=
30
time=
1745048111592
pid=
8
hostname=
880de88b1467
reqId=
req_dCXKX0cbvj2LVl8UQTVIU
res.statusCode=
200
responseTime=
12.63360199984163
msg=
request completed
level=
30
time=
1745048111860
pid=
8
hostname=
880de88b1467
reqId=
req_bcB0jOU7H8JjgmikYcqOY
req.hostname=
127.0.0.1:3000
req.method=
POST
req.remoteAddress=
127.0.0.1
req.remotePort=
37550
req.url=
/v1/engine/update-run
msg=
incoming request
level=
50
time=
1745048111866
pid=
8
hostname=
880de88b1467
reqId=
req_bcB0jOU7H8JjgmikYcqOY
msg=
[errorHandler]: {"statusCode":400,"code":"FST_ERR_VALIDATION","validation":[{"instancePath":"/runDetails/pauseMetadata","schemaPath":"#/properties/runDetails/anyOf/0/properties/pauseMetadata/anyOf/0/required","keyword":"required","params":{"missingProperty":"resumeDateTime"},"message":"must have required property 'resumeDateTime'"},{"instancePath":"/runDetails/pauseMetadata/response/status","schemaPath":"#/properties/runDetails/anyOf/0/properties/pauseMetadata/anyOf/1/properties/response/properties/status/type","keyword":"type","params":{"type":"number"},"message":"must be number"},{"instancePath":"/runDetails/pauseMetadata","schemaPath":"#/properties/runDetails/anyOf/0/properties/pauseMetadata/anyOf","keyword":"anyOf","params":{},"message":"must match a schema in anyOf"},{"instancePath":"/runDetails/status","schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/0/const","keyword":"const","params":{"allowedValue":"FAILED"},"message":"must be equal to constant"},{"instancePath":"/runDetails/status","schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/1/const","keyword":"const","params":{"allowedValue":"SUCCEEDED"},"message":"must be equal to constant"},{"instancePath":"/runDetails/status","schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/2/const","keyword":"const","params":{"allowedValue":"RUNNING"},"message":"must be equal to constant"},{"instancePath":"/runDetails/status","schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/3/const","keyword":"const","params":{"allowedValue":"QUOTA_EXCEEDED"},"message":"must be equal to constant"},{"instancePath":"/runDetails/status","schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/4/const","keyword":"const","params":{"allowedValue":"TIMEOUT"},"message":"must be equal to constant"},{"instancePath":"/runDetails/status","schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/5/const","keyword":"const","params":{"allowedValue":"INTERNAL_ERROR"},"message":"must be equal to constant"},{"instancePath":"/runDetails/status","schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/6/const","keyword":"const","params":{"allowedValue":"MEMORY_LIMIT_EXCEEDED"},"message":"must be equal to constant"},{"instancePath":"/runDetails/status","schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/7/const","keyword":"const","params":{"allowedValue":"STOPPED"},"message":"must be equal to constant"},{"instancePath":"/runDetails/status","schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf","keyword":"anyOf","params":{},"message":"must match a schema in anyOf"},{"instancePath":"/runDetails","schemaPath":"#/properties/runDetails/anyOf","keyword":"anyOf","params":{},"message":"must match a schema in anyOf"}],"validationContext":"body"}
level=
30
time=
1745048111866
pid=
8
hostname=
880de88b1467
reqId=
req_bcB0jOU7H8JjgmikYcqOY
res.statusCode=
400
err.code=
FST_ERR_VALIDATION
err.message=
body/runDetails/pauseMetadata must have required property 'resumeDateTime', body/runDetails/pauseMetadata/response/status must be number, body/runDetails/pauseMetadata must match a schema in anyOf, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must match a schema in anyOf, body/runDetails must match a schema in anyOf
err.stack=
Error: body/runDetails/pauseMetadata must have required property 'resumeDateTime', body/runDetails/pauseMetadata/response/status must be number, body/runDetails/pauseMetadata must match a schema in anyOf, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must match a schema in anyOf, body/runDetails must match a schema in anyOf at defaultSchemaErrorFormatter (/usr/src/app/dist/packages/server/api/node_modules/fastify/lib/context.js:114:10) at wrapValidationError (/usr/src/app/dist/packages/server/api/node_modules/fastify/lib/validation.js:228:17) at validate (/usr/src/app/dist/packages/server/api/node_modules/fastify/lib/validation.js:146:16) at preValidationCallback (/usr/src/app/dist/packages/server/api/node_modules/fastify/lib/handleRequest.js:92:25) at next (/usr/src/app/dist/packages/server/api/node_modules/fastify/lib/hooks.js:233:9) at handleResolve (/usr/src/app/dist/packages/server/api/node_modules/fastify/lib/hooks.js:250:7) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
err.statusCode=
400
err.type=
Error
err.validation=
[{"instancePath":"/runDetails/pauseMetadata","keyword":"required","message":"must have required property 'resumeDateTime'","params":{"missingProperty":"resumeDateTime"},"schemaPath":"#/properties/runDetails/anyOf/0/properties/pauseMetadata/anyOf/0/required"},{"instancePath":"/runDetails/pauseMetadata/response/status","keyword":"type","message":"must be number","params":{"type":"number"},"schemaPath":"#/properties/runDetails/anyOf/0/properties/pauseMetadata/anyOf/1/properties/response/properties/status/type"},{"instancePath":"/runDetails/pauseMetadata","keyword":"anyOf","message":"must match a schema in anyOf","params":{},"schemaPath":"#/properties/runDetails/anyOf/0/properties/pauseMetadata/anyOf"},{"instancePath":"/runDetails/status","keyword":"const","message":"must be equal to constant","params":{"allowedValue":"FAILED"},"schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/0/const"},{"instancePath":"/runDetails/status","keyword":"const","message":"must be equal to constant","params":{"allowedValue":"SUCCEEDED"},"schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/1/const"},{"instancePath":"/runDetails/status","keyword":"const","message":"must be equal to constant","params":{"allowedValue":"RUNNING"},"schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/2/const"},{"instancePath":"/runDetails/status","keyword":"const","message":"must be equal to constant","params":{"allowedValue":"QUOTA_EXCEEDED"},"schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/3/const"},{"instancePath":"/runDetails/status","keyword":"const","message":"must be equal to constant","params":{"allowedValue":"TIMEOUT"},"schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/4/const"},{"instancePath":"/runDetails/status","keyword":"const","message":"must be equal to constant","params":{"allowedValue":"INTERNAL_ERROR"},"schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/5/const"},{"instancePath":"/runDetails/status","keyword":"const","message":"must be equal to constant","params":{"allowedValue":"MEMORY_LIMIT_EXCEEDED"},"schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/6/const"},{"instancePath":"/runDetails/status","keyword":"const","message":"must be equal to constant","params":{"allowedValue":"STOPPED"},"schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf/7/const"},{"instancePath":"/runDetails/status","keyword":"anyOf","message":"must match a schema in anyOf","params":{},"schemaPath":"#/properties/runDetails/anyOf/1/properties/status/anyOf"},{"instancePath":"/runDetails","keyword":"anyOf","message":"must match a schema in anyOf","params":{},"schemaPath":"#/properties/runDetails/anyOf"}]
err.validationContext=
body
msg=
body/runDetails/pauseMetadata must have required property 'resumeDateTime', body/runDetails/pauseMetadata/response/status must be number, body/runDetails/pauseMetadata must match a schema in anyOf, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must be equal to constant, body/runDetails/status must match a schema in anyOf, body/runDetails must match a schema in anyOf

thx for your help

Thanks for reporting it. I have opened this issue for it. The team will fix it soon.

1 Like

for now I use this code :

import axios from "axios";
export const code = async (inputs) => {
  const delay = ms => new Promise(res => setTimeout(res, ms));
  const endpoint = `https://api.assemblyai.com/v2/transcript/${inputs.transcriptId}`;
  const headers = { authorization: "xxxxxxxxxxxxxxx" }; // 🔐 Remplace ici ta clé API
  let status = "queued";
  let tries = 0;
  let response = null;
  while (status !== "completed" && status !== "error" && tries < 20) {
    const res = await axios.get(endpoint, { headers });
    response = res.data;
    status = response.status;
    if (status !== "completed") {
      await delay(5000);
      tries++;
    }
  }
  return {
    status,
    text: response?.text ?? "",
    fullResponse: response
  };
};

with a 10 seconde wait before and the flow run with out problem.

Hy, @kishanprmr the issue seems not to be fixed with the news updates isn’t it ? thx

@yannguinchardovh what is the size of the audio/video used for the transcript action? Does this apply to all files?

@kishanprmr yes this apply for all audio files. On the assembly AI web page the transcript is ok.

Thank you for the clarification. We will proceed with the update soon