{"action":"created","issue":{"url":"https://api.github.com/repos/zaproxy/zaproxy/issues/1880","labels_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/1880/labels{/name}","comments_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/1880/comments","events_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/1880/events","html_url":"https://github.com/zaproxy/zaproxy/issues/1880","id":105642656,"number":1880,"title":"Invalid or missing API key (bad_api_key) when using zap2docker-stable w/ Zapr","user":{"login":"pdehaan","id":557895,"avatar_url":"https://avatars.githubusercontent.com/u/557895?v=3","gravatar_id":"","url":"https://api.github.com/users/pdehaan","html_url":"https://github.com/pdehaan","followers_url":"https://api.github.com/users/pdehaan/followers","following_url":"https://api.github.com/users/pdehaan/following{/other_user}","gists_url":"https://api.github.com/users/pdehaan/gists{/gist_id}","starred_url":"https://api.github.com/users/pdehaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdehaan/subscriptions","organizations_url":"https://api.github.com/users/pdehaan/orgs","repos_url":"https://api.github.com/users/pdehaan/repos","events_url":"https://api.github.com/users/pdehaan/events{/privacy}","received_events_url":"https://api.github.com/users/pdehaan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-09-09T17:11:07Z","updated_at":"2016-02-02T08:44:45Z","closed_at":"2016-01-15T01:08:04Z","body":"I'm trying to follow the instructions at https://github.com/zaproxy/zaproxy/wiki/Docker and did:\r\n\r\n```sh\r\n$ docker pull owasp/zap2docker-stable\r\n$ docker run -u zap -i owasp/zap2docker-stable zapr --debug --summary http://mysite.com/\r\n```\r\n\r\n... but I'm getting the following error:\r\n```\r\n2860 [Thread-4] INFO org.zaproxy.zap.extension.dynssl.ExtensionDynSSL  - Creating new root CA\r\n3646 [ZAP-ProxyThread-2] WARN org.zaproxy.zap.extension.api.API  - ApiException while handling API request:\r\nInvalid or missing API key (bad_api_key)\r\n\tat org.zaproxy.zap.extension.api.API.handleApiRequest(Unknown Source)\r\n\tat org.parosproxy.paros.core.proxy.ProxyThread.processHttp(Unknown Source)\r\n\tat org.parosproxy.paros.core.proxy.ProxyThread.run(Unknown Source)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n3653 [ZAP-ProxyThread-3] WARN org.zaproxy.zap.extension.api.API  - ApiException while handling API request:\r\nInvalid or missing API key (bad_api_key)\r\n\tat org.zaproxy.zap.extension.api.API.handleApiRequest(Unknown Source)\r\n\tat org.parosproxy.paros.core.proxy.ProxyThread.processHttp(Unknown Source)\r\n\tat org.parosproxy.paros.core.proxy.ProxyThread.run(Unknown Source)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n/var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/abstract_response.rb:74:in `return!': 400 Bad Request (RestClient::BadRequest)\r\n\tfrom /var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/request.rb:495:in `process_result'\r\n\tfrom /var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/request.rb:421:in `block in transmit'\r\n\tfrom /usr/lib/ruby/1.9.1/net/http.rb:746:in `start'\r\n\tfrom /var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in `transmit'\r\n\tfrom /var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in `execute'\r\n\tfrom /var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute'\r\n\tfrom /var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient.rb:65:in `get'\r\n\tfrom /var/lib/gems/1.9.1/gems/owasp_zap-0.0.5/lib/owasp_zap.rb:83:in `shutdown'\r\n\tfrom /var/lib/gems/1.9.1/gems/zapr-0.1.3/lib/zapr/zap.rb:40:in `shutdown'\r\n\tfrom /var/lib/gems/1.9.1/gems/zapr-0.1.3/lib/zapr.rb:43:in `ensure in execute'\r\n\tfrom /var/lib/gems/1.9.1/gems/zapr-0.1.3/lib/zapr.rb:43:in `execute'\r\n\tfrom /var/lib/gems/1.9.1/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'\r\n\tfrom /var/lib/gems/1.9.1/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'\r\n\tfrom /var/lib/gems/1.9.1/gems/zapr-0.1.3/bin/zapr:5:in `<top (required)>'\r\n\tfrom /usr/local/bin/zapr:23:in `load'\r\n\tfrom /usr/local/bin/zapr:23:in `<main>'\r\n=====> An error occured\r\n400 Bad Request\r\n/var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/abstract_response.rb:74:in `return!'\r\n/var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/request.rb:495:in `process_result'\r\n/var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/request.rb:421:in `block in transmit'\r\n/usr/lib/ruby/1.9.1/net/http.rb:746:in `start'\r\n/var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in `transmit'\r\n/var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in `execute'\r\n/var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute'\r\n/var/lib/gems/1.9.1/gems/rest-client-1.8.0/lib/restclient.rb:65:in `get'\r\n/var/lib/gems/1.9.1/gems/owasp_zap-0.0.5/lib/owasp_zap/spider.rb:15:in `start'\r\n/var/lib/gems/1.9.1/gems/zapr-0.1.3/lib/zapr/zap.rb:27:in `block in spider'\r\n/usr/lib/ruby/1.9.1/timeout.rb:69:in `timeout'\r\n/var/lib/gems/1.9.1/gems/zapr-0.1.3/lib/zapr/zap.rb:26:in `spider'\r\n/var/lib/gems/1.9.1/gems/zapr-0.1.3/lib/zapr.rb:30:in `execute'\r\n/var/lib/gems/1.9.1/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'\r\n/var/lib/gems/1.9.1/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'\r\n/var/lib/gems/1.9.1/gems/zapr-0.1.3/bin/zapr:5:in `<top (required)>'\r\n/usr/local/bin/zapr:23:in `load'\r\n/usr/local/bin/zapr:23:in `<main>'\r\n```\r\n(full log at https://gist.github.com/pdehaan/560ed4a45024dfb6dc38)\r\n\r\n---\r\n\r\nI'm using Docker 1.8.1 on Mac OSX 10.10.5.\r\n\r\n```sh\r\n$ docker version\r\nClient:\r\n Version:      1.8.1\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   d12ea79\r\n Built:        Thu Aug 13 02:49:29 UTC 2015\r\n OS/Arch:      darwin/amd64\r\n\r\nServer:\r\n Version:      1.8.1\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   d12ea79\r\n Built:        Thu Aug 13 02:49:29 UTC 2015\r\n OS/Arch:      linux/amd64\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/zaproxy/zaproxy/issues/comments/178450329","html_url":"https://github.com/zaproxy/zaproxy/issues/1880#issuecomment-178450329","issue_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/1880","id":178450329,"user":{"login":"psiinon","id":1081115,"avatar_url":"https://avatars.githubusercontent.com/u/1081115?v=3","gravatar_id":"","url":"https://api.github.com/users/psiinon","html_url":"https://github.com/psiinon","followers_url":"https://api.github.com/users/psiinon/followers","following_url":"https://api.github.com/users/psiinon/following{/other_user}","gists_url":"https://api.github.com/users/psiinon/gists{/gist_id}","starred_url":"https://api.github.com/users/psiinon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psiinon/subscriptions","organizations_url":"https://api.github.com/users/psiinon/orgs","repos_url":"https://api.github.com/users/psiinon/repos","events_url":"https://api.github.com/users/psiinon/events{/privacy}","received_events_url":"https://api.github.com/users/psiinon/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T08:44:45Z","updated_at":"2016-02-02T08:44:45Z","body":"Its not a ZAP issue.\r\nIf you run ZAP with the command line option:\r\n`-config api.disablekey=true`\r\nthen the API key wont be required.\r\nZapr is a third party tool which we have no control over."}}