التعامل مع YoukaRequestError و YoukaTaskError والإخفاقات القابلة لإعادة المحاولة
يكشف SDK عن فئتين من الأخطاء: YoukaRequestError لأخطاء HTTP وإخفاقات التحقق، و YoukaTaskError للمهام غير المتزامنة التي انتهت بحالة غير ناجحة. كلتاهما تمتدان Error وتحملان حقولًا منظَّمة لتتمكن من التفريع بناءً على code و status وقابلية إعادة المحاولة.
YoukaRequestError
يُرمى عند أخطاء HTTP، وإخفاقات التحقق من صحة الطلب، والاستجابات غير السليمة.
رمز خطأ قابل للقراءة آليًا، مثل INVALID_REQUEST و UNAUTHORIZED و
UPLOAD_FAILED.
string
وصف قابل للقراءة البشرية.
number
رمز حالة HTTP، إن كان متاحًا.
boolean
true إذا كان SDK يعتبر الخطأ جديرًا بإعادة المحاولة (حدود المعدّل، أخطاء
الخادم العابرة، إعادة تشغيل idempotent قيد التنفيذ).
unknown
تفاصيل مقدَّمة من الخادم، غالبًا قائمة مشكلات Zod لأخطاء التحقق.
الرموز الشائعة
الرمز
السبب
قابل لإعادة المحاولة؟
INVALID_REQUEST
فشل جسم الطلب في التحقق من المخطط قبل إرساله.
No
UNAUTHORIZED
مفتاح API مفقود أو غير صالح.
No
NOT_FOUND
المورد غير موجود أو لا تملك صلاحية الوصول.
No
CONFLICT
تعارض في الإصدار (HTTP 409).
Yes
TOO_MANY_REQUESTS
تم بلوغ حد المعدّل (HTTP 429).
Yes
INTERNAL_SERVER_ERROR
فشل عابر في الخادم (HTTP 500).
Yes
IDEMPOTENT_REPLAY_IN_PROGRESS
لا يزال الطلب الأصلي قيد التنفيذ تحت مفتاح idempotency نفسه (HTTP 202).
Yes
INVALID_RESPONSE
أعاد الخادم جسمًا لا يطابق المخطط المتوقع.
No
UPLOAD_FAILED
أعاد رفع Signed URL حالة غير 2xx.
Depends on status
YoukaTaskError
يُرمى من client.tasks.wait(...) و client.projects.wait(...) و client.exports.wait(...) عندما تنتهي المهمة الأساسية أو التصدير بحالة failed أو cancelled أو timed-out.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Youka Docs","description":"Product documentation for Youka Online, Youka Desktop, Youka Live, CLI, API, SDK, and AI agent workflows.","colors":{"primary":"#8C2BEE","light":"#8C2BEE","dark":"#9E4CF0"},"logo":"https://mintcdn.com/youka/26OK54kHafQrcNBQ/logo.png?fit=max\u0026auto=format\u0026n=26OK54kHafQrcNBQ\u0026q=85\u0026s=15f7792191200600fd5ff864a3885693","favicon":"https://mintcdn.com/youka/26OK54kHafQrcNBQ/favicon.ico?fit=max\u0026auto=format\u0026n=26OK54kHafQrcNBQ\u0026q=85\u0026s=bf341e8e8823cd32978880363763abf8","styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":"en"},{"language":"es","href":"es"},{"language":"fr","href":"fr"},{"language":"it","href":"it"},{"language":"pt","href":"pt"},{"language":"de","href":"de"},{"language":"ru","href":"ru"},{"language":"ar","href":"ar"},{"language":"hi","href":"hi"},{"language":"ko","href":"ko"},{"language":"zh","href":"zh"},{"language":"vi","href":"vi"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"youka","hasAudioNarration":false,"actualSubdomain":"youka","customDomains":["docs.youka.io"],"gitSource":{"type":"github","owner":"youka-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6afa029959fc4106fcc5cbb6","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"en","tag":"API","count":54},{"language":"ar","tag":"API","count":45},{"language":"de","tag":"API","count":45},{"language":"es","tag":"API","count":45},{"language":"fr","tag":"API","count":45},{"language":"hi","tag":"API","count":45},{"language":"it","tag":"API","count":45},{"language":"ko","tag":"API","count":45},{"language":"pt","tag":"API","count":45},{"language":"ru","tag":"API","count":45},{"language":"vi","tag":"API","count":45},{"language":"zh","tag":"API","count":45},{"language":"ar","tag":"Youka Online","count":40},{"language":"de","tag":"Youka Online","count":40},{"language":"en","tag":"Youka Online","count":40},{"language":"es","tag":"Youka Online","count":40},{"language":"fr","tag":"Youka Online","count":40},{"language":"hi","tag":"Youka Online","count":40},{"language":"it","tag":"Youka Online","count":40},{"language":"ko","tag":"Youka Online","count":40},{"language":"pt","tag":"Youka Online","count":40},{"language":"ru","tag":"Youka Online","count":40},{"language":"vi","tag":"Youka Online","count":40},{"language":"zh","tag":"Youka Online","count":40},{"language":"ar","tag":"API Reference","count":38},{"language":"de","tag":"API Reference","count":38},{"language":"en","tag":"API Reference","count":38},{"language":"es","tag":"API Reference","count":38},{"language":"fr","tag":"API Reference","count":38},{"language":"hi","tag":"API Reference","count":38},{"language":"it","tag":"API Reference","count":38},{"language":"ko","tag":"API Reference","count":38},{"language":"pt","tag":"API Reference","count":38},{"language":"ru","tag":"API Reference","count":38},{"language":"vi","tag":"API Reference","count":38},{"language":"zh","tag":"API Reference","count":38},{"language":"ar","tag":"كيفية","count":35},{"language":"de","tag":"Anleitungen","count":35},{"language":"en","tag":"How To","count":35},{"language":"es","tag":"Cómo Hacer","count":35},{"language":"fr","tag":"Guides Pratiques","count":35},{"language":"hi","tag":"कैसे करें","count":35},{"language":"it","tag":"Come Fare","count":35},{"language":"ko","tag":"방법","count":35},{"language":"pt","tag":"Como Fazer","count":35},{"language":"ru","tag":"Инструкции","count":35},{"language":"vi","tag":"Hướng dẫn","count":35},{"language":"zh","tag":"操作指南","count":35},{"language":"ar","tag":"Youka Desktop Legacy","count":27},{"language":"de","tag":"Youka Desktop Legacy","count":27},{"language":"en","tag":"Youka Desktop Legacy","count":27},{"language":"es","tag":"Youka Desktop Legacy","count":27},{"language":"fr","tag":"Youka Desktop Legacy","count":27},{"language":"hi","tag":"Youka Desktop Legacy","count":27},{"language":"it","tag":"Youka Desktop Legacy","count":27},{"language":"ko","tag":"Youka Desktop Legacy","count":27},{"language":"pt","tag":"Youka Desktop Legacy","count":27},{"language":"ru","tag":"Youka Desktop Legacy","count":27},{"language":"vi","tag":"Youka Desktop Legacy","count":27},{"language":"zh","tag":"Youka Desktop Legacy","count":27},{"language":"en","tag":"Overview","count":18},{"language":"en","tag":"Reference","count":18},{"language":"en","tag":"SDK","count":13},{"language":"ar","tag":"Overview","count":12},{"language":"de","tag":"Overview","count":12},{"language":"es","tag":"Overview","count":12},{"language":"fr","tag":"Overview","count":12},{"language":"hi","tag":"Overview","count":12},{"language":"it","tag":"Overview","count":12},{"language":"ko","tag":"Overview","count":12},{"language":"pt","tag":"Overview","count":12},{"language":"ru","tag":"Overview","count":12},{"language":"vi","tag":"Overview","count":12},{"language":"zh","tag":"Overview","count":12},{"language":"ar","tag":"Projects","count":11},{"language":"de","tag":"Projects","count":11},{"language":"en","tag":"CLI","count":11},{"language":"en","tag":"Projects","count":11},{"language":"es","tag":"Projects","count":11},{"language":"fr","tag":"Projects","count":11},{"language":"hi","tag":"Projects","count":11},{"language":"it","tag":"Projects","count":11},{"language":"ko","tag":"Projects","count":11},{"language":"pt","tag":"Projects","count":11},{"language":"ru","tag":"Projects","count":11},{"language":"vi","tag":"Projects","count":11},{"language":"zh","tag":"Projects","count":11},{"language":"ar","tag":"التخصيص","count":10},{"language":"de","tag":"Anpassung","count":10},{"language":"es","tag":"Personalización","count":10},{"language":"fr","tag":"Personnalisation","count":10},{"language":"hi","tag":"अनुकूलन","count":10},{"language":"it","tag":"Personalizzazione","count":10},{"language":"ko","tag":"맞춤 설정","count":10},{"language":"pt","tag":"Personalização","count":10},{"language":"ru","tag":"Настройка","count":10},{"language":"vi","tag":"Tùy biến","count":10},{"language":"zh","tag":"自定义","count":10},{"language":"ar","tag":"Guides","count":7},{"language":"de","tag":"Guides","count":7},{"language":"es","tag":"Guides","count":7},{"language":"fr","tag":"Guides","count":7},{"language":"hi","tag":"Guides","count":7},{"language":"it","tag":"Guides","count":7},{"language":"ko","tag":"Guides","count":7},{"language":"pt","tag":"Guides","count":7},{"language":"ru","tag":"Guides","count":7},{"language":"vi","tag":"Guides","count":7},{"language":"zh","tag":"Guides","count":7},{"language":"ar","tag":"الإعدادات","count":6},{"language":"de","tag":"Einstellungen","count":6},{"language":"es","tag":"Configuración","count":6},{"language":"fr","tag":"Paramètres","count":6},{"language":"hi","tag":"सेटिंग्स","count":6},{"language":"it","tag":"Account","count":6},{"language":"ko","tag":"설정","count":6},{"language":"pt","tag":"Configurações","count":6},{"language":"ru","tag":"Параметры","count":6},{"language":"vi","tag":"Cài đặt","count":6},{"language":"zh","tag":"设置","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"ar/sdk/errors","slug":"/ar/sdk/errors","pageMetadata":{"title":"الأخطاء","description":"التعامل مع YoukaRequestError و YoukaTaskError والإخفاقات القابلة لإعادة المحاولة","href":"/ar/sdk/errors"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"التعامل مع YoukaRequestError و YoukaTaskError والإخفاقات القابلة لإعادة المحاولة\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`يكشف SDK عن فئتين من الأخطاء: `,_jsx(_components.code,{children:`YoukaRequestError`}),` لأخطاء HTTP وإخفاقات التحقق، و `,_jsx(_components.code,{children:`YoukaTaskError`}),` للمهام غير المتزامنة التي انتهت بحالة غير ناجحة. كلتاهما تمتدان `,_jsx(_components.code,{children:`Error`}),` وتحملان حقولًا منظَّمة لتتمكن من التفريع بناءً على code و status وقابلية إعادة المحاولة.`]}),`\n`,_jsx(Heading,{level:`2`,id:`youkarequesterror`,children:_jsx(_components.code,{children:`YoukaRequestError`})}),`\n`,_jsx(_components.p,{children:`يُرمى عند أخطاء HTTP، وإخفاقات التحقق من صحة الطلب، والاستجابات غير السليمة.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`YoukaRequestError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@youka/ar/sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`projects`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` instanceof`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` YoukaRequestError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` code:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` message:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` status:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` retryable:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`retryable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` details:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`details`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`الحقول`,children:`الحقول`}),`\n`,_jsx(ParamField,{path:`code`,type:`string`,id:`param-code`,children:_jsxs(_components.p,{children:[`رمز خطأ قابل للقراءة آليًا، مثل `,_jsx(_components.code,{children:`INVALID_REQUEST`}),` و `,_jsx(_components.code,{children:`UNAUTHORIZED`}),` و\n`,_jsx(_components.code,{children:`UPLOAD_FAILED`}),`.`]})}),`\n`,_jsx(ParamField,{path:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`وصف قابل للقراءة البشرية.`})}),`\n`,_jsx(ParamField,{path:`status`,type:`number`,id:`param-status`,children:_jsx(_components.p,{children:`رمز حالة HTTP، إن كان متاحًا.`})}),`\n`,_jsx(ParamField,{path:`retryable`,type:`boolean`,id:`param-retryable`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` إذا كان SDK يعتبر الخطأ جديرًا بإعادة المحاولة (حدود المعدّل، أخطاء\nالخادم العابرة، إعادة تشغيل idempotent قيد التنفيذ).`]})}),`\n`,_jsx(ParamField,{path:`details`,type:`unknown`,id:`param-details`,children:_jsx(_components.p,{children:`تفاصيل مقدَّمة من الخادم، غالبًا قائمة مشكلات Zod لأخطاء التحقق.`})}),`\n`,_jsx(Heading,{level:`3`,id:`الرموز-الشائعة`,children:`الرموز الشائعة`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`الرمز`}),_jsx(_components.th,{children:`السبب`}),_jsx(_components.th,{children:`قابل لإعادة المحاولة؟`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`INVALID_REQUEST`})}),_jsx(_components.td,{children:`فشل جسم الطلب في التحقق من المخطط قبل إرساله.`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`UNAUTHORIZED`})}),_jsx(_components.td,{children:`مفتاح API مفقود أو غير صالح.`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`NOT_FOUND`})}),_jsx(_components.td,{children:`المورد غير موجود أو لا تملك صلاحية الوصول.`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CONFLICT`})}),_jsx(_components.td,{children:`تعارض في الإصدار (HTTP 409).`}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TOO_MANY_REQUESTS`})}),_jsx(_components.td,{children:`تم بلوغ حد المعدّل (HTTP 429).`}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`INTERNAL_SERVER_ERROR`})}),_jsx(_components.td,{children:`فشل عابر في الخادم (HTTP 500).`}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IDEMPOTENT_REPLAY_IN_PROGRESS`})}),_jsx(_components.td,{children:`لا يزال الطلب الأصلي قيد التنفيذ تحت مفتاح idempotency نفسه (HTTP 202).`}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`INVALID_RESPONSE`})}),_jsx(_components.td,{children:`أعاد الخادم جسمًا لا يطابق المخطط المتوقع.`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`UPLOAD_FAILED`})}),_jsx(_components.td,{children:`أعاد رفع Signed URL حالة غير 2xx.`}),_jsx(_components.td,{children:`Depends on status`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`youkataskerror`,children:_jsx(_components.code,{children:`YoukaTaskError`})}),`\n`,_jsxs(_components.p,{children:[`يُرمى من `,_jsx(_components.code,{children:`client.tasks.wait(...)`}),` و `,_jsx(_components.code,{children:`client.projects.wait(...)`}),` و `,_jsx(_components.code,{children:`client.exports.wait(...)`}),` عندما تنتهي المهمة الأساسية أو التصدير بحالة `,_jsx(_components.code,{children:`failed`}),` أو `,_jsx(_components.code,{children:`cancelled`}),` أو `,_jsx(_components.code,{children:`timed-out`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`YoukaTaskError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@youka/ar/sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`projects`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`wait`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`created`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` instanceof`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` YoukaTaskError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` code:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` message:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` status:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` task:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`الحقول-2`,children:`الحقول`}),`\n`,_jsx(ParamField,{path:`code`,type:`'TASK_FAILED' | 'TASK_CANCELLED' | 'TASK_TIMED_OUT'`,id:`param-code-1`,children:_jsx(_components.p,{children:`يتطابق مباشرةً مع الحالة النهائية للمهمة.`})}),`\n`,_jsx(ParamField,{path:`message`,type:`string`,id:`param-message-1`,children:_jsx(_components.p,{children:`إما رسالة خطأ المهمة المقدَّمة من الخادم أو قيمة بديلة تم توليدها.`})}),`\n`,_jsx(ParamField,{path:`status`,type:`TaskStatus`,id:`param-status-1`,children:_jsx(_components.p,{children:`الحالة النهائية للمهمة.`})}),`\n`,_jsx(ParamField,{path:`task`,type:`RestTask`,id:`param-task`,children:_jsx(_components.p,{children:`الحمولة الكاملة للمهمة لحظة الفشل. مفيدة للتسجيل ورسائل الخطأ المعروضة للمستخدم.`})}),`\n`,_jsx(Heading,{level:`2`,id:`نمط-إعادة-المحاولة`,children:`نمط إعادة المحاولة`}),`\n`,_jsxs(_components.p,{children:[`ادمج `,_jsx(_components.code,{children:`retryable`}),` مع مفتاح idempotency لبناء حلقة إعادة محاولة آمنة:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`30`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`30`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`YoukaRequestError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@youka/ar/sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` createWithRetry`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`T`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fn`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`T`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`maxAttempts`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lastError`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` unknown`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` attempt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`attempt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` maxAttempts`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`attempt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fn`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lastError`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` instanceof`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` YoukaRequestError`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`retryable`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` attempt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` maxAttempts`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ) {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setTimeout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` **`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` attempt`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1_000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` continue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lastError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` createWithRetry`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`projects`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` idempotencyKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"import-2026-04-08-song-001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`أعد استخدام مفتاح idempotency نفسه دائمًا عبر محاولات الإعادة. وإلا فسيتعامل الخادم مع الإعادة كطلب جديد وقد ينتهي بك الأمر إلى تكرارات.`})}),`\n`,_jsx(Heading,{level:`2`,id:`الإلغاء-والإيقاف`,children:`الإلغاء والإيقاف`}),`\n`,_jsxs(_components.p,{children:[`إيقاف (aborting) طلب يؤدي إلى رمي `,_jsx(_components.code,{children:`AbortError`}),` القياسي — وليس `,_jsx(_components.code,{children:`YoukaRequestError`}),`. تحقّق منه صراحةً:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`projects`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`wait`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`created`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`signal:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` controller`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`signal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` instanceof`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"AbortError\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Cancelled by user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`ما-التالي`,children:`ما التالي`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/ar/sdk/tasks`,children:`المهام`}),` — مساعدات الانتظار واستطلاع المهام المتقدم`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/ar/sdk/authentication`,children:`المصادقة`}),` — خيارات المُنشئ والإشارات`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/ar/api/errors`,children:`أخطاء API`}),` — الرموز نفسها في HTTP الخام`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"الأخطاء","description":"التعامل مع YoukaRequestError و YoukaTaskError والإخفاقات القابلة لإعادة المحاولة","href":"/ar/sdk/errors"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"YoukaRequestError","slug":"youkarequesterror","depth":2,"children":[{"title":"الحقول","slug":"الحقول","depth":3,"children":[]},{"title":"الرموز الشائعة","slug":"الرموز-الشائعة","depth":3,"children":[]}]},{"title":"YoukaTaskError","slug":"youkataskerror","depth":2,"children":[{"title":"الحقول","slug":"الحقول-2","depth":3,"children":[]}]},{"title":"نمط إعادة المحاولة","slug":"نمط-إعادة-المحاولة","depth":2,"children":[]},{"title":"الإلغاء والإيقاف","slug":"الإلغاء-والإيقاف","depth":2,"children":[]},{"title":"ما التالي","slug":"ما-التالي","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"youka","siteName":"Youka Docs","title":"الأخطاء - Youka Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/ar/sdk/errors","matchLevel":0},"es":{"href":"/es","matchLevel":4},"fr":{"href":"/fr","matchLevel":4},"it":{"href":"/it","matchLevel":4},"pt":{"href":"/pt","matchLevel":4},"de":{"href":"/de","matchLevel":4},"ru":{"href":"/ru","matchLevel":4},"ar":{"href":"/ar","matchLevel":4},"hi":{"href":"/hi","matchLevel":4},"ko":{"href":"/ko","matchLevel":4},"zh":{"href":"/zh","matchLevel":4},"vi":{"href":"/vi","matchLevel":4}}},"lastModified":"2026-07-23T11:12:16.717Z","originalFileLocation":"ar/sdk/errors.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"التعامل مع YoukaRequestError و YoukaTaskError والإخفاقات القابلة لإعادة المحاولة\">\u003cmeta data-mint-head name=\"application-name\" content=\"Youka Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/youka/NSqTV88nzJg8ascD/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/youka/NSqTV88nzJg8ascD/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/youka/NSqTV88nzJg8ascD/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/youka/NSqTV88nzJg8ascD/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/youka/NSqTV88nzJg8ascD/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/youka/NSqTV88nzJg8ascD/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/youka/NSqTV88nzJg8ascD/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/youka/NSqTV88nzJg8ascD/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/youka/NSqTV88nzJg8ascD/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"الأخطاء - Youka Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"التعامل مع YoukaRequestError و YoukaTaskError والإخفاقات القابلة لإعادة المحاولة\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Youka Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.youka.io/ar/sdk/errors\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://youka.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=%D8%A7%D9%84%D8%A3%D8%AE%D8%B7%D8%A7%D8%A1\u0026amp;description=%D8%A7%D9%84%D8%AA%D8%B9%D8%A7%D9%85%D9%84+%D9%85%D8%B9+YoukaRequestError+%D9%88+YoukaTaskError+%D9%88%D8%A7%D9%84%D8%A5%D8%AE%D9%81%D8%A7%D9%82%D8%A7%D8%AA+%D8%A7%D9%84%D9%82%D8%A7%D8%A8%D9%84%D8%A9+%D9%84%D8%A5%D8%B9%D8%A7%D8%AF%D8%A9+%D8%A7%D9%84%D9%85%D8%AD%D8%A7%D9%88%D9%84%D8%A9\u0026amp;theme=3da4cca1e7abda7ff1f09bf6\u0026amp;signature=bcf87a8baea1da3e748108203d3d439754caea7d4c20d3ee7e271ea66d327ce0\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"الأخطاء - Youka Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"التعامل مع YoukaRequestError و YoukaTaskError والإخفاقات القابلة لإعادة المحاولة\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://youka.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=%D8%A7%D9%84%D8%A3%D8%AE%D8%B7%D8%A7%D8%A1\u0026amp;description=%D8%A7%D9%84%D8%AA%D8%B9%D8%A7%D9%85%D9%84+%D9%85%D8%B9+YoukaRequestError+%D9%88+YoukaTaskError+%D9%88%D8%A7%D9%84%D8%A5%D8%AE%D9%81%D8%A7%D9%82%D8%A7%D8%AA+%D8%A7%D9%84%D9%82%D8%A7%D8%A8%D9%84%D8%A9+%D9%84%D8%A5%D8%B9%D8%A7%D8%AF%D8%A9+%D8%A7%D9%84%D9%85%D8%AD%D8%A7%D9%88%D9%84%D8%A9\u0026amp;theme=3da4cca1e7abda7ff1f09bf6\u0026amp;signature=bcf87a8baea1da3e748108203d3d439754caea7d4c20d3ee7e271ea66d327ce0\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/youka/NSqTV88nzJg8ascD/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Youka Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8C2BEE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.youka.io/ar/sdk/errors\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ar/sdk/errors.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Youka Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Youka Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ar/sdk/errors.md","siteName":"Youka Docs","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Youka Online","groups":[{"group":"Overview","pages":[{"title":"Youka Docs","href":"/en"},{"title":"Youka Online","href":"/en/web/index"}]},{"group":"How To","pages":[{"title":"Create Your First Karaoke","href":"/en/web/create-karaoke"},{"title":"Create Karaoke from a URL","href":"/en/web/create-karaoke-from-url"},{"title":"Create a project from synced lyrics","href":"/en/web/create-from-synced-lyrics"},{"title":"Add Your Own Lyrics","href":"/en/web/provide-lyrics"},{"title":"Youka Extension","href":"/en/web/youka-extension"},{"title":"Let AI Detect Lyrics","href":"/en/web/auto-transcribe"},{"title":"Choose a Lyrics Sync Model","href":"/en/web/lyrics-sync-models"},{"title":"Manage Your Projects","href":"/en/web/manage-projects"},{"title":"Using the Studio Editor","href":"/en/web/using-studio"},{"title":"Export and Download","href":"/en/web/export-video"},{"title":"Your Karaoke Library","href":"/en/web/using-library"},{"title":"Create and manage saved playlists","href":"/en/web/saved-playlists"},{"title":"Use Youka offline","href":"/en/web/offline-library"},{"title":"Remote Control","href":"/en/web/remote-control"},{"title":"Join a Karaoke Session","href":"/en/web/join-session"},{"title":"Fix lyric line breaks","href":"/en/web/fix-line-breaks"},{"title":"Fine-Tune Lyrics Timing","href":"/en/web/manual-sync"},{"title":"Set Up Duet Mode","href":"/en/web/duet-editor"},{"title":"Edit Lyrics Text","href":"/en/web/edit-lyrics"},{"title":"Multilingual Karaoke","href":"/en/web/multilingual-karaoke"},{"title":"Chord Layout","href":"/en/web/chord-track"}]},{"group":"Customization","pages":[{"title":"Change Background","href":"/en/web/change-background"},{"title":"Customize Text Style","href":"/en/web/customize-text-style"},{"title":"Layout Options","href":"/en/web/layout-options"},{"title":"Add Title Card","href":"/en/web/add-title-card"},{"title":"Add Lead-In Beats","href":"/en/web/add-lead-in"},{"title":"Add Logo Watermark","href":"/en/web/add-logo"},{"title":"Add Intro and Outro","href":"/en/web/add-intro-outro"}]},{"group":"Audio","pages":[{"title":"Adjust Audio Mix","href":"/en/web/audio-mix"},{"title":"Change Speed or Pitch","href":"/en/web/change-speed-pitch"},{"title":"Keep Backing Vocals","href":"/en/web/keep-backing-vocals"}]},{"group":"Settings","pages":[{"title":"Save Different Versions","href":"/en/web/versions"},{"title":"Use Style Presets","href":"/en/web/presets"},{"title":"Trim \u0026 Extend","href":"/en/web/trim-song"}]},{"group":"Exporting","pages":[{"title":"Use Transparent Background Videos in Video Editors","href":"/en/web/use-transparent-background"}]},{"group":"Account","pages":[{"title":"Understanding Credits","href":"/en/web/understanding-credits"},{"title":"Buy More Credits","href":"/en/web/buy-credits"},{"title":"Cancel Your Subscription","href":"/en/web/cancel-subscription"}]}]},{"tab":"Youka Desktop","groups":[{"group":"Overview","pages":[{"title":"Youka Desktop","href":"/en/desktop"},{"title":"Create karaoke from a URL","href":"/en/desktop/create-from-url"},{"title":"Export a finished video for free","href":"/en/desktop/free-export"},{"title":"Play karaoke videos offline","href":"/en/desktop/offline-playback"}]}]},{"tab":"Youka Desktop Legacy","groups":[{"group":"Overview","pages":[{"title":"Youka Desktop Legacy","href":"/en/desktop-legacy"},{"title":"Move Legacy Projects to Youka Online","href":"/en/desktop-legacy/migrate-to-youka-online"}]},{"group":"How To","pages":[{"title":"Youka Desktop Legacy: Video URL to Karaoke","href":"/en/desktop/youtube-to-karaoke"},{"title":"Youka Desktop Legacy: Create Karaoke from a File","href":"/en/desktop/create-from-file"},{"title":"Youka Desktop Legacy: Edit the Lyrics","href":"/en/desktop/edit-lyrics"},{"title":"Youka Desktop Legacy: Fix Lyrics Sync","href":"/en/desktop/fix-lyrics-sync"},{"title":"Youka Desktop Legacy: Set Up a Duet","href":"/en/desktop/setup-duet"},{"title":"Youka Desktop Legacy: Trim a Karaoke Video","href":"/en/desktop/trim-video"},{"title":"Youka Desktop Legacy: Add a Line Break","href":"/en/desktop/add-line-break"},{"title":"Youka Desktop Legacy: Adjust Line Length","href":"/en/desktop/adjust-line-length"},{"title":"Youka Desktop Legacy: Change Text to Uppercase","href":"/en/desktop/change-to-uppercase"},{"title":"Youka Desktop Legacy: Style Each Singer Differently","href":"/en/desktop/multiple-singers-style"},{"title":"Youka Desktop Legacy: Delete a Karaoke","href":"/en/desktop/delete-karaoke"},{"title":"Youka Desktop Legacy: Keep the Original Vocals","href":"/en/desktop/keep-original-vocals"},{"title":"Youka Desktop Legacy: Transfer Your Library to a New Computer","href":"/en/desktop/transfer-library"},{"title":"Youka Desktop Legacy: Move Your Project Library to a Safe Folder","href":"/en/desktop/move-project-library-to-safe-folder"}]},{"group":"Customization","pages":[{"title":"Youka Desktop Legacy: Change the Background Video","href":"/en/desktop/change-background-video"},{"title":"Youka Desktop Legacy: Add a Background Box to Subtitles","href":"/en/desktop/add-background-box"},{"title":"Youka Desktop Legacy: Center Subtitles","href":"/en/desktop/center-subtitles"}]},{"group":"Audio","pages":[{"title":"Youka Desktop Legacy: Keep Background Vocals","href":"/en/desktop/keep-background-vocals"}]},{"group":"Settings","pages":[{"title":"Youka Desktop Legacy: Keyboard Shortcuts","href":"/en/desktop/keyboard-shortcuts"},{"title":"Youka Desktop Legacy: Split Model Reference","href":"/en/desktop/split-model"},{"title":"Youka Desktop Legacy: Sync Model Reference","href":"/en/desktop/sync-model"}]},{"group":"Troubleshooting","pages":[{"title":"Youka Desktop Legacy: Fix Incorrect Font Display in Exports","href":"/en/desktop/incorrect-font-display"},{"title":"Youka Desktop Legacy: Lyrics Are Out of Sync","href":"/en/desktop/lyrics-out-of-sync"},{"title":"Youka Desktop Legacy: Speed Up Downloads","href":"/en/desktop/speed-up-download"}]},{"group":"Account","pages":[{"title":"Youka Desktop Legacy: Cancel Your Subscription","href":"/en/desktop/cancel-subscription"}]}]},{"tab":"Youka Live","groups":[{"group":"Overview","pages":[{"title":"Youka Live","href":"/en/live"},{"title":"Get started with Youka Live","href":"/en/live/getting-started"}]},{"group":"Licensing","pages":[{"title":"License, devices, and AI model upgrades","href":"/en/live/license-and-upgrades"}]},{"group":"Help","pages":[{"title":"Troubleshoot Youka Live","href":"/en/live/troubleshooting"}]}]},{"tab":"CLI","groups":[{"group":"Overview","pages":[{"title":"Youka CLI","href":"/en/cli"},{"title":"Global options","href":"/en/cli/global-options"}]},{"group":"Reference","pages":[{"title":"Account","href":"/en/cli/account"},{"title":"Credits","href":"/en/cli/credits"},{"title":"Billing","href":"/en/cli/billing"},{"title":"Projects","href":"/en/cli/projects"},{"title":"Exports","href":"/en/cli/exports"},{"title":"Presets","href":"/en/cli/presets"},{"title":"Media","href":"/en/cli/media"},{"title":"Tasks","href":"/en/cli/tasks"},{"title":"Dependencies","href":"/en/cli/deps"}]}]},{"tab":"SDK","groups":[{"group":"Overview","pages":[{"title":"Node.js SDK","href":"/en/sdk"},{"title":"Quickstart","href":"/en/sdk/quickstart"},{"title":"Authentication","href":"/en/sdk/authentication"},{"title":"Account, credits, and billing","href":"/en/sdk/account-billing"}]},{"group":"Reference","pages":[{"title":"Projects","href":"/en/sdk/projects"},{"title":"Stems","href":"/en/sdk/stems"},{"title":"Lyrics sync","href":"/en/sdk/lyrics-sync"},{"title":"Exports","href":"/en/sdk/exports"},{"title":"Tasks","href":"/en/sdk/tasks"},{"title":"Presets","href":"/en/sdk/presets"},{"title":"Media","href":"/en/sdk/media"},{"title":"Project settings","href":"/en/sdk/project-settings"},{"title":"Errors","href":"/en/sdk/errors"}]}]},{"tab":"API","groups":[{"group":"Guides","pages":[{"title":"API Overview","href":"/en/api"},{"title":"Raw HTTP Quickstart","href":"/en/api/quickstart"},{"title":"Authentication","href":"/en/api/authentication"},{"title":"Async jobs and polling","href":"/en/api/async-jobs"},{"title":"Idempotency","href":"/en/api/idempotency"},{"title":"Errors and retry behavior","href":"/en/api/errors"},{"title":"Automate lyric videos","href":"/en/api/lyric-video-automation"}]},{"group":"Resources","pages":[{"title":"Account, credits, and billing","href":"/en/api/account-billing"},{"title":"Projects","href":"/en/api/projects"},{"title":"Exports","href":"/en/api/exports"},{"title":"Tasks","href":"/en/api/tasks"},{"title":"Stems","href":"/en/api/stems"},{"title":"Lyrics sync","href":"/en/api/lyrics-sync"},{"title":"Presets","href":"/en/api/presets"},{"title":"Media","href":"/en/api/media"},{"title":"Project settings","href":"/en/api/project-settings"}]},{"group":"API Reference","pages":[{"group":"Account","pages":[{"title":"Get models, compatible workflows and account eligibility","deprecated":null,"version":null,"openapi":"/openapi.json get /capabilities","href":"/en/api/api-reference/account/get-models-compatible-workflows-and-account-eligibility"},{"title":"Get the authenticated account","deprecated":null,"version":null,"openapi":"/openapi.json get /me","href":"/en/api/api-reference/account/get-the-authenticated-account"}]},{"group":"Projects","pages":[{"title":"List timings and selection revisions","deprecated":null,"version":null,"openapi":"/openapi.json get /projects/{projectId}/alignments","href":"/en/api/api-reference/projects/list-timings-and-selection-revisions"},{"title":"Get an alignment and revision","deprecated":null,"version":null,"openapi":"/openapi.json get /projects/{projectId}/alignments/{alignmentId}","href":"/en/api/api-reference/projects/get-an-alignment-and-revision"},{"title":"Replace exact word timings without processing or charging credits","deprecated":null,"version":null,"openapi":"/openapi.json put /projects/{projectId}/alignments/{alignmentId}","href":"/en/api/api-reference/projects/replace-exact-word-timings-without-processing-or-charging-credits"},{"title":"Select an alignment using timing and selection revisions","deprecated":null,"version":null,"openapi":"/openapi.json put /projects/{projectId}/alignments/{alignmentId}/selection","href":"/en/api/api-reference/projects/select-an-alignment-using-timing-and-selection-revisions"},{"title":"List project versions for explicit export or settings selection","deprecated":null,"version":null,"openapi":"/openapi.json get /projects/{projectId}/versions","href":"/en/api/api-reference/projects/list-project-versions-for-explicit-export-or-settings-selection"},{"title":"List projects","deprecated":null,"version":null,"openapi":"/openapi.json get /projects","href":"/en/api/api-reference/projects/list-projects"},{"title":"Create a project","deprecated":null,"version":null,"openapi":"/openapi.json post /projects","href":"/en/api/api-reference/projects/create-a-project"},{"title":"Quote project creation","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/quote","href":"/en/api/api-reference/projects/quote-project-creation"},{"title":"Get current project state","deprecated":null,"version":null,"openapi":"/openapi.json get /projects/{projectId}","href":"/en/api/api-reference/projects/get-current-project-state"},{"title":"Delete a project","deprecated":null,"version":null,"openapi":"/openapi.json delete /projects/{projectId}","href":"/en/api/api-reference/projects/delete-a-project"},{"title":"Update project metadata","deprecated":null,"version":null,"openapi":"/openapi.json patch /projects/{projectId}","href":"/en/api/api-reference/projects/update-project-metadata"}]},{"group":"Uploads","pages":[{"title":"Create an upload target","deprecated":null,"version":null,"openapi":"/openapi.json post /uploads","href":"/en/api/api-reference/uploads/create-an-upload-target"}]},{"group":"Credits","pages":[{"title":"Get credit balance","deprecated":null,"version":null,"openapi":"/openapi.json get /credits","href":"/en/api/api-reference/credits/get-credit-balance"}]},{"group":"Billing","pages":[{"title":"Get billing catalog","deprecated":null,"version":null,"openapi":"/openapi.json get /billing/catalog","href":"/en/api/api-reference/billing/get-billing-catalog"},{"title":"Create a billing checkout session","deprecated":null,"version":null,"openapi":"/openapi.json post /billing/checkout","href":"/en/api/api-reference/billing/create-a-billing-checkout-session"},{"title":"Get billing management URL","deprecated":null,"version":null,"openapi":"/openapi.json get /billing/manage","href":"/en/api/api-reference/billing/get-billing-management-url"}]},{"group":"Tasks","pages":[{"title":"Run stem separation for a project","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/{projectId}/tasks/stem-separation","href":"/en/api/api-reference/tasks/run-stem-separation-for-a-project"},{"title":"Run lyrics sync for a project","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/{projectId}/tasks/lyrics-sync","href":"/en/api/api-reference/tasks/run-lyrics-sync-for-a-project"},{"title":"List project tasks","deprecated":null,"version":null,"openapi":"/openapi.json get /projects/{projectId}/tasks","href":"/en/api/api-reference/tasks/list-project-tasks"},{"title":"Get task status","deprecated":null,"version":null,"openapi":"/openapi.json get /tasks/{taskId}","href":"/en/api/api-reference/tasks/get-task-status"}]},{"group":"Exports","pages":[{"title":"List project exports","deprecated":null,"version":null,"openapi":"/openapi.json get /projects/{projectId}/exports","href":"/en/api/api-reference/exports/list-project-exports"},{"title":"Create an export","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/{projectId}/exports","href":"/en/api/api-reference/exports/create-an-export"},{"title":"Prepare a local export payload","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/{projectId}/exports/local","href":"/en/api/api-reference/exports/prepare-a-local-export-payload"},{"title":"Quote an export","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/{projectId}/exports/quote","href":"/en/api/api-reference/exports/quote-an-export"},{"title":"Get export state and fresh download URL","deprecated":null,"version":null,"openapi":"/openapi.json get /exports/{exportId}","href":"/en/api/api-reference/exports/get-export-state-and-fresh-download-url"}]},{"group":"Presets","pages":[{"title":"List presets","deprecated":null,"version":null,"openapi":"/openapi.json get /presets","href":"/en/api/api-reference/presets/list-presets"},{"title":"Create a preset","deprecated":null,"version":null,"openapi":"/openapi.json post /presets","href":"/en/api/api-reference/presets/create-a-preset"},{"title":"Get a preset","deprecated":null,"version":null,"openapi":"/openapi.json get /presets/{presetId}","href":"/en/api/api-reference/presets/get-a-preset"},{"title":"Delete a preset","deprecated":null,"version":null,"openapi":"/openapi.json delete /presets/{presetId}","href":"/en/api/api-reference/presets/delete-a-preset"},{"title":"Update a preset","deprecated":null,"version":null,"openapi":"/openapi.json patch /presets/{presetId}","href":"/en/api/api-reference/presets/update-a-preset"}]},{"group":"Media","pages":[{"title":"List media","deprecated":null,"version":null,"openapi":"/openapi.json get /media","href":"/en/api/api-reference/media/list-media"},{"title":"Create media","deprecated":null,"version":null,"openapi":"/openapi.json post /media","href":"/en/api/api-reference/media/create-media"},{"title":"Get a media item","deprecated":null,"version":null,"openapi":"/openapi.json get /media/{mediaId}","href":"/en/api/api-reference/media/get-a-media-item"},{"title":"Delete a media item","deprecated":null,"version":null,"openapi":"/openapi.json delete /media/{mediaId}","href":"/en/api/api-reference/media/delete-a-media-item"}]},{"group":"Project Settings","pages":[{"title":"Get a project's active settings","deprecated":null,"version":null,"openapi":"/openapi.json get /projects/{projectId}/settings","href":"/en/api/api-reference/project-settings/get-a-projects-active-settings"},{"title":"Update a project's active settings","deprecated":null,"version":null,"openapi":"/openapi.json patch /projects/{projectId}/settings","href":"/en/api/api-reference/project-settings/update-a-projects-active-settings"}]}]}]},{"tab":"AI Agents","groups":[{"group":"Overview","pages":[{"title":"AI Agents","href":"/en/agents"},{"title":"Use Youka from AI assistants (MCP)","sidebarTitle":"MCP server","href":"/en/agents/mcp"}]}]}]},{"language":"es","pages":[{"title":"es","href":"/es"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr"}]},{"language":"it","pages":[{"title":"it","href":"/it"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt"}]},{"language":"de","pages":[{"title":"de","href":"/de"}]},{"language":"ru","pages":[{"title":"ru","href":"/ru"}]},{"language":"ar","pages":[{"title":"ar","href":"/ar"}]},{"language":"hi","pages":[{"title":"hi","href":"/hi"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko"}]},{"language":"zh","pages":[{"title":"zh","href":"/zh"}]},{"language":"vi","pages":[{"title":"vi","href":"/vi"}]}]},"basePath":"","title":"الأخطاء - Youka Docs","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}