{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/698","labels_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/698/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/698/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/698/events","html_url":"https://github.com/aws/aws-sdk-js/issues/698","id":104054405,"number":698,"title":"InvalidExpiryTime when signing S3 requests","user":{"login":"kristjanmik","id":911107,"avatar_url":"https://avatars.githubusercontent.com/u/911107?v=3","gravatar_id":"","url":"https://api.github.com/users/kristjanmik","html_url":"https://github.com/kristjanmik","followers_url":"https://api.github.com/users/kristjanmik/followers","following_url":"https://api.github.com/users/kristjanmik/following{/other_user}","gists_url":"https://api.github.com/users/kristjanmik/gists{/gist_id}","starred_url":"https://api.github.com/users/kristjanmik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristjanmik/subscriptions","organizations_url":"https://api.github.com/users/kristjanmik/orgs","repos_url":"https://api.github.com/users/kristjanmik/repos","events_url":"https://api.github.com/users/kristjanmik/events{/privacy}","received_events_url":"https://api.github.com/users/kristjanmik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-31T13:32:46Z","updated_at":"2015-09-19T00:57:42Z","closed_at":"2015-09-19T00:57:42Z","body":"When running node in the environment NODE_ENV=testing the S3 pre-signing is giving different response than without the env variable set. When I'm running the tests it throws InvalidExpiryTime when the time is more than a week since [`````javascript request.service.getSignerClass() === AWS.Signers.V4`````](https://github.com/aws/aws-sdk-js/blob/master/lib/signers/presign.js#L18) is returning true in that case. \r\n\r\nRunning without test mode goes into the S3 signing and therefore allows expire > week like I expected.\r\n![screen shot 2015-08-31 at 13 26 18](https://cloud.githubusercontent.com/assets/911107/9579758/783f7274-4fe4-11e5-8f06-816bef25f4de.png)\r\n\r\nRunning in the test mode gives different(wrong?) results. \r\n![screen shot 2015-08-31 at 13 26 30](https://cloud.githubusercontent.com/assets/911107/9579759/7840739a-4fe4-11e5-9e9f-d658aa2a954e.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/comments/141605245","html_url":"https://github.com/aws/aws-sdk-js/issues/698#issuecomment-141605245","issue_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/698","id":141605245,"user":{"login":"AdityaManohar","id":966440,"avatar_url":"https://avatars.githubusercontent.com/u/966440?v=3","gravatar_id":"","url":"https://api.github.com/users/AdityaManohar","html_url":"https://github.com/AdityaManohar","followers_url":"https://api.github.com/users/AdityaManohar/followers","following_url":"https://api.github.com/users/AdityaManohar/following{/other_user}","gists_url":"https://api.github.com/users/AdityaManohar/gists{/gist_id}","starred_url":"https://api.github.com/users/AdityaManohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdityaManohar/subscriptions","organizations_url":"https://api.github.com/users/AdityaManohar/orgs","repos_url":"https://api.github.com/users/AdityaManohar/repos","events_url":"https://api.github.com/users/AdityaManohar/events{/privacy}","received_events_url":"https://api.github.com/users/AdityaManohar/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T00:57:42Z","updated_at":"2015-09-19T00:57:42Z","body":"@kristjanmik I'm marking this as closed because there hasn't been any recent activity on this thread. Feel free to reopen this issue or open another issue if you have any information that can help reproduce the issue. "}}