6

I upload 12 image to imgur every half hour.

But meet this issue.

Imgur ERROR message: {'exception': [], 'code': 429, 'type': 'ImgurException', 'message': 'You are uploading too fast. Please wait -0 more minutes.'}

I don't understand why is -0 minutes. I guess I reach my rate limit, so try to see my rate limit. But it look normal.

{
    "data": {
        "UserLimit": 2000,
        "UserRemaining": 2000,
        "UserReset": 1521378886,
        "ClientLimit": 12500,
        "ClientRemaining": 12500
    },
    "success": true,
    "status": 200
}

I try in different machine in same CLIENTID, the upload function work fine.

Did my IP be banned by imgur? When will they free my IP?

UPDATE:

I find out each IP imgur will treat different user. But my machine curl credits api. The response look fine.

curl --request GET \                                                                                                        
--url 'https://api.imgur.com/3/credits' \
--header 'Authorization: Client-ID xxx'

{"data":{"UserLimit":500,"UserRemaining":497,"UserReset":1521394842,"ClientLimit":12500,"ClientRemaining":12457},"success":true,"status":200}⏎

When I run upload image. It still will show

Imgur ERROR message: {'message': 'You are uploading too fast. Please wait -0 more minutes.', 'type': 'ImgurException', 'code': 429, 'exception': []}

However, other image function work fine such as get image.

Jim
  • 1,550
  • 3
  • 20
  • 34

2 Answers2

11

Apparently "there is an upload limit of 50 images per IP address per hour".

I don't know why they don't state this on the main api.imgur.com page, it's essential information for an API...

Tomerikoo
  • 18,379
  • 16
  • 47
  • 61
Nossidge
  • 921
  • 1
  • 12
  • 24
  • I'm uploading around 10 images a day. At the end of the month my servers IP run into "Rate-limit exceeded!". I guess that there are some limits they don't mention. Locally upload works with same credentials. – Freude May 25 '23 at 02:27
0

I had the same problem, but, it was not related to my IP.

I checked the file extension and it was a .heic file extension - which is not valid for Imgur.

After checking the source, I saved the image to a valid file extension - in my case, to .png.

By changing the file extension to a valid one, I was able to upload the image.

Source: Upload to Imgur "File type invalid (1)" error on Reddit.

Mauricio Arias Olave
  • 2,259
  • 4
  • 25
  • 70