ApiVault icon indicating copy to clipboard operation
ApiVault copied to clipboard

[ FEATURE ] set API max retry

Open gdjohn4s opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe

No, but for a possible future problem like DDOS.

Describe the solution you'd like

I'd like to set a max retry per user session.

Additional context

This is a possible way to implement it in settings.py:

'DEFAULT_THROTTLE_RATES': {
        'anon': '100/day',
        'user': '1000/day'
    }

gdjohn4s avatar Sep 14 '23 08:09 gdjohn4s

Hey @gdjohn4s! I would like to work on this issue.

Dev79844 avatar Sep 18 '23 13:09 Dev79844

hI @Dev79844 , sure! I think a good limit would be 100 requests per hour for not logged users, and 1000 for logged in users.

@gdjohn4s wdyt?

FlavioAdamo avatar Sep 18 '23 13:09 FlavioAdamo

sure

gdjohn4s avatar Sep 18 '23 13:09 gdjohn4s

@gdjohn4s I am getting this error while setting up the application locally. Can help me? Screenshot 2023-09-21 at 2 44 04 PM

Dev79844 avatar Sep 21 '23 09:09 Dev79844

@Dev79844 Try removing the versioning and use only distro-info in the requirements

gdjohn4s avatar Sep 21 '23 11:09 gdjohn4s