Drupal 11: No supported normalizer found

Created on 13 September 2024, 4 months ago
Updated 14 September 2024, 4 months ago

Problem/Motivation

On Drupal 11, accessing /jsonrpc/methods gives this error:

Symfony\Component\Serializer\Exception\NotNormalizableValueException: Could not normalize object of type "Drupal\jsonrpc\Annotation\JsonRpcMethod", no supporting normalizer found. in Symfony\Component\Serializer\Serializer->normalize() (line 179 of /var/www/html/vendor/symfony/serializer/Serializer.php).

This error was surfaced in 📌 Add a test for jsonrpc_discovery that verifies the methods returned Active .

Steps to reproduce

1. Enable jsonrpc_core and jsonrpc_discovery.
2. Visit /jsonrpc/methods.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇯🇵Japan ptmkenny

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024