yodlee - IllegalArgumentValueException calling addSiteAccount1 -
i not having success getting addsiteaccount1
api work. using .net, don't believe has issue. seems missing in request, have read documentation , other posts, can't figure out might missing.
here request (captured fiddler):
cobsessiontoken <<removed>> usersessiontoken <<removed>> siteid 2852 credentialfields[1].valuemask login_field credentialfields[1].valueidentifier password credentialfields[1].value <<removed>> credentialfields[1].size 20 credentialfields[1].name password credentialfields[1].maxlength 20 credentialfields[1].isoptionalmfa false credentialfields[1].isoptional false credentialfields[1].ismfa false credentialfields[1].isescaped false credentialfields[1].iseditable true credentialfields[1].helptext 5372 credentialfields[1].fieldtype.typename if_password credentialfields[1].fieldinfotype com.yodlee.common.fieldinfosingle credentialfields[1].displayname passcode credentialfields[0].valuemask login_field credentialfields[0].valueidentifier login credentialfields[0].value <<removed>> credentialfields[0].size 20 credentialfields[0].name login credentialfields[0].maxlength 40 credentialfields[0].isoptionalmfa false credentialfields[0].isoptional false credentialfields[0].ismfa false credentialfields[0].isescaped false credentialfields[0].iseditable true credentialfields[0].helptext 5371 credentialfields[0].fieldtype.typename if_login credentialfields[0].fieldinfotype com.yodlee.common.fieldinfosingle credentialfields[0].displayname online id
this response:
http/1.1 200 ok x-powered-by: unknown yodlee-ref-id: q1464831683738d12w27t set-cookie: jsessionid=6e8cf7da66e80b567118af1956589519; path=/services; secure content-type: application/json transfer-encoding: chunked date: thu, 02 jun 2016 01:41:22 gmt server: unknown {"erroroccurred":"true","exceptiontype":"com.yodlee.core.illegalargumentvalueexception","referencecode":"_54f9c9b6-60f9-49d9-8aa6-43542d7ec598","message":"null argument specified"}
i have tried suggested answer (removing fieldinfotype
, adding enclosedtype
):
cobsessiontoken <<removed>> usersessiontoken <<removed>> siteid 2852 credentialfields.enclosedtype com.yodlee.common.fieldinfosingle credentialfields[0].displayname online id credentialfields[0].fieldtype.typename if_login credentialfields[0].helptext 5371 credentialfields[0].maxlength 40 credentialfields[0].name login credentialfields[0].size 20 credentialfields[0].value <<removed>> credentialfields[0].valueidentifier login credentialfields[0].valuemask login_field credentialfields[0].iseditable true credentialfields[0].isoptional false credentialfields[0].isescaped false credentialfields[0].isoptionalmfa false credentialfields[0].ismfa false credentialfields[1].displayname passcode credentialfields[1].fieldtype.typename if_password credentialfields[1].helptext 5372 credentialfields[1].maxlength 20 credentialfields[1].name password credentialfields[1].size 20 credentialfields[1].value <<removed>> credentialfields[1].valueidentifier password credentialfields[1].valuemask login_field credentialfields[1].iseditable true credentialfields[1].isoptional false credentialfields[1].isescaped false credentialfields[1].isoptionalmfa false credentialfields[1].ismfa false
this response:
http/1.1 200 ok x-powered-by: unknown yodlee-ref-id: q1465437863468f12c27s set-cookie: jsessionid=3600322ef154e726209c217844ff935e; path=/services; secure content-type: application/json transfer-encoding: chunked date: thu, 09 jun 2016 02:04:22 gmt server: unknown {"erroroccurred":"true","exceptiontype":"com.yodlee.core.incompleteargumentexception","referencecode":"_418a82c7-90b9-4a1f-8aad-87ba16cfbb67","message":"incomplete argument: fieldinfosingle: {fieldinfo: name=\"null\" displayname=\"null\" editable=false optional=false helptext=\"null\" valuepattern=\"null\" } defaultvalue=\"null\" value=\"null\" validvalues=[null] displayvalidvalues=[null] valueidentifier=\"null\" valuemask=\"null\" fieldtype=\"null\" validationrules=[null] size=null maxlength=null userprofilemappingexpression=null fielderrorcode=null fielderrormessage=null "}
i can tell null argument might be...
add in login form
credentialfields.enclosedtype com.yodlee.common.fieldinfosingle
instead of
credentialfields[1].fieldinfotype com.yodlee.common.fieldinfosingle credentialfields[0].fieldinfotype com.yodlee.common.fieldinfosingle
hope helps.