[OutSystems.AI Document Processor Reactive] 401: Access denied due to invalid subscription key or wrong API endpoint.
outsystems-ai-document-processor-reactive
Reactive icon
Forge component by Rui Parente
Application Type
Reactive

Hi,
I have followed steps in "Model Training Process", but I am getting below error.

401: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

CompiledWith=11.14.0.33133
RequestUrl: https://nageshsoradge.outsystemscloud.com/DocumentProcessor/moduleservices/log?clientTimeInMillis=1645712503097 (Method: POST)
AppDomain: /LM/W3SVC/27/ROOT/DocumentProcessor-296-132901860947151371
Locale: en-US
DateFormat: yyyy-MM-dd
PID: 12232 ('w3wp', Started='12/17/2021 5:08:07 PM', Priv=989Mb, Virt=2118226Mb)
TID: 446
Thread Name:
.NET: 4.0.30319.42000
Client Runtime Packages: client-runtime-core= 3.20.0;client-runtime-view-framework-react= 3.2.1;client-runtime-widgets= 3.4.0;
Client-Side Log

GetAnalyzeFormData
DocumentProcessor.AnalyzeForm: 401: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
at Object.s [as getException] (https://nageshsoradge.outsystemscloud.com/DocumentProcessor/scripts/OutSystems.js?eq9LGmzdgJbMq6dbNoVMvQ:2:10241)
at c.onSuccess (https://nageshsoradge.outsystemscloud.com/DocumentProcessor/scripts/OutSystems.js?eq9LGmzdgJbMq6dbNoVMvQ:3:6706)
    at XMLHttpRequest.<anonymous> (https://nageshsoradge.outsystemscloud.com/DocumentProcessor/scripts/OutSystems.js?eq9LGmzdgJbMq6dbNoVMvQ:3:2122)

DocumentProcessor_v8.oml

Hi Nagesh Soradge,

Have you checked the documentation of the component, specially the 8th point

https://www.outsystems.com/forge/Component_Documentation.aspx?ProjectId=8615&ProjectName=outsystems-ai-document-processor-reactive

It states that you need to get the subscription key and  OcpApimSubscriptionKey_FormRecognizerAPI  from Microsoft azure account which must be a paid service.

Thanks
Pankaj

Hi @Pankaj Jain,
I am using subscription key, but It is "Free Trial" subscription of Azure.

Thanks
Nagesh

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.