{"action":"created","issue":{"url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/389","repository_url":"https://api.github.com/repos/aws/opsworks-cookbooks","labels_url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/389/comments","events_url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/389/events","html_url":"https://github.com/aws/opsworks-cookbooks/issues/389","id":164366373,"number":389,"title":"Issue in deploying archive which uses http basic authentication","user":{"login":"anoopknayak","id":665703,"avatar_url":"https://avatars.githubusercontent.com/u/665703?v=3","gravatar_id":"","url":"https://api.github.com/users/anoopknayak","html_url":"https://github.com/anoopknayak","followers_url":"https://api.github.com/users/anoopknayak/followers","following_url":"https://api.github.com/users/anoopknayak/following{/other_user}","gists_url":"https://api.github.com/users/anoopknayak/gists{/gist_id}","starred_url":"https://api.github.com/users/anoopknayak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anoopknayak/subscriptions","organizations_url":"https://api.github.com/users/anoopknayak/orgs","repos_url":"https://api.github.com/users/anoopknayak/repos","events_url":"https://api.github.com/users/anoopknayak/events{/privacy}","received_events_url":"https://api.github.com/users/anoopknayak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-07T17:39:46Z","updated_at":"2016-07-07T20:23:23Z","closed_at":null,"body":"I have a private bitbucket repo archive which i would like to deploy. But it ends up at the following error:\r\n\r\nERROR: bad component(expected userinfo component or user component): \r\n\r\n```\r\n================================================================================\r\nRecipe Compile Error in /var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/recipes/rails.rb\r\n================================================================================\r\n \r\n \r\nURI::InvalidComponentError\r\n--------------------------\r\nbad component(expected userinfo component or user component): anoopknayak@gmail.com\r\n \r\n \r\nCookbook Trace:\r\n---------------\r\n/var/lib/aws/opsworks/cache.stage2/cookbooks/scm_helper/libraries/archive.rb:9:in `prepare_archive_checkouts'\r\n/var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/definitions/opsworks_deploy.rb:32:in `block in from_file'\r\n/var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/recipes/rails.rb:28:in `block in from_file'\r\n/var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/recipes/rails.rb:3:in `each'\r\n/var/lib/aws/opsworks/cache.stage2/cookbooks/deploy/recipes/rails.rb:3:in `from_file'\r\n \r\n \r\nRelevant File Content:\r\n----------------------\r\n/var/lib/aws/opsworks/cache.stage2/cookbooks/scm_helper/libraries/archive.rb:\r\n \r\n2:  \r\n3:  module OpsWorks\r\n4:    module SCM\r\n5:      module Archive\r\n6:        def prepare_archive_checkouts(scm_options)\r\n7:          unless scm_options[:user].blank? || scm_options[:password].blank?\r\n8:            archive_url = URI.parse(scm_options[:repository])\r\n9>>           archive_url.user = scm_options[:user]\r\n10:            archive_url.password = scm_options[:password]\r\n11:            archive_url = archive_url.to_s\r\n12:          else\r\n13:            archive_url = scm_options[:repository]\r\n14:          end\r\n15:  \r\n16:          tmpdir = Dir.mktmpdir('opsworks')\r\n17:          directory tmpdir do\r\n18:            mode 0755\r\n```\r\n\r\nIs there any solution to above?"},"comment":{"url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/comments/231195999","html_url":"https://github.com/aws/opsworks-cookbooks/issues/389#issuecomment-231195999","issue_url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/389","id":231195999,"user":{"login":"githuesch","id":3702759,"avatar_url":"https://avatars.githubusercontent.com/u/3702759?v=3","gravatar_id":"","url":"https://api.github.com/users/githuesch","html_url":"https://github.com/githuesch","followers_url":"https://api.github.com/users/githuesch/followers","following_url":"https://api.github.com/users/githuesch/following{/other_user}","gists_url":"https://api.github.com/users/githuesch/gists{/gist_id}","starred_url":"https://api.github.com/users/githuesch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/githuesch/subscriptions","organizations_url":"https://api.github.com/users/githuesch/orgs","repos_url":"https://api.github.com/users/githuesch/repos","events_url":"https://api.github.com/users/githuesch/events{/privacy}","received_events_url":"https://api.github.com/users/githuesch/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T20:23:23Z","updated_at":"2016-07-07T20:23:23Z","body":"Can you download your code with the same credentials outside OpsWorks?"}}
{"actor":{"display_login":"githuesch"}}