join the community conversations

4000+
active members

405 HTTP error message Method Not Allowed

Comments

7 comments

  • Avatar
    Kenneth Ayre

    Hi Marianne,

    Can you give some more details about the request that's being made?  Usually when I have seen this error in the past, it's because I've passed the wrong REST method in the request (GET instead of POST, for example), or, I think, because the body of the request is not provided or incorrectly specified.

    The REST method for each endpoint is specified in the Swagger page for the inriver REST API:

    https://apieuw.productmarketingcloud.com/swagger/ui/index#/

    Kind Regards, Kenneth

     

    0
  • Avatar
    helpdesk

    Hi Kenneth,

    As in the swagger page we have configurated a PUT. This means that all our messages are HTTP PUT. So a 405 error is unexpected in this case. All our successful messages are PUT also.

     

    0
  • Avatar
    Kenneth Ayre

    Hi Marianne,

    You said before "we sent a message as a change, but actually no fields are changed".  In this case, what are you including in the request body?  What is the endpoint?  If you could send an example of a request that results in an error, making sure to exclude the API key and any sensitive data, that could be helpful.

    There should also be an "Allow" header field in the server response that gives some indication of what methods it supports - that might give you an idea of what's going wrong in these cases that result in errors.

    Kind Regards, Kenneth

    0
  • Avatar
    helpdesk

    Hi Kenneth,

     

    I do not have the request itself as our processes are in low latency. But this is what we have set up:

    Configured HTTP PUT

    Processs log in process reporting:

    Error:

    0
  • Avatar
    helpdesk

    My conclusion is that 405 is just not the correct response. There is nothing wrong with the method we send, but with the content. I will take this up with the InRiver consultant we work with.

    0
  • Avatar
    Per Bolmstedt | Kodexe ☕

    In REST conventions, 405 means the method is not allowed on the resource. So the consultant should expect 405s depending on the data sent, not only the operation used. 🎅🏽

    0
  • Avatar
    helpdesk

    The json

     

    [

      {

        "fieldTypeId" : "ItemInternalArticleNumber",

        "value" : "263900"

      },

      {

        "fieldTypeId" : "ItemEAN",

        "value" : "8056597492492"

      },

      {

        "fieldTypeId" : "ItemArticleType",

        "value" : "ZHAN"

      },

      {

        "fieldTypeId" : "ItemGoodsGroup",

        "value" : "500024001"

      },

      {

        "fieldTypeId" : "ItemProductHierarchySAP01",

        "value" : "05"

      },

      {

        "fieldTypeId" : "ItemProductHierarchySAP02",

        "value" : "0501"

      },

      {

        "fieldTypeId" : "ItemProductHierarchySAP03",

        "value" : "050101"

      },

      {

        "fieldTypeId" : "ItemProductHierarchySAP04",

        "value" : "050101005"

      },

      {

        "fieldTypeId" : "ItemProductHierarchySAP05",

        "value" : "05010100501"

      },

      {

        "fieldTypeId" : "ItemManufacturer",

        "value" : "500"

      },

      {

        "fieldTypeId" : "ItemBrand",

        "value" : "500024"

      },

      {

        "fieldTypeId" : "ItemLine",

        "value" : "500024001"

      },

      {

        "fieldTypeId" : "ItemArticleNumberSupplier",

        "value" : "TF3080 59 6001 9S"

      },

      {

        "fieldTypeId" : "ItemSAPStatus",

        "value" : "Active"

      },

      {

        "fieldTypeId" : "ItemPIMStatus",

        "value" : "UpdatedInSAP"

      },

      {

        "fieldTypeId" : "ItemTesterAvailable",

        "value" : false

      },

      {

        "fieldTypeId" : "ItemGrossWeight",

        "value" : 40.0000000000000000

      },

      {

        "fieldTypeId" : "ItemNettWeight",

        "value" : 20.0000000000000000

      },

      {

        "fieldTypeId" : "ItemWeightUnit",

        "value" : "GRM"

      },

      {

        "fieldTypeId" : "ItemLength",

        "value" : 0.0000000000000000

      },

      {

        "fieldTypeId" : "ItemWidth",

        "value" : 0.0000000000000000

      },

      {

        "fieldTypeId" : "ItemHeight",

        "value" : 0.0000000000000000

      },

      {

        "fieldTypeId" : "ItemTypeOfLens",

        "value" : "Normal"

      },

      {

        "fieldTypeId" : "ItemColorFrame",

        "value" : "SILVER"

      },

      {

        "fieldTypeId" : "ItemMaterialFrame",

        "value" : "METAL"

      },

      {

        "fieldTypeId" : "ItemGender",

        "value" : "WOMEN"

      }

    ]

    0

Please sign in to leave a comment.