Skip to main content
edited tags
Link
sideshowbarker
  • 89.4k
  • 30
  • 220
  • 217
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

I have a java program that searches a site for updates. It checks and than sleeps for a period of time set by user.

During some testing I set the sleep time to 0 secs, forgot about it and it over-requested (over-spammed?, don't know the terminology) the site. I wouldn't have noticed this if I didn't go to this site and manually checked for something.

The error I get is 429 : too many requests. I've searched the web and found out that the site should send me when is it ok to try again (retry-after header). The problem is that I either don't get this information or can't find it.

I've viewed the source via chrome and didn't find the information. Then I used getErrorStrem and didn't find the information.

In another questionquestion on stackoverflow it is said that

if everything is set up properly, you will also have received a "Retry-after" header along with the 429 response

My knowledge of web technologies is rather limited. The program I wrote looked for patterns that I noticed viewing the source of page. My java knowledge is better, but not great.

So how do I get retry-after info? About 20 hours passed and when I tried again I got the same error.

I have a java program that searches a site for updates. It checks and than sleeps for a period of time set by user.

During some testing I set the sleep time to 0 secs, forgot about it and it over-requested (over-spammed?, don't know the terminology) the site. I wouldn't have noticed this if I didn't go to this site and manually checked for something.

The error I get is 429 : too many requests. I've searched the web and found out that the site should send me when is it ok to try again (retry-after header). The problem is that I either don't get this information or can't find it.

I've viewed the source via chrome and didn't find the information. Then I used getErrorStrem and didn't find the information.

In another question on stackoverflow it is said that

if everything is set up properly, you will also have received a "Retry-after" header along with the 429 response

My knowledge of web technologies is rather limited. The program I wrote looked for patterns that I noticed viewing the source of page. My java knowledge is better, but not great.

So how do I get retry-after info? About 20 hours passed and when I tried again I got the same error.

I have a java program that searches a site for updates. It checks and than sleeps for a period of time set by user.

During some testing I set the sleep time to 0 secs, forgot about it and it over-requested (over-spammed?, don't know the terminology) the site. I wouldn't have noticed this if I didn't go to this site and manually checked for something.

The error I get is 429 : too many requests. I've searched the web and found out that the site should send me when is it ok to try again (retry-after header). The problem is that I either don't get this information or can't find it.

I've viewed the source via chrome and didn't find the information. Then I used getErrorStrem and didn't find the information.

In another question on stackoverflow it is said that

if everything is set up properly, you will also have received a "Retry-after" header along with the 429 response

My knowledge of web technologies is rather limited. The program I wrote looked for patterns that I noticed viewing the source of page. My java knowledge is better, but not great.

So how do I get retry-after info? About 20 hours passed and when I tried again I got the same error.

Source Link
Invader Zim
  • 838
  • 4
  • 18
  • 41

Http error 429 java handling?

I have a java program that searches a site for updates. It checks and than sleeps for a period of time set by user.

During some testing I set the sleep time to 0 secs, forgot about it and it over-requested (over-spammed?, don't know the terminology) the site. I wouldn't have noticed this if I didn't go to this site and manually checked for something.

The error I get is 429 : too many requests. I've searched the web and found out that the site should send me when is it ok to try again (retry-after header). The problem is that I either don't get this information or can't find it.

I've viewed the source via chrome and didn't find the information. Then I used getErrorStrem and didn't find the information.

In another question on stackoverflow it is said that

if everything is set up properly, you will also have received a "Retry-after" header along with the 429 response

My knowledge of web technologies is rather limited. The program I wrote looked for patterns that I noticed viewing the source of page. My java knowledge is better, but not great.

So how do I get retry-after info? About 20 hours passed and when I tried again I got the same error.