spatie / laravel-newsletter

Manage Mailcoach and MailChimp newsletters in Laravel
https://freek.dev/440-easily-integrate-mailchimp-in-laravel-5
MIT License
1.61k stars 235 forks source link

Request unsuccessful #97

Closed nrishoj closed 7 years ago

nrishoj commented 7 years ago

Hi,

Hope it is alright to post an issue.

I followed instructions as listed, but still it seems like there is no response.

dump(Newsletter::getApi()); gives me:

DrewM\MailChimp\MailChimp {#875
  -api_key: "[omitted]"
  -api_endpoint: "https://us14.api.mailchimp.com/3.0"
  +verify_ssl: true
  -request_successful: false
  -last_error: ""
  -last_response: array:2 [
    "headers" => null
    "body" => null
  ]
  -last_request: []
}

dump(Newsletter::getLastError()); gives me: false.

dump(Newsletter::subscribeOrUpdate('rincewind@discworld.com')); gives me: Could not find a default list named [omitted].

composer.json shows "spatie/laravel-newsletter": "^3.6" installed.

Both API, list ID and list name has been provided in config/laravel-newsletter.php.

At mailchimp.com, it seems that the request doesn't get through:

image

Please let me know, if you need additional information.

nrishoj commented 7 years ago

Found solution in #84.

In the config file change subscribers to Testlist