コミュニティ

404 error

I am getting a 404 error in the method that I have shown here

 protected static XDocument GetResponse(HttpWebRequest request)

        {

            using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())

            {

                using (Stream stream = response.GetResponseStream())

                {

                    return XDocument.Load(new XmlTextReader(stream));

                }

            }

        }

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

1件のコメント

  • Avatar
    Permanently deleted user

    Please check the following possible reasons of the issue:


    1. When you are requesting the result (i.e. the URL like https://ocrsdk.blob.core.windows.net/...), it should not have the Authorization header. If they are included in the request, Azure Storage returns this error message.
    2. When you download the output, you should use the link from the resultURL attribute of the corresponding service response, but note that the resultUrl value includes also the characters which are the result of the screening (for example, '"&") and they should be replaced. For example, the link can look as:

    https://ocrsdk.blob.core.windows.net/files/bef2b8ee-e77a-4454-b34c-62fd08fdc803.result?sv=2012-02-12&se=2017-06-07T20%3A00%3A00Z&sr=b&si=downloadResults&sig=9mTMdFTxVAGSuIcYuaz12L1c6n7rWTJA0rRRGNIp6xM%3D

    3. You should not decode the special characters as Plus sign, Slash, Equil sign, etc. These characters  are reserved characters and they must be percent-encoded.


    If the issue happens again and again, send to CloudOCRSDK@abbyy.com the logs from the Fiddler debugger.
     

    0

サインインしてコメントを残してください。