# Request large error

**URL:** <https://www.ruby-forum.com/t/request-large-error/181650>\
**Category:** Rails\
**Created:** [January 15, 2010, 7:18am UTC](https://www.ruby-forum.com/t/request-large-error/181650 "2010-01-15T07:18:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [January 15, 2010, 7:18am UTC](https://www.ruby-forum.com/t/request-large-error/181650/1 "2010-01-15T07:18:45Z")

</div>

Hello friends,

\<%= link\_to “Generate Report”, {:action =\> ‘generate\_report’ ,:users =\>  
all\_users.map{|u| u.id}.join(",")}%\>

The above action generates report for the users.  
As per the filter results the all\_users array length would be vary.  
if the all\_users array length is 3500.  
when i click the above link to genearte report for the 3500 users it  
gives me error like below

# 

ERROR  
The requested URL could not be retrieved

While trying to retrieve the URL: [no URL]

The following error was encountered:

```
* The request or reply is too large.

  If you are making a POST or PUT request, then your request body

```

(the thing you are trying to upload) is too large. If you are making a  
GET request, then the reply body (what you are trying to download) is  
too large. These limits have been established by the Internet Service  
Provider who operates this cache. Please contact them directly if you  
feel this is an error.

Your cache administrator is root.

# 

Thanks for any helps.

---

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [January 15, 2010, 10:20am UTC](https://www.ruby-forum.com/t/request-large-error/181650/2 "2010-01-15T10:20:38Z")

</div>

Looks that you are behind a proxy (maybe transparent one). It is  
working on localhost?

---

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [January 15, 2010, 9:54am UTC](https://www.ruby-forum.com/t/request-large-error/181650/3 "2010-01-15T09:54:40Z")

</div>

Newb N. wrote:

> Hello friends,
> 
> \<%= link\_to “Generate Report”, {:action =\> ‘generate\_report’ ,:users =\>  
> all\_users.map{|u| u.id}.join(",")}%\>
> 
> The above action generates report for the users.  
> As per the filter results the all\_users array length would be vary.  
> if the all\_users array length is 3500.  
> when i click the above link to genearte report for the 3500 users it  
> gives me error like below
> 
> # 
> 
> ERROR  
> The requested URL could not be retrieved
> 
> While trying to retrieve the URL: [no URL]
> 
> The following error was encountered:
> 
> ```
> * The request or reply is too large.
> 
> If you are making a POST or PUT request, then your request body
> 
> ```
> 
> (the thing you are trying to upload) is too large. If you are making a  
> GET request, then the reply body (what you are trying to download) is  
> too large. These limits have been established by the Internet Service  
> Provider who operates this cache. Please contact them directly if you  
> feel this is an error.
> 
> Your cache administrator is root.
> 
> # 
> 
> Thanks for any helps.

Hi all,

I have set No Proxy in my Fire Fox Browser Settings.  
After changing the browser settings,when click on the link to generate  
report  
it has not shown the errors it just worked fine.  
But in IE browser it gives me like “IE cannot display this web page”  
i don’t know why its happening in IE ?  
Any helps or suggestions on this…

---

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [January 15, 2010, 10:47am UTC](https://www.ruby-forum.com/t/request-large-error/181650/4 "2010-01-15T10:47:52Z")

</div>

Eduard M. wrote:

> Looks that you are behind a proxy (maybe transparent one). It is  
> working on localhost?

In Fire Fox behind Proxy it is not working but when it has got no Proxy  
it works.  
But in IE it works behind Proxy and without Proxy settings.but in IE the  
link to helper passes id 1 to 351 only  
but actually it has to pass 3375 ids.Firefox passes it properly.  
what could be the problem.  
any ideas and suggestions Please.

---

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [January 15, 2010, 11:09am UTC](https://www.ruby-forum.com/t/request-large-error/181650/5 "2010-01-15T11:09:48Z")

</div>

On Jan 15, 9:47Â am, Newb N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> any ideas and suggestions Please.

Sounds like [Maximum URL length is 2,083 characters in Internet Explorer - Microsoft Support](http://support.microsoft.com/kb/208427)

Fred

---

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [January 15, 2010, 11:10am UTC](https://www.ruby-forum.com/t/request-large-error/181650/6 "2010-01-15T11:10:23Z")

</div>

2010/1/15 Newb N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Hello friends,
> 
> \<%= link\_to “Generate Report”, {:action =\> ‘generate\_report’ ,:users =\>  
> all\_users.map{|u| u.id}.join(“,”)}%\>

Instead of sending all the ids, which as you note below ends up with a  
request that is too large, send other information that you can use in  
the controller to determine the list of users, for example in the  
given case you could say  
:users =\> ‘all’

Colin
