{"action":"created","issue":{"url":"https://api.github.com/repos/anymail/django-anymail/issues/69","repository_url":"https://api.github.com/repos/anymail/django-anymail","labels_url":"https://api.github.com/repos/anymail/django-anymail/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/anymail/django-anymail/issues/69/comments","events_url":"https://api.github.com/repos/anymail/django-anymail/issues/69/events","html_url":"https://github.com/anymail/django-anymail/issues/69","id":239633033,"node_id":"MDU6SXNzdWUyMzk2MzMwMzM=","number":69,"title":"Missing or invalid basic auth in Anymail Mailgun webhook","user":{"login":"pymarco","id":4700618,"node_id":"MDQ6VXNlcjQ3MDA2MTg=","avatar_url":"https://avatars2.githubusercontent.com/u/4700618?v=4","gravatar_id":"","url":"https://api.github.com/users/pymarco","html_url":"https://github.com/pymarco","followers_url":"https://api.github.com/users/pymarco/followers","following_url":"https://api.github.com/users/pymarco/following{/other_user}","gists_url":"https://api.github.com/users/pymarco/gists{/gist_id}","starred_url":"https://api.github.com/users/pymarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pymarco/subscriptions","organizations_url":"https://api.github.com/users/pymarco/orgs","repos_url":"https://api.github.com/users/pymarco/repos","events_url":"https://api.github.com/users/pymarco/events{/privacy}","received_events_url":"https://api.github.com/users/pymarco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-29T22:52:00Z","updated_at":"2018-08-02T18:02:23Z","closed_at":"2017-06-30T16:41:29Z","author_association":"NONE","body":"Thank you for maintaining Anymail, it is really great so far.\r\n\r\nI am trying to receive a webhook from Mailgun but I get an error.\r\n\r\n    \"Missing or invalid basic auth in Anymail Mailgun webhook\"\r\n\r\n\r\nAnymail is configured correctly, and I have been sending email through Mailgun for about a week.\r\n\r\n    ANYMAIL = {\r\n        \"MAILGUN_API_KEY\": Env.value(\"MAILGUN_API_KEY\"),\r\n        \"MAILGUN_SENDER_DOMAIN\": Env.value(\"MAILGUN_SENDER_DOMAIN\"),\r\n        \"WEBHOOK_AUTHORIZATION\": Env.value(\"ANYMAIL_WEBHOOK_AUTHORIZATION\"),\r\n    }\r\n\r\nToday I added the \"WEBHOOK_AUTHORIZATION\" setting. Currently I am testing this feature on our dev environment. Therefore, the Mailgun sender domain is my Mailgun sandbox domain.\r\n\r\nI set the Mailgun \"Unsubscribes\" web hook to the url defined in the Anymail documentation.\r\n\r\n    https://secret1:secret2@dev.mysite.com/anymail/mailgun/tracking/\r\n\r\nAnd in my urls.py\r\n\r\n    url(\r\n        r'^anymail/',\r\n        include('anymail.urls')\r\n    ),\r\n\r\nWhen I receive an email and click the unsubscribe link, a POST is made to my server, but I get the error listed above.\r\n\r\n\r\nFor what it's worth, I am hosting my site on Webfaction using Apache.\r\n\r\n\r\nI found a nearly identical issue on Stackoverflow, but no answer provided. \r\nhttps://stackoverflow.com/questions/38620608/django-anymail-mailgun-webhook-no-http-authorization-in-meta\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/anymail/django-anymail/issues/comments/410016080","html_url":"https://github.com/anymail/django-anymail/issues/69#issuecomment-410016080","issue_url":"https://api.github.com/repos/anymail/django-anymail/issues/69","id":410016080,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDAxNjA4MA==","user":{"login":"looeee","id":5307958,"node_id":"MDQ6VXNlcjUzMDc5NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/5307958?v=4","gravatar_id":"","url":"https://api.github.com/users/looeee","html_url":"https://github.com/looeee","followers_url":"https://api.github.com/users/looeee/followers","following_url":"https://api.github.com/users/looeee/following{/other_user}","gists_url":"https://api.github.com/users/looeee/gists{/gist_id}","starred_url":"https://api.github.com/users/looeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/looeee/subscriptions","organizations_url":"https://api.github.com/users/looeee/orgs","repos_url":"https://api.github.com/users/looeee/repos","events_url":"https://api.github.com/users/looeee/events{/privacy}","received_events_url":"https://api.github.com/users/looeee/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T18:02:23Z","updated_at":"2018-08-02T18:02:23Z","author_association":"NONE","body":"@medmunds thanks for the response. I must have tried about a hundred variations on that solution by now though, and always get one of two errors - either I get a \"Missing or invalid basic auth\" or I get an NGINX 404 page (not my site's 404, just the basic NGINX page). \r\n\r\nIn the case of the 404 page, my logs say: \"./html/anymail/mailgun/tracking/index.html\" is not found (2: No such file or directory)\" "}}
{"actor":{"display_login":"looeee"}}