I am trying to use the "clarifai" package in R to use clarifai to tag images. However, I keep getting the response "Request was throttled" when using the commands "tag_images", "tag_image_urls" or "feedback".
Did someone stumble upon the same problem? How could I solve this?
Hey @DevastatingCritical! This is a v1 throttle that we apply by default but I've gone ahead and lifted it for you. Hopefully we'll have a v2 R client some time in the future as well!
Thanks Jared, the issue is now resolved!
I am also getting this in Python
Hi @sect - think it might be a rate limit that you're hitting in the v2 API (which is 10 calls per second by default). Let me know if it's something else though.
Hi Jared, im only trying to scan 1 image at a time? What do you mean by rate limit?
Our v2 API has a rate limit of 10 calls per second. If you're only doing one at a time and getting throttled then you must be using the v1 API.
v2 docs: https://developer.clarifai.com/guide
So i guess i install the new API via pip on my end? not something that you do on your end?
Sorry for the rookiness, I just started working with python, havn't even covered it at uni yet!
No worries! You can just do a pip install clarifai==2.0.28 to get the latest version of the client
The quick start code should give you the syntax that you'll need
so i pip installed clarifai==2.0.28 - seemed to have worked yet when i ran the script again i got the same throttle... not sure what i am doing wrong. What is it saying from you end?
i appreciate you help
Can you email over the script that you're using (or paste it here)? Think we'll need to take a closer look
Getting this error "Request was throttled."Error in rep(file_paths, len) : invalid 'times' argument
even when i run a single image using tag_images(filep)
Can you please help.Need it for few photographs and videos
Hi @shantanu14 - since you're using R here I went ahead and unlocked the v1 API for you. Hopefully we'll have a v2 client for it soon enough!
I have the same issues now with the Clarifai API in R environment. After performing a tag_image_urls request, the system responded "request was throtlled". Furthermore, I am curious if i could batch or perform multiple url request by the R API.
I appreaciate your help
Hi @museordandy - you should be good to go now. I don't think our unofficial client has batching in it but there's probably a way. Hopefully we'll have a v2 R client out sooner than later!
Many thanks @jared. The issue was resolved.
I am getting the same "Request was throttled" with Clarifai in R.Unfortunately, my professor want us to use R. I am therefore not able to switch.
Could my V1 throttle be lifted as well?
Hey @SeverinJB - should be good now!
Thanks a lot, @jared. Have a nice weekend!
Greetings from Bavaria.