Excessive error messages from contextual filter

Created on 17 September 2024, about 2 months ago

Problem/Motivation

After upgrading from views_json_source v1.4.0 to v2.0.2, receiving error message in logs even though no issues with the view displaying on screen.
The error message:
Client error: `GET https://YOURURL/api/2/events?exclude_types=36537622232281&days=30&pp=1&p...` resulted in a `400 Bad Request` response: {"status":"error","request":"/api/2/events?exclude_types=36537622232281\u0026days=30\u0026pp=1\u0026page=1\u0026type=%25 (truncated...)

Steps to reproduce

  1. Create a view using views_json_source
  2. Create a view block and add json fields
  3. Use the "URL parameter" contextual filter
  4. In query, add % for the part of JSON File (url) you want to replace with a contextual filter
  5. Save view
  6. Use twig_tweak to reference the view {{ drupal_view('view', 'block', 'arg') }} in twig template, adding the argument parameter for the contextual filter
  7. Go to web page where view is placed.
  8. Check log messages

Proposed resolution

Unsure where the issue originates. Error was not appearing before upgrading to 2.0.2.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States andreayaya

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

Comments & Activities

Production build 0.71.5 2024