JMAConsulting / biz.jmaconsulting.mte

Mandrill Emails Extension for CiviCRM
10 stars 21 forks source link

Webhook and resource URL clarity #71

Closed RowboTony closed 9 years ago

RowboTony commented 9 years ago

Hello, similar to this issue - JMAConsulting/biz.jmaconsulting.mte/issues/7, but I am using version 1.4 of the extension.

I'm getting the webhook 404 error as well with Drupal & CiviCRM. I am sure I just don't have the path typed correctly, but I'm honestly quite confused on what the resource URL should be, as well as exactly what the callback "Post to URL" Mandrill dashboard is supposed to be:

Error: POST to https://www.fppoa.org/civicrm/ajax/mte/callback?mandrillSecret=123mysecretwhatever12
![fppoa-civicrm-mandrill-wtf](https://cloud.githubusercontent.com/assets/914143/5347329/fe2012d2-7eec-11e4-8c46-f660dcbb0847.png)
 failed with 404: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /civicrm/ajax/mte/callback was not found on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html> 

I'm sure it's a simple fix if someone can guide me please. I just don't understand if the "Post To URL" is supposed to point to the civicrm extension directory, or the /civicrm URL path. The URL is mysite.com/civicrm/ but the path is http://mysite.com/sites/all/modules/civicrm (or in my case) http://mysite.com/sites/all/modules/civicrm.

The message is on the page is somewhat confusing to me as well - it says "this should match the CiviCRM extension directoy", so then it shows the full path to the root of the file system. So should it be http://mysite.com/sites/all/modules/civicrm_extensions? I have tried all of the combinations I can think of, and it either returns a 404 or we can't verify that URL exists from the Mandrill dashboard, so that's why I have to ask for help at this point.

fppoa-civicrm-mandrill-wtf

Thank you, --Tony

pradpnayak commented 9 years ago

@tgroff the url(https://www.fppoa.org/civicrm/ajax/mte/callback?mandrillSecret=123mysecretwhatever12) mentioned in your post seems to work for me when i try to configure webhook using my account in https://mandrillapp.com. I tried running from command line using CURL, I didn't get 404 error nor we can't verify that URL exists. The 'Post to URL' is right and the extension resource url is pointing to correct directory. Note, when trying to configure a webhook in Mandrillapp the extension(biz.jmaconsulting.mte) should be enabled.

We are in a process of releasing 1.5 version, if you could try updating the extension (https://github.com/JMAConsulting/biz.jmaconsulting.mte/archive/v1.5.zip) and try configuring the webhook.

RowboTony commented 9 years ago

Thank you for the quick response! Yes, it seems that today I have no errors on my Mandrill dashboard, and everything is working properly. I can only reason that, perhaps the error I was seeing yesterday was not a real-time error. My site was down for maintenance and upgrade for about 24 hours, aowhen I re-launched the new site it must have taken some time for the Mandrill dashboard to catch up after running the first CiviCRM cron jobs. I have been using this extension for at least 1 year or longer without any issues previously. All is well now. Thank you again for your help, cased closed!