Have something to say?

Tell us how we could make the product more useful to you.

Note that this feedback section only concerns Mindee V2:

https://app.mindee.com and https://api-v2.mindee.net/

Completed

API Call error

Hello! When we tray t execute API call API https://api-v2.mindee.net/v2/inferences/enqueue with the Model_id 'b0f84468-d7bd-49c8-8818-eec5f01d3e9c' we get the following error, that 3 days ago when we migrated from V1 to V2 didn’t occured: { "statusCode": 500, "headers":Β { "Strict-Transport-Security": "max-age=31536000;Β includeSubDomains", "x-ms-environment-id": "default-172d5c03-04d9-45ba-adb5-b6d7b8f02e6a", "x-ms-tenant-id": "172d5c03-04d9-45ba-adb5-b6d7b8f02e6a", "x-ms-dlp-re": "-|-", "x-ms-dlp-gu": "-|-", "x-ms-dlp-ef": "-|-/-|-|-", "x-ms-apihub-cached-response": "false", "x-ms-apihub-obo": "false", "Date": "Wed,Β 29Β OctΒ 2025Β 15:42:46Β GMT", "Content-Length": "123", "Content-Type": "application/json" }, "body":Β { "status": 500, "detail": "AnΒ unexpectedΒ serverΒ errorΒ occurred.", "title": "InternalΒ ServerΒ Error", "code": "500-003", "errors":Β [] } } Thank you

Image

FundaciΓ³ Kalida 3 months ago

4

πŸ› Bug Report

Completed

### ❓ Issue: "HTTP 422 - Empty file sent" when using `Base64Input` with Mindee V2 SDK

Hi Mindee team πŸ‘‹ I’m integrating the Mindee OCR API inside a NestJS backend (running in Docker), and I’m getting a consistent HTTP 422 - Empty file sent error when using Base64Input with the V2 client. 🧩 Code example this.client = new mindee.ClientV2({ apiKey: config.apiKey, }); async parseReceipt(imageBase64: string): Promise { const inputSource = new mindee.Base64Input({ inputString: imageBase64, filename: 'receipt.jpg', }); // I also tried manually initializing: // await inputSource.init(); // The Buffer is correctly filled here. const apiResponse = await this.client.enqueueAndGetInference( inputSource, { modelId: this.modelId, rawText: true, } ); return {}; } βš™οΈ Context SDK: mindee (latest, ClientV2) Environment: NestJS (Node 20, Docker) Model: Input: Base64-encoded JPEG (I confirmed it’s valid and decodes properly) 🧠 What I noticed Even when I manually run await inputSource.init(), the inputSource.buffer is correctly filled with the decoded image data. However, as soon as I call: await this.client.enqueueAndGetInference(inputSource, { modelId: this.modelId }) the SDK still throws: MindeeHttpErrorV2: HTTP 422 - Empty file sent. πŸ™ Question Is there something I’m missing when using Base64Input with ClientV2? Does it need a specific encoding format or initialization step before sending? Thanks for your help!

Image

Folly Epiphane AVLAH 3 months ago

4

πŸ› Bug Report