Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm trying to update a node/1 using PATCH method, but even the PATCH is enabled to content using module REST UI I got the following error
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: No route found for "PATCH /node/2": Method Not Allowed (Allow: GET, POST, DELETE) in Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest() (line 150 of /Users/enzo/www/ticambio-backend/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/RouterListener.php).
In someway the middleware doesn't have PATCH enabled.
Comments
Comment #1
Wim LeersThis is a duplicate of #2659070: REST requests without Content-Type header: unhelpful response significantly hinders DX, should receive a 415 response.