If the API key changed the Campaign is broken with below errors
InvalidArgumentException: The URI '' is invalid. You must use a valid URI scheme. in Drupal\Core\Url::fromUri() (line 280 of /..../core/lib/Drupal/Core/Url.php).
An error occurred while getting campaigns: 404: Resource Not Found - The requested resource could not be found.
Notice: Trying to get property of non-object in Drupal\mailchimp_campaign\Controller\MailchimpCampaignController->overview() (line 38 of /...../modules/mailchimp/modules/mailchimp_campaign/src/Controller/MailchimpCampaignController.php).
and after deleting the mailchimp_campaign it works fine !
Comments
Comment #2
thejimbirch commentedI was getting this error also. I was able to get rid of it by first going to the Uninstall Module page, and checking the Mailchimp Campaign module. The next screen says that you need to "Delete all Mailchimp campaign entities" first. I clicked that link, and removed the entities. Now the Campaign screen loads.
Comment #3
samuel.mortensonThis patch should help to raise the error in a more friendly way to users.
Comment #4
rjacobsen0 commentedI was not able to reproduce the problem, but I still like the patch as a nicer error message. Committing.
Comment #6
rjacobsen0 commented