New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception thrown when tiring to extend hit time #1817
Comments
Can you provide sample code that reproduces the problem? |
Sure, here is the relevant code snippet:
When |
I was able to reproduce it when the new expiration date is before the current expiration date - in this case, I got the message Is it possible that's the case? I didn't find anything in the Mechanical Turk API documentation mentioning this rule, it only says that if the expiration date is in the past the HIT will be immediately expired. So I'll go ahead and open an internal ticket asking the Mechanical Turk team to address the issue. |
Thanks for your findings, I think this case can happen, I will try to check the expiration time before extending it, hope this will resolve this issue. I will update if this issue still occurring after the fix. |
Good! So I'll go ahead and close this, but feel free to reopen if the problem persists. |
I am extending hit expiration with UpdateExpirationForHIT while most of the time the requests are successful there are some requests that are failing.
I tried to log out the time of expireAt value and it is correct.
Extending expiration for HIT 3TRB893CSJTWCHXTCX7HTJTD8VJG7X,
Now: Thu Nov 22 10:19:33 UTC 2018,
Expire At: Thu Nov 22 11:19:33 UTC 2018
There is one hour between the time now and the time of expiry, but the service throws this exception:
com.amazonaws.services.mturk.model.AmazonMTurkException: The value 11 is invalid for ExpirationIncrementInSeconds. Valid values range from 60 to 31536000. (1542881973916) (Service: AmazonMTurk; Status Code: 400; Error Code: ParameterValidationError; Request ID: af1802ad-3ebf-4e59-9284-859f875db476)
The text was updated successfully, but these errors were encountered: