Found it was because I was connected to a VPN. Language data was included and Docker container log errors disappeared after disconnecting from it.
How to fix missing language data from Form Recognizer Layout 3.1 Model running on container?
I'm trying out the Layout 3.1 container version of Document Intelligence's prebuilt-layout model, with the Python SDK package
azure-ai-formrecognizer = "3.3.0"
to analyze documents.
However, whenever I send a request to analyze a document using begin_analyze_document()
, and parse the JSON response, the language data is always missing:
...
"languages": [],
"pages": [
{
...
This is the log from the Docker container:
azure-form-recognizer-layout | StorageTimeToLiveInMinutes is set to 2880 minutes.
azure-form-recognizer-layout | Not a TIFF or MDI file, bad magic number 20517 (0x5025).
azure-form-recognizer-layout | fail: formrecognizerlayout[0]
azure-form-recognizer-layout | Failed to track On-Premises Usage buildVersion='1.2.521.0-20240203.1-b0c0f5500a46efc1634694ae85c20587fa5d7ab0' hostId='5143f0834253' serviceName='formrecognizerlayout' requestId='6af7c387-2c81-4634-816f-4d36ba268fd8' tags='billing' namespace='vdi' Namesapce='vdi' billingUnit='1' errorCode='BillingInternalServerError'
2 answers
Sort by: Most helpful
-
-
VasaviLankipalle-MSFT 15,836 Reputation points
2024-06-28T23:47:43.0466667+00:00 Hello @Kelvin Oo , I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept "
Issue: To fix missing language data from Form Recognizer Layout 3.1 Model running on container
Solution: The issue was due to being connected to a VPN. Once disconnected, the language data was included, and the Docker container log errors disappeared.
If you have any other questions or are still running into more issues, please let me know.
Thank you again for your time and patience throughout this issue.
Regards,
VasaviPlease remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.