disallow redirects in the Guzzle client for requests

Created on 13 May 2025, 2 days ago

Problem/Motivation

I'm not sure why in getClient() we have:

'allow_redirects' => TRUE,

and in getJsonApiClient() we don't specify allow_redirects, which means it default to a max of 5.

But they seem to be detrimental to me -- for instance, if basic_auth fails, the server I was using presumably returned redirects to the login form, and that produced a confusing error about the max redirects being reached.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024