java.lang.IllegalArgumentException: Only one HTTP method is allowed. Found: DELETE and DELETE. for method ApiService.deleteMessage

GitHub | JakeWharton | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 1940#235143985

    GitHub | 9 months ago | JakeWharton
    java.lang.IllegalArgumentException: Only one HTTP method is allowed. Found: DELETE and DELETE. for method ApiService.deleteMessage
  2. 0

    GitHub comment 1940#235137135

    GitHub | 9 months ago | gushoubang
    java.lang.IllegalArgumentException: Only one HTTP method is allowed. Found: DELETE and DELETE. for method ApiService.deleteMessage
  3. 0

    GitHub comment 1900#231133825

    GitHub | 10 months ago | JakeWharton
    java.lang.IllegalArgumentException: Unable to create call adapter for interface retrofit2.Call for method ......
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android - google direction api using retrofit?

    Stack Overflow | 8 months ago | Fidelis
    java.lang.IllegalArgumentException: Service methods cannot return void. for method MyApiRequestInterface.getJson
  6. 0

    How to debug "java.lang.IllegalArgumentException: Unable to create converter for java.util.List" in Retrofit2 converter-simplexml?

    Stack Overflow | 8 months ago | ku4irka
    java.lang.IllegalArgumentException: Unable to create converter for java.util.List<com.ku4irka.rss_nfr.model.entity.Channel> for method ChannelService.getChannel
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Only one HTTP method is allowed. Found: DELETE and DELETE. for method ApiService.deleteMessage

    at retrofit2.ServiceMethod$Builder.methodError()
  2. retrofit2
    Retrofit$1.invoke
    1. retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:720)
    2. retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:711)
    3. retrofit2.ServiceMethod$Builder.parseHttpMethodAndPath(ServiceMethod.java:280)
    4. retrofit2.ServiceMethod$Builder.parseMethodAnnotation(ServiceMethod.java:258)
    5. retrofit2.ServiceMethod$Builder.build(ServiceMethod.java:170)
    6. retrofit2.Retrofit.loadServiceMethod(Retrofit.java:166)
    7. retrofit2.Retrofit$1.invoke(Retrofit.java:145)
    7 frames
  3. Java RT
    Proxy.invoke
    1. java.lang.reflect.Proxy.invoke(Proxy.java:393)
    1 frame
  4. Unknown
    $Proxy0.deleteMessage
    1. $Proxy0.deleteMessage(Unknown Source)
    1 frame
  5. com.dituwuyou.adapter
    MessageAdapter.removeItem
    1. com.dituwuyou.adapter.MessageAdapter.deleteSingleMessage(MessageAdapter.java:311)
    2. com.dituwuyou.adapter.MessageAdapter.removeItem(MessageAdapter.java:363)
    2 frames
  6. com.dituwuyou.ui
    MessageActivity.onClick
    1. com.dituwuyou.ui.MessageActivity.onClick(MessageActivity.java:150)
    1 frame
  7. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:5204)
    2. android.view.View$PerformClick.run(View.java:21153)
    3. android.os.Handler.handleCallback(Handler.java:739)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:148)
    6. android.app.ActivityThread.main(ActivityThread.java:5417)
    6 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames