Problem with debug option (UI)

  • function is created and working properly
  • debugging option too check marked
  • function deployed

but while clicking “debug” the popup window open with "----------------- [copy] " but that never get active

@boby You need to cause a mutation in the source bucket of the handler to get a valid URL in the popup window. Once you get it, copy the URL and open it in a separate chrome browser tab. Could you please confirm if you did this step? If yes, please share the Couchbase version you are using?

@jeelan.poola

thank you ,i have missed the mutation part ,
can you please say steps to do mutation for source bucket


function OnUpdate(doc, meta) {
if(doc[“Designation”]== null && doc[“type”]==‘Employee’){
st_target[meta.id]=doc;
}

}
… my function

You can simply edit a document (through UI or SDK) in the source bucket.

@jeelan.poola

deployed function

function OnUpdate(doc, meta) {
if(doc[“Designation”]== null && doc[“type”]==‘Employee’){
st_target[meta.id]=doc;
}

}

current document in source bucket

{“designation”:“WebDeveloper”,“id”:“id1001”,“name”:“Chloe Smith”,“projects”:[“HEO-ESD Integration”,“Europa”],“salary”:7500,“type”:“Employee”}

edited in ui to :

{“designation”:“UI Developer”,“id”:“id1001”,“name”:“Chloe Smith”,“projects”:[“HEO-ESD Integration”,“Europa”],“salary”:8000,“type”:“Employee”}

but still its not active and didnt come any ur’l. "----------------- [copy] "

please help me out

Please keep your eventing debug session on, waiting for URL to get populated. Open a different tab to modify a document in the source bucket. This should populate the URL. Please let us know.

1 Like

@faiz.veettil

tq so much … it worked perfectly :yum: :yum: :yum: :yum: :yum: