microsoft / Form-Recognizer-Toolkit

Form Recognizer Toolkit (FRTK) provides a set of components and features to accelerate development based on Form Recognizer service.
MIT License
77 stars 55 forks source link

ServiceRequestError: No connection adapters were found #40

Open aantonellims opened 5 months ago

aantonellims commented 5 months ago

Hi,

I'm trying to run the /SampleCode/Python/sample_figure_understanding.ipynb file, but when it tries to call the Azure Document AI REST API, it throws the following error.

ServiceRequestError: No connection adapters were found for '"https://xxxxxxx-westus2.cognitiveservices.azure.com/" /documentModels/prebuilt-layout:analyze?api-version=2024-02-29-preview&outputContentFormat=markdown# Your Azure Document Intelligence resource\'s endpoint value./documentintelligence'

I've tried deploy the Document AI service in EastUS and West US2, same issue. I've also tried to execute sample API call as described in the REST API 2024-02-29-preview documentation, same issue.

image

any advise ?

thanks in advance,

regards, Alex

luzhang06 commented 5 months ago

@toothache can you please help look at this issue?

luzhang06 commented 5 months ago

Hi Alex,

After double checking your error message, it seems your endpoint is not correctly set. Can you please double check the endpoint (print it) to see if it's as expected? Please make sure to remove the comments in the .env when you set the endpoint.

Thanks, Lu

aantonellims commented 4 months ago

Many thanks Lu, comments were causing the issue, Reach to solve it 😊,

Appreciate your support,

Have a nice day,

Regards, Alex

From: Lu Zhang @.> Sent: Monday, May 6, 2024 3:23 AM To: microsoft/Form-Recognizer-Toolkit @.> Cc: Author @.***> Subject: Re: [microsoft/Form-Recognizer-Toolkit] ServiceRequestError: No connection adapters were found (Issue #40)

Hi Alex,

After double checking your error message, it seems your endpoint is not correctly set. Can you please double check the endpoint (print it) to see if it's as expected? Please make sure to remove the comments in the .env when you set the endpoint.

Thanks, Lu

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/Form-Recognizer-Toolkit/issues/40#issuecomment-2095048075 or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2K22RFV73G23TLS35DQRJLZA3LPVBFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLLDTOVRGUZLDORPXI6LQMWWES43TOVSUG33NNVSW45FGORXXA2LDOOJIFJDUPFYGLKTSMVYG643JORXXE6NFOZQWY5LFVE2TGMRXGIYTSNJVQKSHI6LQMWSWS43TOVS2K5TBNR2WLKRSGI3DCNJSG43TEMVHORZGSZ3HMVZKMY3SMVQXIZI. You are receiving this email because you authored the thread.

Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.