Overview# I addressed the same error in the following article.
However, there were cases where the error could not be resolved even after applying the above fix, so I describe additional measures here.
Error Details# The error details are as follows. In particular, it occurred when jsonapi_search_api_facets was enabled.
{ " " " " " " } } } } " { " " " " " " } " " } } " " " } " " j v m l s h , e t s d l v h , i h , s f l , m e s e e i e r r i t e i i r n r o i i e x o r t n l e r t a t n a e f e u l n t c n s a k f f o l t a k " f o f r e e a e a i " s " " r e u i s : " " " c " " " p p o : " : : s " s l " : : : e : : : t i n : " : " " : { " i " " { { " : : : " { " : " 8 { o : : { h " { h h / 3 n t [ B " " t t { a " { " t a 4 I t t p : 1 p d 0 n p p p . : 0 p : : / " 0 / R " u / / v S " / e , t / / e y , j q l w n m s u v o w d f o e a c w o o n s l a . r n a t u l w / y p " e h 3 s \ i , o . y \ . \ s o m C o " t r f o r p : g o m g a 6 / n p / g 1 P y o f e 1 r / n o \ 1 o h e r " 7 t t n m / o t t a c w c p \ t o e o - \ / n b l k H 1 t / s e t . a j / r t 0 i s r n p / n o f e F " s n c l o a 2 / u a p 6 H n i 1 t d n / 6 t a o i / p t n n r K i - d f e o s e c r n c x 2 n \ a / 6 e \ l d 1 l E a o 6 . x r c - p c u s h e v m e p p a e c " t l n 1 , i u t 0 o e ? . n . p h \ " a t \ , g m B e l a % # d 5 s R B e e l c q i 1 u m 0 e i . s t 4 t % . E 5 1 x D " c = e 2 p 4 t & i s o o n r : t = I f n i p e u l t d _ v i a d l " u e \ " p a g e \ " c o n t a i n s a n o n - s c a l a r v a l u e . i n / a p p / v e n d o r / s y m f o n y / h t t p - f o u n d a t i o n / I n p u t B a g . p h p : 3 8 \ n S t a c k t r a c e : \ n # 0 / a p p / w e b / m o d u l e s / c o n t r i b / f a c e t s / s r c / P l u g i n / f a c e t s / u r l _ p r o c e s s o r / Q u e r y S t r i n g . p h p ( 9 2 ) : S y m f o n y \ \ C o m p o n e n t \ \ H t t p F o u n d a t i o n \ \ I n p u t B a g - > g e t ( ' p a g e ' ) \ n # 1 / a p p / w e b / m o d u l e s / c o n t r i b / f a c e t s / s r c / P l u g i n / f a c e t s / p r o c e s s o r / U r l P r o c e s s o r H a n d l e r . p h p ( 7 6 ) : D r u p a l \ \ f a c e t s \ \ P l u g i n \ \ f a c e t s \ \ u r l _ p r o c e s s o r \ \ Q u e r y S t r i n g - > b u i l d U r l s ( O b j e c t ( D r u p a l \ \ f a c e t s \ \ E n t i t y \ \ F a c e t ) , A r r a y ) \ n # 2 / a p p / w e b / m o d u l e s / c o n t r i b / f a c e t s / s r c / F a c e t M a n a g e r / D e f a u l t F a c e t M a n a g e r . p h p ( 3 3 9 ) :
Solution# I modified the buildUrls method in the file mentioned above.
< n u u u u u u u u u u u u u c ? a s s s s s s s s s s s s s l p m e e e e e e e e e e e e e a p h e Q @ s u p s D D D D D D D D D S S S D u F s b i } $ i } i } p r r r r r r r r r y y y r e a i l d { l f g f f a u u u u u u u u u m m m u r c d a e Q @ i r e $ $ $ u $ c p p p p p p p p p f f f p y e b s u i c N ( e F t W p C ( c g A ( p n g e a a a a a a a a a o o o a t = e c e n o e t i _ h o o $ u e d $ a s e l l l l l l l l l n n n l s s l r r h f m u r p e s m g r t d g g e t D \ \ \ \ \ \ \ \ y y y \ t U " i y e u r p r s a n s m e r _ e e e t _ r C C C f f f f f f \ \ j r r q = p S r n e t n t r i e t e p d t _ ( p u o o o a a a a a a C C C s i l u t t i c s y a a b n _ n a _ p $ a p r r r c c c c c c o o o o n P e @ i r t t u ( [ g m d l t p t r p a p r a e e e e e e e e e m m m n g r r T o i d i l $ ] e s d y e a _ a a r a a l \ \ \ t t t t t t p p p a o y r n n o o t r ; t i d r p m r a g m \ C E E s s s s s s o o o p U c _ a g c n s e = n r a a s a m e s f a n v \ \ \ \ \ \ n n n i R e s n = } s t g e o m g - m s _ - a c t e E E E F U U e e e \ L s t s e b a u h $ / s u s e > s p > c h i n v v v a r t n n n Q s r l @ x u r l e t r u t - r - = a s e e t t e e e c l i t t t u p o i a T t i e t h e l > = e > r e t y S n n n e P l \ \ \ e r r n t r e l s c i m t h m h $ a t s U u t t t t r i D E H r o ( g i a n d f ) u s o i a $ o a g m ( \ n E b \ \ \ I o t e v t y c " o n d U o ) r - v n s g v s e s O P c n s A Q U n c y p e t \ e , n s s r u r > i g ( e e ( t [ f l h t c c u r t e \ e n p O s ( l l n { e r n ' t ( O _ O f u a i r t e l e s F n t F f s " a U s d n e g i p _ ' f p f s g n t i i r C r s a d D o f o Q t r ( t q n a p p f a f e i g y b v y r f o c e i u s r u i l F f u a g a a s r s t n i T e e S e a r e n s n e . e o P a o l e a e r g e a e P \ n y r F t a c \ t c p d t r n r c r i s f n ' a e t m t a f g p \ i r t e U s y a a P y ( o e s t i ) m ' P s P g a C e M l i e ; r U I t t a " c t t t - l i ) s ) a - a e c a M a t n d l r n c i g s Q e I h > t n - ; g > g : e c a i e g ; P l j h o e t u s n i o q e v { > e a e : t h n n r C r G e e n ; r e s t s f u r a g : l : K s e a C s r o e c r \ i r o e e l e : l : E \ a g o P e c n t \ R n y r r f g r t i t K ( O Y u b e n a a e e i E e g P f a e y h d ( E O F _ r l r t r t s r o v q " s l a c t ; e ' Y f F N l e I e s e s a n e u A ) t u c e p p _ f S A _ D n n e d o t \ n e d , r g e t p n a a N s E M p e t t d ; r o C t s d i i , a u g g A e T E r p e V ; P r o D t e n n $ r m e e M t _ , o e r i l ; n i ; d g B f s a b ' E P K c n f e u t s a a o m e p ) ) a E $ e d a w g a p i s c e r a ; ) g Y p s e c S i i a s e e d t r e ] a s n e u n n t t o e o a { : ) g o c ; b B e c t { , n r f m : ; e r y s a r h h ' s e K _ ; T c s I e e a t . p t E p r r e n r r a e Y a a i ; t I d r t g r _ r i b e n e a r e . N a t e r t f y y s A m ; r f e a M s ; a r u $ t m E ) c f l r o a ) ; e a t e y ; ; c s c e F u r h ; a l e a c t a v e s t e t ) e s c { u h U r a R l n L s g . e p d r , o c e s s o r , a n d u s e s G E T p a r a m e t e r s , f o r e x a m p l e ? f [ 0 ] = b r a n d : d r u p a l & f [ 1 ] = c o l o r : b l u e " ) The above modification was made by referencing the following file, adding Drupal\jsonapi\Query\OffsetPage and modifying thepageprocessing.
/modules/contrib/jsonapi_search_api/modules/jsonapi_search_api_facets/src/Plugin/facets/url_processor/JsonApiQueryString.php
Summary# The error no longer occurs after the above fix, but I am not confident this is the correct approach, so please exercise caution if using this as a reference.
I hope this is helpful.