Note that there are some explanatory texts on larger screens.

plurals
  1. PORails duplicating requests
    primarykey
    data
    text
    <p>After correcting some other bugs on the application I found out that one page is being rendered twice on every request.</p> <p>Rails completes the request normally and after a few, simply starts another request.</p> <p>At first thought it was a Firebug problem or YSlow doing other requests, but after more tests the duplication remained and I discarded those reasons.</p> <p>I tried even debugging rails step by step in the request, it goes normally and after completing the first request, I get stopped in the same debugger start line again, this time for the second request.</p> <p>Printed some lines and things to see clearly on log and it clearly makes 2 requests.</p> <p>I also found a few wierd requests that I cannot explain also</p> <p>This bit of log shows the end of the first request and right after that one, there is a wierd index request without layout and then the same request starts again to be processed:</p> <pre><code> Processing ArtistImagesController#index (for 192.168.0.11 at 2010-07-08 15:10:56) [GET] Parameters: {"action"=&gt;"index", "locale"=&gt;"pt", "controller"=&gt;"artist_images", "artist_id"=&gt;"2-tom-welling"} #^ Start of first request #v end of first request Completed in 812ms (View: 429, DB: 41) | 200 OK [http://192.168.0.20/artistas/2-tom-welling/imagens] SQL (0.2ms) SET NAMES 'utf8' SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 # v wierd request Processing ApplicationController#index (for 192.168.0.11 at 2010-07-08 15:10:59) [GET] Rendering rescues/layout (not_found) -----------------------------------------------------&gt; html SQL (0.2ms) SET NAMES 'utf8' SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 # v start of second request Processing ArtistImagesController#index (for 192.168.0.11 at 2010-07-08 15:11:00) [GET] Parameters: {"action"=&gt;"index", "locale"=&gt;"pt", "controller"=&gt;"artist_images", "artist_id"=&gt;"2-tom-welling"} </code></pre> <p>Remembering that all those requests were generated by entering the page only once :/ Searched the code for possible loops or any kind of errors but haven't found any.</p> <p>Please help is very appretiated</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload