Legacy Dev Forum Posts

 View Only

Sign Up

HTTP 405 Method Not Allowed using SDK

  • 1.  HTTP 405 Method Not Allowed using SDK

    Posted 06-05-2025 18:18

    Develop.Crocodile | 2021-01-29 08:28:17 UTC | #1

    Hi forum, I searched if someone else had the same issue but I didn't find anything yet. I'm not sure if it's a bug or something else, so I'll try to describe the problem.

    We perform some sequential operations in short time, calling each time this method of Java SDK:

    (new RoutingApi()).deleteUserRoutingskill(userId, skillId);

    Most of the calls perform correctly, but some of them (let's say 6/7 in hundreds) throw the following exception:

    {"message":"HTTP 405 Method Not Allowed","code":"method not allowed","status":405,"contextId":"0d845c23-f96a-4bac-901a-5577addebf78","details":[],"errors":[]}

    Now, using the SDK we don't set any method of the request, so I think the error message is not correct, or it means something else.

    System configuration: Java: 8 Maven: 1.6 Purecloud Java SDK: 108.0.0

    Thanks in advance for the help!


    anon11147534 | 2021-01-29 09:33:23 UTC | #2

    Hi,

    It's certainly not normal to be getting that error intermittently. Please open a case with Care to investigate this error. They will need any contextId/correlationIds from the failed requests.


    tim.smith | 2021-01-29 15:10:27 UTC | #3

    The logging for this request indicates that you're not providing a skill id in the request. This means you're making a request to api/v2/users/xxx/routingskills, which does not support a DELETE operation. Make sure you're validating your input and you have a value for skillid before making the request.


    Develop.Crocodile | 2021-01-29 16:02:10 UTC | #4

    Thanks @tim.smith, that's exactly the problem! We didn't find out before because the message is misleading.

    Thanks again!


    system | 2021-03-01 16:02:16 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 9844