It is the primary "id" of model
"satchmo_store.contact.models.Contact". It is strange. First verify
that you have no very very old psycopg 2:
   http://initd.org/projects/psycopg2
(The new use insert and get ID together by the same sql command. If it
is ok or high concurrent save requests are not possible, try the
following)

Apply following logging patch http://dpaste.com/hold/726917/,
reproduce the bug and send the traceback.

--Hy

On 4 dub, 13:23, Pablo Casado <[email protected]> wrote:
> Hi guys,
>
> I've just received a weird error while processing one real payment. It 
> firstly appeared with a real customer and, then, several times while testing
>
> Here you are:
>
> IntegrityError: duplicate key value violates unique constraint 
> “contact_contact_pkey”
>
> <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'city': [u'Barcelona'], 
> u'first_name': [u'Pablo'], u'last_name': [u'Casado Arias'], u'ship_state': 
> [u'State/Province'], u'ship_city': [u'Barcelona'], u'ship_postal_code': 
> [u'08019'], u'street1': [u'test address'], u'street2': [u''], u'discount': 
> [u''], u'ship_street1': [u'test address'], u'ship_country': [u'204'], 
> u'phone': [u'34690916113'], u'state': [u'State/Province'], u'addressee': 
> [u'Pablo Casado Arias'], u'postal_code': [u'08019'], u'ship_addressee': 
> [u'Pablo Casado Arias'], u'country': [u'204'], u'csrfmiddlewaretoken': 
> [u'822739603dd066c1499ec54ab6551cc8'], u'paymentmethod': [u'SERMEPA'], 
> u'email': [u'[email protected]'], u'ship_street2': [u'']}>, 
> COOKIES:{'__qca': ‘P0-995953257-1333534009973’,
>
> On postgreSQL log the following information appeared:
>
> 2012-04-04 06:38:22 EDT ERROR:  duplicate key value violates unique 
> constraint "contact_contact_pkey"
> 2012-04-04 06:38:22 EDT STATEMENT:  INSERT INTO "contact_contact" ("title", 
> "first_name", "last_name", "user_id", "role_id", "organization_id", "dob", 
> "email", "notes", "create_date") VALUES (E'', E'Pablo', E'Casado Arias', 
> NULL, E'Customer', NULL, NULL, E'[email protected]', E'', 
> E'2012-04-04')
>
> No additional information on apache error log or satchmo.log
>
> Any ideas?
>
> Pablo Casado
> ---
> [email protected]
> @hardlifeofapo
> Skype: p.casado

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to