Issue 18185

Download rate-limiting isn't notified to the user

Reporter: feedback bot
Type: Feedback
Summary: Download rate-limiting isn't notified to the user
Resolution: Duplicate
Status: Closed
Created: 2016-01-29 14:27:16.417
Updated: 2016-01-29 17:08:32.315
Resolved: 2016-01-29 17:08:32.293
Description: Users might be blocked from creating multiple downloads, especially if there's high load on the cluster.  It would be good if the portal explained what was going on, especially as the limit (3) is quite low.

(I've deleted the URL, since it starts a new download.)

Original report below:

I am getting this error: Oops

It seems you have discovered an unforseen error!
Please use the Feedback button on the right to file an issue.

Thank you for helping to improve the service.

When trying to download occurrence data for many of the orders of insects.

*Reporter*: Tara
*E-mail*: []]]>

Author: mblissett
Created: 2016-01-29 15:52:48.187
Updated: 2016-01-29 15:52:48.187
It's probably this exception:

ERROR [2016-01-29 14:21:52,663+0100] [http-bio-8080-exec-25189] com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor: HTTP 420:
com.sun.jersey.api.client.UniformInterfaceException: HTTP 420:
        at ~[gbif-common-ws-0.25.jar:0.25]
        at org.gbif.portal.action.occurrence.DownloadRequestAction.execute( ~[DownloadRequestAction.class:na]

HTTP 420 "enhance your calm", which we return when rate limiting a user.

Comment: ... and which we probably have not documented in the API docs 
Created: 2016-01-29 16:35:53.654
Updated: 2016-01-29 16:35:53.654

Author: mblissett
Comment: I've written to the user.  She had three 1M-ish downloads proceeding, and the high load on the cluster means they're still proceeding hours later.  It would be good if it was clear what was going on, so I'll turn this into a request to improve that.
Created: 2016-01-29 16:56:37.116
Updated: 2016-01-29 16:56:37.116

Author: mblissett
Created: 2016-01-29 17:08:32.313
Updated: 2016-01-29 17:08:32.313
Now it's a duplicate of POR-2813.