Open zackspear opened 3 years ago
Guzzle 7 doesn't like the relative URI parameter being null || undefined
Previously in Twig
{% set client = {
base_uri : 'https://api.chucknorris.io/jokes/random',
timeout : 30
} %}
{% set request = fetch(client, 'GET', null) %}
If I tweak the Twig template fetch usage to
{% set request = fetch(client, 'POST', '') %}
everything works again.
Will have a PR to prevent this error shortly.
I've just started using Fetch and am currently still on Craft 3.5. Am I right in thinking that as long as I use a string (empty or not) for the destination, updating to Craft 3.6 shouldn't pose a problem for Fetch? Thanks.
@DavidOliver that's correct. It just doesn't like the destination parameter being null || undefined
.
After updating to Craft 3.6.x along with it Guzzle was updated to 7.3. This plugin stopped working.
I created a proof of concept to help troubleshoot the issue.
Modified
index.twig
Results in
Not sure why it's returning this error.
If I then install Guzzle 6.x
Plugin works again