Consume API from BC use HTTP Client getting error, from Postman working fine

punkbutpunkbut Member Posts: 4
I have weird issue regarding BC consume XML API using HTTP Client.

if i send a request from BC to API, i will get an error like below

1651.pastedimage1638411684160v1.png

but if send a request using postman, working fine
6366.pastedimage1638411763376v2.png

then i have tried to restart the server then the problem solved.

here is the request headers, my code in BC, sample request and the response from API
7853.pastedimage1638412450769v3.png
body request sample
AL code send Request XML API
response API

Kindly need help how to fix the problem without restarting the server.

Answers

  • txerifftxeriff Member Posts: 500
    edited 2021-12-21
    this is not an easy to tell as it's the web server failing, as you mention randomly? (if you reboot it then it works you´ve said)

    I would suggest to copy both requests (postman and AL) into notepad++. check if there is any difference, blank spaces quotations (') etc.


    if it helps...

    33jdc8inoicf.png



Sign In or Register to comment.