(response: Response, label: string)
| 54 | } |
| 55 | |
| 56 | async function readVideoErrorText(response: Response, label: string): Promise<string> { |
| 57 | return readResponseTextWithLimit(response, { |
| 58 | maxBytes: DEFAULT_MAX_ERROR_BODY_BYTES, |
| 59 | label, |
| 60 | }).catch(() => '') |
| 61 | } |
| 62 | |
| 63 | export const POST = withRouteHandler(async (request: NextRequest) => { |
| 64 | const requestId = generateId() |
no test coverage detected