Api getting 400 reponse

When we generate invoice through api getting 400 response… but after Multiple try we can succeeded. Please help us resolve the issue. Below is the full log trace.

[2020-07-27 08:02:09] local.INFO: Erp Post Execution Full Response
[2020-07-27 08:02:09] local.INFO: stdClass Object
(
[content] =>

Server Error
    <link rel="shortcut icon"
            href="/assets/erpnext/images/favicon.png"
            type="image/x-icon">
    <link rel="icon"
            href="/assets/erpnext/images/favicon.png"
            type="image/x-icon">



            <link type="text/css" rel="stylesheet" href="/assets/frappe/css/bootstrap.css">
            <link type="text/css" rel="stylesheet" href="/assets/css/frappe-web.css">
            <link type="text/css" rel="stylesheet" href="/assets/erpnext/css/website.css">
            <link type="text/css" rel="stylesheet" href="/website_theme.css"><script>
            window.frappe = {};
            frappe.ready_events = [];
            frappe.ready = function(fn) {
                    frappe.ready_events.push(fn);
            }
            window.dev_server = 0;
</script>
Geosol
  • <a href="/contact"
                >
        Contact</a></li><li data-label='Blog' >
        <a href="/blog"
    
                >
        Blog</a></li><li data-label='Products' >
        <a href="/products"
    
                >
        Products</a></li>
    
  • My Account
  • Logout
  • Login
                            <ul class="nav navbar-nav navbar-left"><li data-label='Contact' >
    <a href="/contact"

            >
    Contact</a></li><li data-label='Blog' >
    <a href="/blog"

            >
    Blog</a></li><li data-label='Products' >
    <a href="/products"

            >
    Products</a></li>
    <li class="shopping-cart hidden">
    <!-- post login tools -->
  • Login
  •                     </div>
                </div>
        </nav></header>
    
            <div class="hero-and-content">
                <div data-html-block="hero"></div>
                <div class="container">
    
                <div class="page-content without-sidebar">
                        <div class="page-content-wrapper">
                                <div class="row page-head">
                                        <div class='col-sm-12'>
    
                                        </div>
                                        <div class="col-sm-8 col-xs-6">
    
                                        </div>
                                        <div class="col-sm-4 col-xs-6">
    
    
    
                                        </div>
                                </div>
                                <div class="page_content">
    
    .hero-and-content { background-color: #f5f7fa; } .page-card { max-width: 640px; }
    Server Error

        <div><a href='/' class='btn btn-primary btn-sm'>
                Home</a></div>
    

    Status: 400

                                </div>
    
                                <div class="col-sm-6 text-right">
    
    Get Updates
                </div>
            </div></div>
                <div><footer class="web-footer">
        <section class="footer-links">
                <div class="container">
                        <div class="row">
                                <div class="col-sm-6 text-left">
    
                                </div>
    
                                <div class="col-sm-6 text-right">
    
    Get Updates
                </div>
            </div></div>
                <div><footer class="web-footer">
        <section class="footer-links">
                <div class="container">
                        <div class="row">
                                <div class="col-sm-6 text-left">
    
                                </div>
    
                                <div class="col-sm-6 text-right">
    
    Get Updates
                )
    
            [X-Frame-Options] => SAMEORIGIN
            [Content-Length] => 7036
            [Connection] => close
            [Content-Type] => text/html; charset=utf-8
        )
    

    )