veda-consulting-company / uk.co.vedaconsulting.mailchimp

Other
22 stars 43 forks source link

Webhook URL can't be Verified #264

Open KicknGuitar opened 7 years ago

KicknGuitar commented 7 years ago

I'm having trouble with creating a Mailchimp webhook and I'm unfamiliar with how to troubleshoot this any further.

The API key and callback info is correct but when attempting to create the webhook Mailchimp says,

We couldn't verify the URL is working. Please double check and try again. HTTP Code: 500

In using web-sniffer I get the following result:

Connect to 198.27.70.84 on port 443 ... ok

GET /tbe/civicrm?page=CiviCRM&q=civicrm%2Fmailchimp%2Fwebhook&reset=1&key=kasfBgoASBcb HTTP/1.1[CRLF] Host: yourshulbythesea.org[CRLF] Connection: close[CRLF] User-Agent: Web-sniffer/1.1.0 (+http://web-sniffer.net/)[CRLF] Accept-Encoding: gzip[CRLF] Accept-Charset: ISO-8859-1,UTF-8;q=0.7,*;q=0.7[CRLF] Cache-Control: no-cache[CRLF] Accept-Language: de,en;q=0.7,en-us;q=0.3[CRLF] Referer: http://web-sniffer.net/[CRLF]

The site's webhook URL and details: https://yourshulbythesea.org/tbe/civicrm?page=CiviCRM&q=civicrm/mailchimp/webhook&reset=1&key=kasfBgoASBcb Wordpress 4.7.2 CiviCRM 4.7.16 CiviCRM Mailchimp Extension 2.0

Any idea how to troubleshoot this further?

thomasbacon commented 7 years ago

I just wanted to note that I'm having this exact issue on the same version of WordPress, CiviCRM, and Mailchimp extension as @KicknGuitar.

I also tried this with a default theme and no plugins enabled. We're running PHP 7 and MySQL 5.7.16 for CiviCRM as well. I'm going to continue testing and see what I can find. Nothing in error logs and the webhook URL seems to function correctly in the browser.

Kajakaran commented 7 years ago

@KicknGuitar @thomasbacon

Could you check 'allow webhook posts' permission is granted to anonymous role?

Thanks Kajan

thomasbacon commented 7 years ago

@Kajakaran, duh, yes, that was the issue for me. Thanks!

KicknGuitar commented 7 years ago

Many thanks for replying (and in both places) This did it.

Did I miss the instructions to enable that permission?

zkrebs commented 7 years ago

Solved - simple

michaelmcandrew commented 7 years ago

Did I miss the instructions to enable that permission?

No - they didn't exist. I have just edited the readme here: https://github.com/veda-consulting/uk.co.vedaconsulting.mailchimp/pull/281

rmniemela commented 6 years ago

Am having this same problem, but I've set the webhook permissions to all users because setting only to anonymous gets the same 500 error. Is there another permission I should be setting in civicrm to allow the webhook permission to work properly? At Mailchimp I get:

We couldn't verify the URL is working. Please double check and try again. HTTP Code: 500

In Civicrm, the errors I'm getting when I test the API key is:

CiviCRM group "Mailchimp" (Mailchimp list 221a7178cd): Need to create a webhook at Mailchimp.

Following is the account information received from API callback: Account Name: sudburycyclistsunion
Account Email: info@sudburycyclistsunion.ca

Mailchimp WebHook URL requires 'allow webhook posts' permission to be set for any user roles.

rmniemela commented 6 years ago

Additional information. In the Civicrm smartgroup that I created to sync with Mailchimp, I checked: Ensure list's webhook settings are correct at Mailchimp when saved.

When saving the group, I get the messages:

x Group Saved The Group 'Mailchimp' has been saved.

Created a webhook at Mailchimp

Problems updating or fetching from Mailchimp. Please manually check the configuration. Mailchimp API said: Invalid Resource (The resource submitted could not be validated. For field-specific details, see the 'errors' array.)

Running Wordpress 4.9.1 Civicrm 4.7.27 CiviCRM Mailchimp Extension 2.0.1

ghost commented 3 years ago

Was this ever resolved by anyone? We are experiencing the same issue.