{"action":"created","issue":{"url":"https://api.github.com/repos/nasa/edsc-search-test-config-3/issues/42","repository_url":"https://api.github.com/repos/nasa/edsc-search-test-config-3","labels_url":"https://api.github.com/repos/nasa/edsc-search-test-config-3/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/nasa/edsc-search-test-config-3/issues/42/comments","events_url":"https://api.github.com/repos/nasa/edsc-search-test-config-3/issues/42/events","html_url":"https://github.com/nasa/edsc-search-test-config-3/issues/42","id":283711920,"number":42,"title":"EDSC-1181: Automated Download Script creation throws 500 error. ","user":{"login":"earthdata-tasktop","id":29754283,"avatar_url":"https://avatars2.githubusercontent.com/u/29754283?v=4","gravatar_id":"","url":"https://api.github.com/users/earthdata-tasktop","html_url":"https://github.com/earthdata-tasktop","followers_url":"https://api.github.com/users/earthdata-tasktop/followers","following_url":"https://api.github.com/users/earthdata-tasktop/following{/other_user}","gists_url":"https://api.github.com/users/earthdata-tasktop/gists{/gist_id}","starred_url":"https://api.github.com/users/earthdata-tasktop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earthdata-tasktop/subscriptions","organizations_url":"https://api.github.com/users/earthdata-tasktop/orgs","repos_url":"https://api.github.com/users/earthdata-tasktop/repos","events_url":"https://api.github.com/users/earthdata-tasktop/events{/privacy}","received_events_url":"https://api.github.com/users/earthdata-tasktop/received_events","type":"User","site_admin":false},"labels":[{"id":778954772,"url":"https://api.github.com/repos/nasa/edsc-search-test-config-3/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-12-20T22:16:19Z","updated_at":"2017-12-23T16:39:37Z","closed_at":"2017-12-20T22:16:21Z","author_association":"COLLABORATOR","body":"While investigating a kayako ticket I found this error:\n\n\n    [fb9aa5b4-3387-4cfb-90d7-49ec93378f28] Started GET \"/granules/download.sh?project=5633565042&amp;collection=C193529903-LPDAAC_ECS\" for 127.0.0.1 at 2016-08-30 18:16:55 -0400\n    [fb9aa5b4-3387-4cfb-90d7-49ec93378f28] Processing by GranulesController#download as SH\n    [fb9aa5b4-3387-4cfb-90d7-49ec93378f28]   Parameters: {\"project\"=>\"5633565042\", \"collection\"=>\"C193529903-LPDAAC_ECS\"}\n    [fb9aa5b4-3387-4cfb-90d7-49ec93378f28] �[0;33mGET https://cmr.earthdata.nasa.gov/search/concepts/C193529903-LPDAAC_ECS.json�[0m\n    [fb9aa5b4-3387-4cfb-90d7-49ec93378f28] �[0;32mGET https://cmr.earthdata.nasa.gov/search/concepts/C193529903-LPDAAC_ECS.json (200) [0.033304414s]�[0m\n    [fb9aa5b4-3387-4cfb-90d7-49ec93378f28] �[0;33mPOST https://cmr.earthdata.nasa.gov/search/granules.json?bounding_box=11.3203125%2C41.23828125%2C13.21875%2C42.9609375&amp;cloud_cover%5Bmax%5D=&amp;cloud_cover%5Bmin%5D=&amp;echo_collection_id=C193529903-LPDAAC_ECS&amp;echo_granule_id=G1295549252-LPDAAC_ECS&amp;page_num=1&amp;page_size=20&amp;sort_key%5B%5D=-start_date&amp;temporal=2009-12-31T23%3A59%3A59.000Z%2C2019-12-31T23%3A59%3A59.000Z�[0m\n    [fb9aa5b4-3387-4cfb-90d7-49ec93378f28] �[0;31mPOST https://cmr.earthdata.nasa.gov/search/granules.json?bounding_box=11.3203125%2C41.23828125%2C13.21875%2C42.9609375&amp;cloud_cover%5Bmax%5D=&amp;cloud_cover%5Bmin%5D=&amp;echo_collection_id=C193529903-LPDAAC_ECS&amp;echo_granule_id=G1295549252-LPDAAC_ECS&amp;page_num=1&amp;page_size=20&amp;sort_key%5B%5D=-start_date&amp;temporal=2009-12-31T23%3A59%3A59.000Z%2C2019-12-31T23%3A59%3A59.000Z (400) [0.022770567s]�[0m\n    [fb9aa5b4-3387-4cfb-90d7-49ec93378f28]   Rendered granules/prepare_script.html.erb (5.9ms)\n    [fb9aa5b4-3387-4cfb-90d7-49ec93378f28] Completed 500 Internal Server Error in 68ms (ActiveRecord: 2.1ms)\n    [fb9aa5b4-3387-4cfb-90d7-49ec93378f28] \n    ActionView::Template::Error (undefined method `start_with?' for nil:NilClass):\n        54: chmod 0600 \"$cookiejar\" \"$netrc\"\n        55: function finish {\n        56:   rm -rf \"$cookiejar\" \"$netrc\"\n        57:     <% if @first_link.start_with? 'ftp' %>\n        58:   <% # For FTP retrievals, we also need to clean up ~/.netrc file for safety reasons %>\n        59:       dot_netrc_tmp=$(mktemp ~/.netrc.tmp.XXXXXXXXXX)\n        60:   chmod 0600 \"$dot_netrc_tmp\"\n      app/views/granules/prepare_script.html.erb:57:in `_app_views_granules_prepare_script_html_erb___2852986855825897291_70084640625400'\n      app/controllers/granules_controller.rb:124:in `download'"},"comment":{"url":"https://api.github.com/repos/nasa/edsc-search-test-config-3/issues/comments/353735867","html_url":"https://github.com/nasa/edsc-search-test-config-3/issues/42#issuecomment-353735867","issue_url":"https://api.github.com/repos/nasa/edsc-search-test-config-3/issues/42","id":353735867,"user":{"login":"earthdata-tasktop","id":29754283,"avatar_url":"https://avatars2.githubusercontent.com/u/29754283?v=4","gravatar_id":"","url":"https://api.github.com/users/earthdata-tasktop","html_url":"https://github.com/earthdata-tasktop","followers_url":"https://api.github.com/users/earthdata-tasktop/followers","following_url":"https://api.github.com/users/earthdata-tasktop/following{/other_user}","gists_url":"https://api.github.com/users/earthdata-tasktop/gists{/gist_id}","starred_url":"https://api.github.com/users/earthdata-tasktop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earthdata-tasktop/subscriptions","organizations_url":"https://api.github.com/users/earthdata-tasktop/orgs","repos_url":"https://api.github.com/users/earthdata-tasktop/repos","events_url":"https://api.github.com/users/earthdata-tasktop/events{/privacy}","received_events_url":"https://api.github.com/users/earthdata-tasktop/received_events","type":"User","site_admin":false},"created_at":"2017-12-23T16:39:37Z","updated_at":"2017-12-23T16:39:37Z","author_association":"COLLABORATOR","body":"(Comment from Bo Sun):\n\n[~francell], the ticket is ready for test in SIT. \n\n[https://search.sit.earthdata.nasa.gov/search/granules?cmr_env=prod&amp;amp;p=C92711294-NSIDC_ECS&amp;amp;tl=1459345211!4!!&amp;amp;q=C92711294-NSIDC_ECS](https://search.sit.earthdata.nasa.gov/search/granules?cmr_env=prod&p=C92711294-NSIDC_ECS&tl=1459345211!4!!&q=C92711294-NSIDC_ECS)\n\n"}}
{"actor":{"display_login":"earthdata-tasktop"}}