Skip to main content

java SDK problem

Hello Mindee Team,

I’m currently working with Java SDK to extract data from a URL source file, It was working perfectly fine on Friday, but since this morning I keep getting the same error

[com.mindee.http.MindeeHttpExceptionV2: Invalid fields in form - HTTP 422 - Invalid fields in form], the same documents work just fine on live test but not using the Java SDK.

Could you please help me resolve this issue ?

Best regards

Status: Completed3 comments

Log in to comment and vote

Comments3

  • Ianaré Sévi

    Team•

    Jul 28, 2025

    Hi,

    We have some functional testing in Java for this use case and it is passing.

    The Java client is also still under review, we released 4.33.0-rc4 on Friday:

    https://central.sonatype.com/artifact/com.mindee.sdk/mindee-api-java/4.33.0-rc4

    Can you try the following please?

    Update to the latest version of the client.

    Then try sending using the following code:

    MindeeClientV2 mindeeClient = new MindeeClientV2(apiKey);
    
    URLInputSource urlSource = URLInputSource
        .builder("https://upload.wikimedia.org/wikipedia/commons/1/1d/Blank_Page.pdf")
        .build();
    
    InferenceParameters options = InferenceParameters
        .builder(modelId)
        .build();
    
    InferenceResponse response = mindeeClient.enqueueAndGetInference(urlSource, options);

    Let me know if you’re getting a 422 with this.

    Thank you!

    • Said El haddati

      •

      Jul 28, 2025

      Thank you for the quick response, it turns out that I initially had a problem with my URLs, in the meantine I’ll switch to the latest version too, thank you again.
      Regards

  • Jonathan Grandperrin

    Team•

    Jul 28, 2025

    Hi Said! The team is looking into it.