Error: Input value "sort" contains a non-scalar value

Created on 6 September 2023, about 1 year ago

I'm getting the following error on the Server side when using the sort feature on my channels.

Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Input value "sort" contains a non-scalar value. in Symfony\Component\HttpKernel\HttpKernel->handle() (line 83 of /app/vendor/symfony/http-kernel/HttpKernel.php).

The error occurs when I click to change the sort order on the "Remote entity changed date" column on the Client side UI. The Client side gets the error:

Client error: `GET https://my.domain.name/jsonapi/node/announcement?filter%5Bfield_syndicat...` resulted in a `400 Bad Request`

I had not previously setup a default sort order on my channels, so I tried adding a default sort:
Path = changed
Direction = ASC
Weight = 0

This resulted in me not being able to pull the channel at all on the Client side. I got the same Server and Client errors as above.

Steps to reproduce

Drupal version 10.1.2
Entity Share 8.x-3.0
PHP 8.1.21

- Upgrade from Drupal 9
- Patch jsonapi_extras, as per https://www.drupal.org/project/jsonapi_extras/issues/3331874 🐛 $request->get may no longer return array as of Symfony 6.0 Fixed

🐛 Bug report
Status

Active

Version

3.0

Component

Entity Share Server

Created by

🇨🇦Canada gocaps

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

Comments & Activities

Production build 0.71.5 2024