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

Harikiran
Member Posts: 39
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.
OK
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.
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.
OK
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
0
Answers
-
The only idea I have is you do look into windows event viewer, see what NAV error it is.
0 -
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 Specialist0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions