Skip to main content
Post a question

Notifications

Community site session details

Community site session details

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

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

Like (5) ShareShare
ReportReport
Posted on 21 Mar 2025 15:08:32 by 42
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
  • Suggested answer
    YUN ZHU Profile Picture
    79,654 Super User 2025 Season 1 on 26 Mar 2025 at 00:26:04
    API-calls get a timeout if package is over 2,5KB (DEV-environment)
    Hi, This looks like a limitation in docker, have you tested it in the cloud version?
     
    Thanks
    ZHU
  • Chris Brill Profile Picture
    42 on 25 Mar 2025 at 15:18:49
    API-calls get a timeout if package is over 2,5KB (DEV-environment)
    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
    Khushbu Rajvi. Profile Picture
    11,944 Super User 2025 Season 1 on 23 Mar 2025 at 05:48:10
    API-calls get a timeout if package is over 2,5KB (DEV-environment)
  • Suggested answer
    Jainam M. Kothari Profile Picture
    3,007 on 22 Mar 2025 at 05:26:06
    API-calls get a timeout if package is over 2,5KB (DEV-environment)
    Hello,
     
    I Do Agree with the Experts, Mr. Suresh Kulla and Mr. Ramesh Kumar.
     
    You need to Increase the Memory Limit.
  • Suggested answer
    Suresh Kulla Profile Picture
    46,042 on 21 Mar 2025 at 21:17:53
    API-calls get a timeout if package is over 2,5KB (DEV-environment)
    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.
  • Ramesh Kumar Profile Picture
    1,956 on 21 Mar 2025 at 16:22:47
    API-calls get a timeout if package is over 2,5KB (DEV-environment)
    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.

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 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,325 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,223 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete