Git Product home page Git Product logo

Comments (15)

github-actions avatar github-actions commented on June 3, 2024

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ctstone @vkurpad.

from azure-sdk-for-python.

xiangyan99 avatar xiangyan99 commented on June 3, 2024

Thanks for your feedback.

Could you share the library versions you are using?

Form Recogniser library
azure-core
aiohttp

Thanks.

from azure-sdk-for-python.

github-actions avatar github-actions commented on June 3, 2024

Hi @Aizen-sama214. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

from azure-sdk-for-python.

Aizen-sama214 avatar Aizen-sama214 commented on June 3, 2024

hi @xiangyan99 , I am using document analysis client of form recogniser of azure.ai.formrecognizer.aio and v 3.2

from azure-sdk-for-python.

xiangyan99 avatar xiangyan99 commented on June 3, 2024

Thank you. Could you also provide the version information of
azure-core
aiohttp?

from azure-sdk-for-python.

github-actions avatar github-actions commented on June 3, 2024

Hi @Aizen-sama214. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

from azure-sdk-for-python.

Aizen-sama214 avatar Aizen-sama214 commented on June 3, 2024

azure-core==1.30.1
aiohttp==3.9.3
azure-ai-formrecognizer==3.3.0

from azure-sdk-for-python.

xiangyan99 avatar xiangyan99 commented on June 3, 2024

Thank you.

I tried it in my local devbox but could not repro it.

Could you share more context about the repro?

from azure-sdk-for-python.

github-actions avatar github-actions commented on June 3, 2024

Hi @Aizen-sama214. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

from azure-sdk-for-python.

Aizen-sama214 avatar Aizen-sama214 commented on June 3, 2024

This is my code :
path_to_sample_documents = "./downloads/tabs-Full-stack Engineer Assignment.pdf"

from azure.core.credentials import AzureKeyCredential
from azure.ai.formrecognizer.aio import DocumentAnalysisClient

endpoint = os.environ["AZURE_FORM_RECOGNIZER_ENDPOINT"]
key = os.environ["AZURE_FORM_RECOGNIZER_KEY"]


document_analysis_client = DocumentAnalysisClient(
    endpoint=endpoint, credential=AzureKeyCredential(key)
)
print(document_analysis_client)
async with document_analysis_client:
    with open(path_to_sample_documents, "rb") as f:
        poller = await document_analysis_client.begin_analyze_document(
            "prebuilt-layout", document=f
        )
    result = await poller.result()

and my error :
azure.core.exceptions.ServiceRequestError: Cannot connect to host docextractor214.cognitiveservices.azure.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)')]

from azure-sdk-for-python.

xiangyan99 avatar xiangyan99 commented on June 3, 2024

Thank you.

I tried your code but I could not repo the failure.

Did you have a chance to try using some other environments?

from azure-sdk-for-python.

github-actions avatar github-actions commented on June 3, 2024

Hi @Aizen-sama214. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

from azure-sdk-for-python.

github-actions avatar github-actions commented on June 3, 2024

Hi @Aizen-sama214, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

from azure-sdk-for-python.

chnlyi avatar chnlyi commented on June 3, 2024

I have experienced the same problem in my local laptop. But the problem is gone in azure compute instance.
aiohttp==3.9.3
azure-core==1.29.5
My Code:

import os 
import asyncio
from azure.ai.formrecognizer.aio import DocumentAnalysisClient
from azure.core.credentials import AzureKeyCredential
from dotenv import load_dotenv
load_dotenv()

formrecognizerservice = os.getenv('FORMS_RECOGNIZER_SERVICE')
endpoint =f"https://{formrecognizerservice}.cognitiveservices.azure.com/"
credential = AzureKeyCredential(os.getenv('FORMS_RECOGNIZER_KEY'))

client = DocumentAnalysisClient(endpoint, credential, verify=False)

async def rum():
    res = await client.begin_analyze_document_from_url("prebuilt-layout", "https://www.irs.gov/pub/irs-pdf/fw4.pdf")
    print(res.result())

loop = asyncio.get_event_loop()
loop.run_until_complete(rum())
loop.close()

My error:
azure.core.exceptions.ServiceRequestError: Cannot connect to host {formrecognizerservice}.cognitiveservices.azure.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1006)')]

from azure-sdk-for-python.

github-actions avatar github-actions commented on June 3, 2024

Hi @Aizen-sama214, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

from azure-sdk-for-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.