{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/32236","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/32236/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/32236/comments","events_url":"https://api.github.com/repos/rails/rails/issues/32236/events","html_url":"https://github.com/rails/rails/issues/32236","id":304738676,"number":32236,"title":"Activestorage: S3 presigned url get expired before access.","user":{"login":"vsingh-cts","id":35395302,"avatar_url":"https://avatars3.githubusercontent.com/u/35395302?v=4","gravatar_id":"","url":"https://api.github.com/users/vsingh-cts","html_url":"https://github.com/vsingh-cts","followers_url":"https://api.github.com/users/vsingh-cts/followers","following_url":"https://api.github.com/users/vsingh-cts/following{/other_user}","gists_url":"https://api.github.com/users/vsingh-cts/gists{/gist_id}","starred_url":"https://api.github.com/users/vsingh-cts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsingh-cts/subscriptions","organizations_url":"https://api.github.com/users/vsingh-cts/orgs","repos_url":"https://api.github.com/users/vsingh-cts/repos","events_url":"https://api.github.com/users/vsingh-cts/events{/privacy}","received_events_url":"https://api.github.com/users/vsingh-cts/received_events","type":"User","site_admin":false},"labels":[{"id":664533972,"url":"https://api.github.com/repos/rails/rails/labels/activestorage","name":"activestorage","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-13T12:09:16Z","updated_at":"2018-04-21T21:59:48Z","closed_at":null,"author_association":"NONE","body":"I am using active storage to store the files on AWS s3. and override the ActiveStorage::Service.url_expires_in = 24.hours default 300sec.\r\n\r\nSometimes while accessing the file is not loaded due to URL already expired. As I can check while accessing full Expired time is less than server time.\r\n\r\n![screenshot](https://user-images.githubusercontent.com/35395302/37340720-fff4f598-26e4-11e8-8988-7a9d481f594d.png)\r\n\r\n\r\n### Expected behavior\r\nGenerated URL must be accessible every time while accessing.\r\n\r\n### Actual behavior\r\nURL is already expired error message\r\n\r\n### System configuration\r\n**Rails version**: 5.2.0alpha\r\n\r\n**Ruby version**: 2.5.0\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/383335092","html_url":"https://github.com/rails/rails/issues/32236#issuecomment-383335092","issue_url":"https://api.github.com/repos/rails/rails/issues/32236","id":383335092,"user":{"login":"matthaliski","id":431169,"avatar_url":"https://avatars2.githubusercontent.com/u/431169?v=4","gravatar_id":"","url":"https://api.github.com/users/matthaliski","html_url":"https://github.com/matthaliski","followers_url":"https://api.github.com/users/matthaliski/followers","following_url":"https://api.github.com/users/matthaliski/following{/other_user}","gists_url":"https://api.github.com/users/matthaliski/gists{/gist_id}","starred_url":"https://api.github.com/users/matthaliski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthaliski/subscriptions","organizations_url":"https://api.github.com/users/matthaliski/orgs","repos_url":"https://api.github.com/users/matthaliski/repos","events_url":"https://api.github.com/users/matthaliski/events{/privacy}","received_events_url":"https://api.github.com/users/matthaliski/received_events","type":"User","site_admin":false},"created_at":"2018-04-21T21:59:48Z","updated_at":"2018-04-21T21:59:48Z","author_association":"NONE","body":"@wilg - I just ran into the same thing in Chrome (Version 65.0.3325.181). I saw your post after around 4 hours of smashing my head on the desk trying to figure out why my uploads all of a sudden stopped redirecting properly away from the blob.\r\n\r\nOld images were all displaying fine, but after 5 minutes ([mentioned here](http://guides.rubyonrails.org/active_storage_overview.html#linking-to-files)) it borked and cached hard. \r\n\r\nAnywhoo, thanks for posting. Hard refresh brought all the images back for me."}}
{"actor":{"display_login":"matthaliski"}}