web
You’re offline. This is a read only version of the page.
close
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...
Answered

API-calls get a timeout if package is over 2,5KB (DEV-environment)

(6) ShareShare
ReportReport
Posted on by 112
Hello!

I'm calling API's in my Dev-environment. This works fine as long as the JSON-Package coming back is up to 2,5KB. I get an answer in a few microseconds. But as soon as the JSON is 2,6KB or bigger, the request runs into a timeout. BC creates the record correctly, it's just not able to send it.

I'm using BC24.1 in a Docker-Container created with the BCContainerHelper in PowerShell.

I've talked with our IT-security team, with DEVs from our partner, but they have no idea, what could cause this.

I know that this is difficult to answer, but maybe someone has run into this problem as well. I'm thankful for any suggestion how to solve this.

Thanks!
Christopher
I have the same question (0)
  • Ramesh Kumar Profile Picture
    7,527 Super User 2025 Season 2 on at
    Hi Chris,
     
    I not sure if you already check but I would say can you please check Increase memory and CPU limits in the Docker container configuration and API Timeout Configuration.
     
    Thanks!
    Ramesh
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at
    Are you having this issue with the container or on Saas, if the container I would recommend you increase the memory limit to 16G or so when you create the container and try it again.
  • Suggested answer
    Jainam M. Kothari Profile Picture
    15,631 Super User 2025 Season 2 on at
    Hello,
     
    I Do Agree with the Experts, Mr. Suresh Kulla and Mr. Ramesh Kumar.
     
    You need to Increase the Memory Limit.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,275 Super User 2025 Season 2 on at
  • Chris Brill Profile Picture
    112 on at
    Thanks to all of you, 

    but that didn't change anything. The CPU is chilling anyway and there are multiple GB of free memory.
    On the other side:
    My problem isn't a huge amount of data. 2,6KB, that's equivalent to 105 records in the G/L-Entry-API. 104 records came back in 32ms.

    Are there any other suggestions? I'm still looking for a solution.

    Best regards,
    Chris
  • Suggested answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at
    Hi, This looks like a limitation in docker, have you tested it in the cloud version?
     
    Thanks
    ZHU
  • Chris Brill Profile Picture
    112 on at
    Hello Yun Zhu, 
    we don't have a cloud version, but we don't experience those problems on our test-server (without Docker). 
    Of course there also other differences between the two systems despite Docker. 

    But as I only make single requests with one user I'm very far away from the request limits. 

    I also tried the very basic CRONUS-tenant, created with the BC-ContainerHelper and I have the same problem. So Docker seems to be a essential part, but I doubt it's a setting. Maybe something went wrong during a basic installation or an update. I'm gonna give it a try and reset windows. Maybe that'll make a difference. 

    Thanks so far and I'm still open to suggestions. Just in case. ;-) 
     
  • Gerardo Rentería García Profile Picture
    25,157 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    Solved: Business Central in a Docker container not responding: "bcserver took too long to respond"

    Best Regards
    Gerardo

  • Chris Brill Profile Picture
    112 on at
    Hello Gerardo, 

    thanks for the suggestion. I checked my container and the parameter "isolation" is already set to "hyperv". That parameter is set in the PowerShell-Skript I use. 
  • Verified answer
    Chris Brill Profile Picture
    112 on at
    Hello everybody, 

    I did find a solution. It is actually a quite specific combination that causes this behaviour:

    BC24 + isolation mode hyperv + no SSL

    Due to this blog post (Docker container BC v24 API timeout with large result set - christianbraeunlich.com) the solution is to either switch on SSL or using isolation mode process.

    I hope this at least helps someone else to find the answer faster.

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans