Hi
I have an error that appears when I try to send a sales invoice to API . It gives me the following error:
Error "The request was blocked by the runtime to prevent accidental use of production services."
AL Code:
------------------------------------------------------------------------------------------------------------------------------------------
HttpRequestMessage.SetRequestUri('https://backend.jofotara.gov.jo/core/invoices/');
HttpRequestMessage.Method := 'POST';
HttpRequestMessage.Content := RequestContent;
if not HttpClient.Send(HttpRequestMessage, HttpResponseMessage) then begin
SaveBarcodeValue(Rec."No.", 'Error');
Error('Failed to call the API.');
end;
------------------------------------------------------------------------------------------------------------------------------------------
Before : 200 OK
After : 400 Error
How do I solve the problem and what are the proposed solutions?