ForumCategory: QuestionsAgent Workspace Widget SDK: “Cannot set consumer profile without data”
Christian James asked 49 years ago

Hello – I am using setConsumerProfile as outlined here: 
https://developers.liveperson.com/agent-workspace-sdk-methods.html#setconsumerprofile
It was working just fine over the past week, but all of a sudden all requests are met with: 

Error: Cannot set consumer profile without data
at k.I (client-SDK.min.js:2)
at k.<anonymous> (client-SDK.min.js:2)
at f.<anonymous> (client-SDK.min.js:2)

 
There’s no documentation on what this error means. I know set consumer profile is in v1.0 but how can I overcome this error?

Christian James replied 4 months ago

Update – it changed to simply say
{error: “Unexpected error”}
Is anyone else seeing this issue?

Christian James replied 3 months ago

Bump. Still see the same non-descriptive error.

2 Answers
Christian James answered 3 months ago

Bump. Still see the same non-descriptive error.

Christian James answered 3 months ago

I found out the cause of the error. It is when there are any null value element in the consumerProfile json. Might want to update the documentation to specify causes for this \”unexpected error\”

Mark Manguno Staff replied 2 weeks ago

Thanks for identifying this issue @Christian James, I’ll see to it that the documentation is updated.