Not able to receive response during Decryption of invoice in Json format

HarikiranHarikiran Member Posts: 38
Dear All,

We're using NAV 2016 and we're handling an e-invoicing process and during the API request and response exactly during the decryption process of sales invoice I'm receiving the follow error:

A call to System.Net.HttpWebRequest.GetResponse failed with this message: The remote server returned an error: (500) Internal Server Error.

This issue started from last week of Jan till then everything was running fine.

My troubleshoot-
1. Checked in PostMan API - it is passing through all the request and responses steps without any issues and generated proper response as expected.
2. Verified the response of previous step of decryption and the request it is passing during decryption in NAV. This looks good.
3. Code is not altered recently.
4. TLS is updated with TLS1.2 in protocols.

So, I'm suspecting this is not more of a NAV code issue since it was working fine before but something different related to security and infrastructure but not sure what exactly..

Is there a way I can catch the exact error of response instead of internal server 500 error? or any other suggestions if you've faced such situation. Please let me know.
Harikiran BM | ERP Specialist


  • txerifftxeriff Member Posts: 480
    The only idea I have is you do look into windows event viewer, see what NAV error it is.
  • HarikiranHarikiran Member Posts: 38
    Thanks!! But even error was not captured in event viewer. Anyway, this issue is resolved now. In Json code "Status" was used instead of "status". So, upon modifying this body value of Json in NAV code everything started working.
    Harikiran BM | ERP Specialist
Sign In or Register to comment.