最近の検索


最近の検索はありません

client.set({vixitor.xx:yy}) sometimes fail to update in Chat sidebar



投稿日時:2022年9月29日

I implemented APP to update visitor information once chat is opened.

It worked in my environment but it sometimes fails to update some field in some customers environment. Not sure what's the conditions..

Here is the source code:

client.set({
  'visitor.name': 'aaa',
  'visitor.email': 'bbb',
  'visitor.phone': 'ccc',
  'visitor.notes': 'ddd'
 }).then(function (result) {
   console.log('result:' + JSON.stringify(result));
 });

Here is sample error:

{
   "errors":{
      "visitor.name":{
         "id":"13221074.1CClGKVmCEMmTJx",
         "__status":"failed",
         "path":"visitor.name"
      },
      "visitor.phone":{
         "id":"13221074.1CClGKVmCEMmTJx",
         "__status":"failed",
         "path":"visitor.phone"
      }
   },
   "visitor.notes":"ddd",
   "visitor.email":"bbb"
}

The fields which is failed to update are not fixed.

Sometimes only notes, sometimes success.

 

Before calling client.set(), APP calls client.get(visitor) to fetch visitor's information and 100% success, which means client itself works correctly.

Kindly give me some advice to avoid the errors.

Thank you


0

1

1件のコメント

image avatar

Tipene Hughes

Zendesk Developer Advocacy

Hi Yusuke,
 
Sorry for the delay in getting back to you!
 
Just checking in to see if you're still experiencing this issue? If so, let me know and I can take a look in more detail.
 
Thanks,
 
Tipene

0


サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿