{"action":"closed","issue":{"url":"https://api.github.com/repos/square/retrofit/issues/2598","repository_url":"https://api.github.com/repos/square/retrofit","labels_url":"https://api.github.com/repos/square/retrofit/issues/2598/labels{/name}","comments_url":"https://api.github.com/repos/square/retrofit/issues/2598/comments","events_url":"https://api.github.com/repos/square/retrofit/issues/2598/events","html_url":"https://github.com/square/retrofit/issues/2598","id":284928944,"number":2598,"title":"Random \"Non-body HTTP method cannot contain @Body\" Retrofit 2.3.0","user":{"login":"tomkoptel","id":758909,"avatar_url":"https://avatars2.githubusercontent.com/u/758909?v=4","gravatar_id":"","url":"https://api.github.com/users/tomkoptel","html_url":"https://github.com/tomkoptel","followers_url":"https://api.github.com/users/tomkoptel/followers","following_url":"https://api.github.com/users/tomkoptel/following{/other_user}","gists_url":"https://api.github.com/users/tomkoptel/gists{/gist_id}","starred_url":"https://api.github.com/users/tomkoptel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomkoptel/subscriptions","organizations_url":"https://api.github.com/users/tomkoptel/orgs","repos_url":"https://api.github.com/users/tomkoptel/repos","events_url":"https://api.github.com/users/tomkoptel/events{/privacy}","received_events_url":"https://api.github.com/users/tomkoptel/received_events","type":"User","site_admin":false},"labels":[{"id":273285289,"url":"https://api.github.com/repos/square/retrofit/labels/Needs%20Info","name":"Needs Info","color":"f7c6c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-28T14:47:07Z","updated_at":"2018-03-14T16:01:20Z","closed_at":"2018-03-14T16:01:20Z","author_association":"NONE","body":"Hello,\r\n\r\nFor some unknown reason, I am receiving in production application a crash that points the following [line of code](https://github.com/square/retrofit/blob/522592bb11fc8aa1ee491c3e7a1fe55675c372cd/retrofit/src/main/java/retrofit2/ServiceMethod.java#L211). The tough part is that I can not reproduce it with unit test.\r\n\r\nI am using `Retrofit 2.3.0` and `OkHttp 3.9.1`. The problem is that it should not crash in theory because the condition that triggers exception should not have been met.\r\n\r\n```java\r\npublic interface DrmApi {\r\n  @POST\r\n  Call<ResponseBody> sendProvisionKeyRequest(@Url HttpUrl provisionUrl, @Body RequestBody requestBody);\r\n}\r\n```\r\n\r\n```java\r\nCaused by java.lang.IllegalArgumentException: Non-body HTTP method cannot contain @Body.\r\n    for method DrmApi.sendProvisionKeyRequest\r\n       at retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:720)\r\n       at retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:711)\r\n       at retrofit2.ServiceMethod$Builder.build(ServiceMethod.java:209)\r\n       at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:166)\r\n       at retrofit2.Retrofit$1.invoke(Retrofit.java:145)\r\n       at java.lang.reflect.Proxy.invoke(Proxy.java:913)\r\n       at $Proxy5.sendProvisionKeyRequest(Unknown Source)\r\n```"}}
{"actor":{"display_login":"JakeWharton"}}