Yeah, I know. More IPN confusion.
The PayPal tool is telling me that there's an internal server error (500) at my IPN. It's not the database rebuild--I did that--and it's not the development server, as I have my development server on RackSpace.
(1) SSL is not enabled on my development server, but I expect that this is not the issue because setting the IPN endpoint to https://... leads to "IPN delivery failed. Unable to connect to the specified URL. Please verify the URL and try again." but taking out the s leads to "IPN delivery failed. HTTP error code 500: Internal Server Error."
(2) Could it be my urls? It looks something like:
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^blah_blah_blah/$', blah_blah_blah),
(r'^ipn_endpoint/$', include('paypal.standard.ipn.urls')),
)
If it were, I'd expect it to throw a 404...
(3) The error I'm getting in my Apache error log is:
[Mon Jun 20 03:17:39 2011] [error] [client 216.113.191.33] mod_wsgi (pid=9136): Exception occurred processing WSGI script '/path/to/my/wsgi/config.wsgi'.
[Mon Jun 20 03:17:39 2011] [error] [client 216.113.191.33] IOError: failed to write data
(4) Installed Apps include INSTALLED_APPS = (
'paypal.standard',
'paypal.standard.ipn',
...
)
(5) python manage.py test ipn actually did pass once, but usually fails. When it fails:
======================================================================
FAIL: test_duplicate_txn_id (paypal.standard.ipn.tests.test_ipn.IPNTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django_paypal-0.1.2-py2.6.egg/paypal/standard/ipn/tests/test_ipn.py", line 124, in test_duplicate_txn_id
self.assertEqual(ipn_obj.flag, True)
AssertionError: False != True
----------------------------------------------------------------------
I have no idea why it would have passed that one time. Any idea what this means or how I can remedy this?
Thanks so much for your help.
Best,
Nick