Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Codeunit 1297 - SendRequestAndReadResponse

(0) ShareShare
ReportReport
Posted on by 177

Dear all!

The case : I am having to do a post request using http method.

What i need to know is , when exactly, does the post request in the sendrequestandreadresponse procedure, occurs?

Because there are times that i am getting a timeout error in the getwebresponse , which is called by getresponse procedure ( codeunit 1299) , and i would like to clarify that this timeout occurs after my post request.Which means that my post request has successfully occured and the problem is with the response that i am getting from the other side.

Thank you in advance!

  • AntonisK Profile Picture
    177 on at
    RE: Codeunit 1297 - SendRequestAndReadResponse

    I think that i managed to understand whats going on.

    I am getting a timeout error in the httpwebrequest class, getresponse method.

    Searching through the code i found out that i am basically getting the error in this line.

    https://prnt.sc/GGI2KkyiVsZp

    Since i do not know how .net framework works , it took me some time to realize between a webrequest object and webresponse object.

    Now, when it comes to the timeout error itself , have you ever experience that?

    I believe its because the webresponse its not disposed correctly..

  • Suggested answer
    DAnny3211 Profile Picture
    9,276 Moderator on at
    RE: Codeunit 1297 - SendRequestAndReadResponse

    I don't understand what you mean by Lines?

  • AntonisK Profile Picture
    177 on at
    RE: Codeunit 1297 - SendRequestAndReadResponse

    Danielle , first of all thanks for your responses.

    I think that you have misunderstood the case.

    The only thing that i need , is to clarify , when does the actual send request occurs in the code.

    Inside the SendRequestAndReadResponse Procedure , the code only checks for the response and i cant find anywhere the lines which are dedicated in the send request

  • DAnny3211 Profile Picture
    9,276 Moderator on at
    RE: Codeunit 1297 - SendRequestAndReadResponse

    Hi

    do you have any gateways between nav and the other system?

    this may not be your problem

    DAniele

  • AntonisK Profile Picture
    177 on at
    RE: Codeunit 1297 - SendRequestAndReadResponse

    I would like to keep using this codeunit so do you have any clue about the procedure that i mentionted?

  • DAnny3211 Profile Picture
    9,276 Moderator on at
    RE: Codeunit 1297 - SendRequestAndReadResponse

    hi

    use api rest in nav

    danieleincalza.blogspot.com/.../dynamics-nav-2018-my-interface-with.html

    DANiele

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
YUN ZHU Profile Picture

YUN ZHU 374 Super User 2025 Season 1

#2
Sagar Dangar, MCP Profile Picture

Sagar Dangar, MCP 249

#3
Mansi Soni Profile Picture

Mansi Soni 247

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans