{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-openfeign/issues/21","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-openfeign","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-openfeign/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-openfeign/issues/21/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-openfeign/issues/21/events","html_url":"https://github.com/spring-cloud/spring-cloud-openfeign/issues/21","id":318862900,"number":21,"title":"Http status 406 when requesting actuator endpoint with Feign BOM RC1","user":{"login":"jjroldan1","id":25169878,"avatar_url":"https://avatars0.githubusercontent.com/u/25169878?v=4","gravatar_id":"","url":"https://api.github.com/users/jjroldan1","html_url":"https://github.com/jjroldan1","followers_url":"https://api.github.com/users/jjroldan1/followers","following_url":"https://api.github.com/users/jjroldan1/following{/other_user}","gists_url":"https://api.github.com/users/jjroldan1/gists{/gist_id}","starred_url":"https://api.github.com/users/jjroldan1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjroldan1/subscriptions","organizations_url":"https://api.github.com/users/jjroldan1/orgs","repos_url":"https://api.github.com/users/jjroldan1/repos","events_url":"https://api.github.com/users/jjroldan1/events{/privacy}","received_events_url":"https://api.github.com/users/jjroldan1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T11:43:34Z","updated_at":"2018-04-30T14:54:00Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI have found this strange behavior while working with Spring Boot 2.0.0.RELEASE and Spring Cloud Finchley.RC1 and Spring Cloud OpenFeign 2.0.0.RC1 with the following maven setup:\r\n\r\n```\r\n    <parent>\r\n         <groupId>org.springframework.boot</groupId>\r\n         <artifactId>spring-boot-starter-parent</artifactId>\r\n         <version>2.0.0.RELEASE</version>\r\n         <relativePath />\r\n    </parent>\r\n\r\n    <dependencyManagement>\r\n      <dependencies>\r\n        <dependency>\r\n            <groupId>org.springframework.cloud</groupId>\r\n            <artifactId>spring-cloud-dependencies</artifactId>\r\n            <version>Finchley.RC1</version>\r\n            <type>pom</type>\r\n            <scope>import</scope>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.springframework.cloud</groupId>\r\n            <artifactId>spring-cloud-openfeign</artifactId>\r\n            <version>2.0.0.RC1</version>\r\n            <type>pom</type>\r\n            <scope>import</scope>\r\n        </dependency>\r\n    </dependencies>\r\n</dependencyManagement>    \r\n```\r\n\r\nA curl request like \r\n\r\n    curl http://localhost:8081/actuator/health\r\n\r\nwhich was previously working fine, it started returning a HTTP status 406.\r\n\r\nOnly if I add an Accept header\r\n\r\n    curl -H \"Accept: */*;q=1\" http://localhost:8081/actuator/health\r\n    curl -H \"Accept: application/json\" http://localhost:8081/actuator/health\r\n\r\nthen I get a 200 response.\r\n\r\nIf I downgrade SC OpenFeign to 2.0.0.M2, then the accept header is not required anymore. \r\n\r\nI have noticed also that all the endpoints which return a `@ResponseBody `String present the same behavior. "},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-openfeign/issues/comments/385423208","html_url":"https://github.com/spring-cloud/spring-cloud-openfeign/issues/21#issuecomment-385423208","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-openfeign/issues/21","id":385423208,"user":{"login":"ryanjbaxter","id":524254,"avatar_url":"https://avatars1.githubusercontent.com/u/524254?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanjbaxter","html_url":"https://github.com/ryanjbaxter","followers_url":"https://api.github.com/users/ryanjbaxter/followers","following_url":"https://api.github.com/users/ryanjbaxter/following{/other_user}","gists_url":"https://api.github.com/users/ryanjbaxter/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanjbaxter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanjbaxter/subscriptions","organizations_url":"https://api.github.com/users/ryanjbaxter/orgs","repos_url":"https://api.github.com/users/ryanjbaxter/repos","events_url":"https://api.github.com/users/ryanjbaxter/events{/privacy}","received_events_url":"https://api.github.com/users/ryanjbaxter/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T14:54:00Z","updated_at":"2018-04-30T14:54:00Z","author_association":"CONTRIBUTOR","body":"Couple of things to try/change.\r\n\r\n1.  Use Boot 2.0.1.RELEASE\r\n2. There is no need to include the openfeign dependency in your dependency management section"}}
{"actor":{"display_login":"ryanjbaxter"}}