json.type.invalid error

PaulS3090
Participant

json.type.invalid error

I am using the standard wordpress plugin for Constant Contact 1.10.1.  This a very simple form requiring the email addr, first and last names and only allowing join of a single list but this fails with debug logging below. I initially ran into a bug involving the plugin not populating the "Associated List" properly but did the resync work around to fix it. When I run it from my web site, it appears to work (to the user) and displays the "Success Message" but the user isn't added to my contact list. Instead I get the error below.  Is this a well known bug? The parser seems to complain about the lists not being a valid type but my simple understanding of the JSON shows it as Array which is an allowed type.  Help?

 

[2021-03-21 17:52:48] API.INFO: Contact set to be created ["Extra information",[{"form":"Join Our Newsletter"}]] []
[2021-03-21 17:52:48] API.INFO: ConstantContact_API::add_contact:527 - json.type.invalid - #/lists: Value is of a disallowed type. Allowed types are: Array, Null. [] []
[2021-03-21 17:52:48] API.INFO: Submitted contact data ["Extra information",[{"email___3c59495a3edf2d27cd20fc1987544522":{"key":"email","val":"***@xylem.com"},"email":"***@xylem.com","first_name___7e7a6eef7e0a3734f39d6757b27d474b":{"key":"first_name","val":"PJ"},"last_name___86b6d953df0fd1bff8e02cde526c2b3c":{"key":"last_name","val":"Sang"},"lists___be1f5d4d2510bc1e5729aa31aea09e83":{"key":"lists","val":"Array"},"list":["1979379054"]}]] []

1 REPLY 1
PaulS3090
Participant

This is still not working and I called the customer support and they suggested I do what I had already done (reconnect, sync...) and if that does not work to post here. Help!!!??

 

Developer Portal

View API documentation, code samples, get your API key.

Visit Page