Skip to Content
Apr 23, 2020 at 07:47 AM

Odata Service is showing error A security error is occurred


Hi Team,

I am facing issue when trying to hit the GET request for oData service for production user service through Ajax call in iRPA. I used the template provided on Cloud factory store- production order completion.

below is sample ajax call which is getting generated through ajax call in template code and error.

{"ts":"13:09:07.173","ctx":"Action","action":"","params[{"method":"GET","url":"http://hostname:port/sap/opu/odata/sap/API_PRODUCTION_ORDERS/A_ProductionOrder('XXXXXX')","contentType":"application/json","ignoreClientCertificate":true,"headers":{"Authorization":"Basic UlJBWVZFUk1BOlNvcHJhQDAx","x-csrf-token":"fetch","If-Match":"fetch"},"timeout":10000}],"parentId":94}

ts: '13:09:07.173'

ctx: 'Action' action: '' params: [0]: method: 'GET' url: 'http://hostname:port/sap/opu/odata/sap/API_PRODUCTION_ORDERS/A_ProductionOrder('XXXXX')' contentType: 'application/json' ignoreClientCertificate: true headers: Authorization: 'Basic UlJBWVZFUk1BOlNvcHJhQDAx' x-csrf-token: 'fetch' If-Match: 'fetch' timeout: 10000 parentId: 94

Error: status: 12175 statusText: 'A security error occurred' responseText: 'A security error occurred'

Note: There is no network firewall also behind that.