nebgor / sma-bluetooth

Automatically exported from code.google.com/p/sma-bluetooth
0 stars 0 forks source link

Repost fails with "Exceeded 1 request per second here" from PVOutput.org #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Trying to repost data for recent days that I have deleted from PVOutput.org

What is the expected output? What do you see instead?
Here is my console with the error messages:
smatool -from "2011-06-26 00:00:00" -to "2011-06-26 23:55:00" -repost
return=0 buf1=�|�23
buf=431,0,431,431,431,0.079,1,20110628,20110628,0.079,20110628 here
Power 431.000000
return=0 buf1=0,431,431,431,0.079,1,20110628,20110628,0.079,20110628
buf=Forbidden 403: Exceeded 1 request per second
 here
return=0 buf1=0,431,431,431,0.079,1,20110628,20110628,0.079,20110628
buf=Forbidden 403: Exceeded 1 request per second
 here

What version of the product are you using? On what operating system?
V0.13, Ubuntu 10.10

Please provide any additional information below.
I am trying to repost some data and PVOutput is complaining.  I have tried to 
repost without any dates to/from and still get the same problem.  It would 
appear that smatool is polling the server too fast, is there a timing issue?

Original issue reported on code.google.com by chris.le...@gmail.com on 29 Jun 2011 at 2:03

GoogleCodeExporter commented 8 years ago
interesting... we may need to put a wait 1 sec between repost....

Original comment by mcknigh...@gmail.com on 2 Jul 2011 at 8:19

GoogleCodeExporter commented 8 years ago
i have a simple correction for this - i'll include it in the next version.
you just need to add:
sleep(2);  //limited to 1 call per second or else we get blacklisted DOS

at line 2664.

Original comment by mcknigh...@gmail.com on 14 Jul 2011 at 7:18