I'm trying to hit the Get the Analyze results in Form-Recognizer API
C:\Users\Polygon>curl -X GET "https://simply-form-recognition.cognitiveservices.azure.com/formrecognizer/v2.0-preview/custom/models/7c16f45b-7640-4b9b-a6cb-346538c94c63/analyzeresults/b80e6400-e9de-400c-a565-016253e03abd" -H "Ocp-Apim-Subscription-Key: Subscription Key was here"
{"status":"failed","createdDateTime":"2020-03-11T10:41:41Z","lastUpdatedDateTime":"2020-03-11T10:41:44Z","analyzeResult":{"version":null,"readResults":null,"pageResults":null,"documentResults":null,"errors":[{"code":"2003","message":"Download failed. Please check your input URL."}]}}
I can't see anything wrong with the input url
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@RichardJDay Thanks for the question. We are investigating the issue and will update you shortly.
The error you received is not for the analyzeResults endpoint. It was an error about your previous (analyze) call -- the one you provided the SAS URL in. Please check the SAS URL you provided there and try again. It is posisble there was a typo or extra spaces or wrongly escaped characters in that URL.
To confirm i'm sending the SAS of my container to train the model. Then I'm sending the SAS pf a file in the container to get the analysis result?
Which step of that document are you at? And, did you skip (or do differently) anything there?
The SAS url needs to be the SAS of the document, not the container.
@RichardJDay We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
Most helpful comment
The SAS url needs to be the SAS of the document, not the container.