Application ID: 330D51DD-F8A7-07E8-FF88-819D27EFCB00
I seem to be getting the error below when calling this specific endpoint of my API as shown below:
I’m not sure what could be producing this error as the image below changes the endpoint by one letter and it suddenly starts working as intended
Hello, @Social_Smarttwigs,
this can happen if you have a route collision and the request comes to a different method than expected.
For example if you have method:
PUT /users/{userId}/props
and PUT /users/{userIdReceiver}/props
, then when requesting, for example, PUT /users/123/props
, the system does not know which of these two routes is suitable, because 123
can be both userId
and userIdReceived
, and simply selects the first one (and in your case, obviously, not the one that was expected).
Hope this helps.
Regards,
Stanislaw
Oh! I didn’t even notice that, thanks for pointing that out!