33357

net::ERR_EMPTY_RESPONSE when post with ajax

Question:

Hello im trying to upload a xlsx file one by one so i can show a status bar, the problem is, i did it with a for loop and while loop sending a request via ajax, but when is on the 40th element it stops and the console shows POST (site.php) net::ERR_EMPTY_RESPONSE, i tried to do it in the localhost and it works perfect, but when a i try to do it on my external server(godaddy) it shows the error. here is the code.

for(j=1;j<=tama;j++){ $.ajax({ type: "POST", url: "ejphp.php", dataType: "json", data: {vals: regs, j:j}, success: function(datos){ console.log(j) prog=datos['progreso_r']; var id_vac=datos['id_vac'] var tipo=datos['tipo'] var tipo2=datos['tipo2'] var tot_ing=datos['tot_ing'] prog_p=Math.round(prog*100/tama); $("#progressbar").val(prog_p); $("#progreso").text(prog_p+'%'); $("#datos_vac").text('Id Vacuno: '+id_vac); if(prog_p==100){ $("#aceptar").show("slow"); } if(tipo=='error') registro(tipo2, id_vac) subir(parseInt(prog)+1); return false; } }) }

Answer1:

Maybe your server can't pass more than 40 requests, try to increase php memory limit and execution time. And try to browse in godaddy's admin panel.

Recommend

  • Displaying unique transactions in Ruby on Rails
  • In a 5 day weather array how does one isolate a single time slot per day using swift?
  • simple html dom parser to return all td`s values?
  • To output a string without whitespce
  • cURL - works in browser, not in cURL
  • How to check payment method on a WooCommerce order by id?
  • How do I make powershell search a Word document for wildcards and return the word it found?
  • Android PICASSO - Image Not Loading into ImageView + Stops all Statements following from occuring
  • $_SERVER['DOCUMENT_ROOT']
  • how to upload and download blackberry application from webserver?
  • Signing a java applet with an spc file from GoDaddy
  • How to make UI in blackberry including images in such a way that it works in different screen resolu
  • Escape input data in SQL queries when using ODBC + Access
  • SetHidden not working [duplicate]
  • RETROFIT how to parse this response
  • How to insert alt tags dynamically in jsp
  • How to Grab SSL Certificate in OpenSSL
  • Displaying iOS iAds only to supported countries
  • Why does Redshift need to do a full table scan to find the max value of the DIST/SORT key?
  • Installing SSL cert on Amazon EC2 ELB
  • Netezza Incremental load from Sql server using SSIS
  • LNK1104: cannot open file 'kernel32.lib'
  • Python adding lots of things to PATH. How do I stop?
  • Possible to “watch” both HAML and SASS at the same time?
  • Tomcat memory Leak
  • Cannot resolve symbol 'MyApi'
  • How to delay loading a property with linq to sql external mapping?
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • Validaiting emails with Net.Mail MailAddress
  • Large data - storage and query
  • Timeout for blocking function call, i.e., how to stop waiting for user input after X seconds?
  • Do I've to free mysql result after storing it?
  • WOWZA + RTMP + HTML5 Playback?
  • Hits per day in Google Big Query
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Linking SubReports Without LinkChild/LinkMaster
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass