Issue 18185

Download rate-limiting isn't notified to the user

18185
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*: [mailto:pelletier.28@osu.edu]]]>
    


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

{code}
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 org.gbif.ws.client.interceptor.HttpErrorResponseInterceptor.invoke(HttpErrorResponseInterceptor.java:59) ~[gbif-common-ws-0.25.jar:0.25]
        at org.gbif.portal.action.occurrence.DownloadRequestAction.execute(DownloadRequestAction.java:54) ~[DownloadRequestAction.class:na]
{code}

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


Author: mdoering@gbif.org
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.