question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Cognitive Form Recognizer] "FATAL: Error: Not able to process media type */* at this moment"

See original GitHub issue

Describe the issue Encountered this error when trying to generate v2.0 of Form Recognizer from the azure-rest-api-spec repo. The generation works with version 2 of autorest.

autorest3

** REQUIRED ** ModelerFour version: 4.4.162 AutoRest-core version: 3.0.6146 CommandLine : autorest-beta --python --use=C:\Users\krpratic\autorestv3\autorest.python --tag=release_2_0 --output-folder=FormRecognizer/ OpenAPI/Swagger file: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/data-plane/FormRecognizer/preview/v2.0/FormRecognizer.json

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
daviwilcommented, Jun 24, 2020

Looks like @kristapratico fixed this issue in a PR to the Swagger: https://github.com/Azure/azure-rest-api-specs/pull/8814. I’ll see if I can add a warning in AutoRest Core to encourage the use of produces on operations that return a body payload.

0reactions
vinageshcommented, Nov 2, 2020

I just hit the same issue and the error message was not very clear. I compared my current swagger with another working one to find out that the error had to do with schema around “produces” and “consumes”. It would be great to have a clear error message.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot train model in form recognizer studio - Microsoft Q&A
I am running into the same issue. Using a field of type "Table" results in the following error in the model build process...
Read more >
Why do I receive a UnsupportedMediaType message when ...
However when I attempt to execute the curl command to analyze the request; I get an error message indicating: {"error":{"code":" ...
Read more >
Top Azure Form Recognizer Alternatives in 2022 - Slashdot
Find the top alternatives to Azure Form Recognizer currently available. Compare ratings, reviews, pricing, and features of Azure Form Recognizer ...
Read more >
COGNITIVE ASSESSMENT TOOLKIT - Alzheimer's Association
Developed by a group of clinical dementia experts, the recommended process outlined on Page 4 allows you to efficiently identify patients with probable ......
Read more >
A review and how-to guide for Microsoft Form Recognizer
I'm interested in particular in general-purpose form extraction tools that can work with any kind of document—not just invoices, receipts, or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found