Page not found /jsonapi warning when saving Quant API data.

Created on 19 January 2024, over 1 year ago

Problem/Motivation

When testing for πŸ“Œ Create Quant 1.5.5 release Postponed and testing the API form, getting page not found warnings in the logs for /jsonapi which shows the location as http://web/jsonapi.

Steps to reproduce

  • Install and configure quant_api module (might need to toggle the TLS checkbox)
  • Look at logs
  • Results: page not found error for /jsonapi
  • Expected results: no error

Proposed resolution

Debug and fix.

Remaining tasks

  • Update code
  • Review and test
  • Commit :)

User interface changes

No error in the logs when saving API data.

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

  • Issue created by @Kristen Pol
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Seems to be when the TLS setting is overridden:

    $config['quant_api.settings']['api_tls_disabled'] = TRUE
    
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Actually, I can't get it to show up consistently.

  • Issue was unassigned.
  • Status changed to Postponed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Postponing for now.

  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Update title and summary.

  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Happens in Drupal 7 too.

  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Can't figure out to reliably reproduce in D7 either.

  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    This seems fixed in 1.6.0 so closing.

  • Status changed to Postponed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    I saw this again recently when switching from an English path prefix to no prefix (or maybe it was the reverse). Reopening but marking postponed since I still don't know how to reproduce this.

  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    These show up as Anonymous (not verified).

  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Happens when this is called in quant_purger/src/StackMiddleware/UrlRegistrar.php:

    $response = $this->httpKernel->handle($request, $type, $catch);
    

    for url = /jsonapi.

    If you pass in $catch = FALSE, then you can catch the exception and it's not clear this is what we want to do.

    Maybe we'd want to check these URLs before passing into handle? If so, check for what?

  • Status changed to Closed: won't fix 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Closing postponed 1.x issues as the focus is switching to the 2.x branch and these are lower priority.

    Leave a comment if you are interested in this issue and we can move to the 2.x queue.

Production build 0.71.5 2024