Getting [empty response] in both invalid and valid document deletion from firebase realtime databaseGet data from firebase realtime database in androidGoogleActions Account not linked yet errorDialogFlow Google Assistant Webhook Response: “Empty speech response”Dialogflow fails to parse the JSON response from my webhook seems to change character encodingdialogflow fullfilment and firebase response timeCustomized quick replies using Node.js Webook in Dialogflow v2Firebase realtime database validate child object in arrayHow to create Dialogflow login for users?Integrations skype and facebook messenger not responding with fulfillmenttextcMalformedResponse: Webhook error (206) whilst a seemingly valid webhook response - Actions on Google Dialogflow app in Node.js

Strong empirical falsification of quantum mechanics based on vacuum energy density

2.8 Why are collections grayed out? How can I open them?

Is this toilet slogan correct usage of the English language?

What is this called? Old film camera viewer?

Fear of getting stuck on one programming language / technology that is not used in my country

Lowest total scrabble score

If a character has darkvision, can they see through an area of nonmagical darkness filled with lightly obscuring gas?

What does chmod -u do?

Is the U.S. Code copyrighted by the Government?

L1 and Ln cache: when are they written?

What will be next at the bottom row and why?

Can I sign legal documents with a smiley face?

Why Shazam when there is already Superman?

250 Floor Tower

Not using 's' for he/she/it

Open a doc from terminal, but not by its name

Why can Carol Danvers change her suit colours in the first place?

Non-trope happy ending?

How to implement a feedback to keep the DC gain at zero for this conceptual passive filter?

Is there a RAID 0 Equivalent for RAM?

Store Credit Card Information in Password Manager?

Are paving bricks differently sized for sand bedding vs mortar bedding?

Why should universal income be universal?

Is it safe to use olive oil to clean the ear wax?



Getting [empty response] in both invalid and valid document deletion from firebase realtime database


Get data from firebase realtime database in androidGoogleActions Account not linked yet errorDialogFlow Google Assistant Webhook Response: “Empty speech response”Dialogflow fails to parse the JSON response from my webhook seems to change character encodingdialogflow fullfilment and firebase response timeCustomized quick replies using Node.js Webook in Dialogflow v2Firebase realtime database validate child object in arrayHow to create Dialogflow login for users?Integrations skype and facebook messenger not responding with fulfillmenttextcMalformedResponse: Webhook error (206) whilst a seemingly valid webhook response - Actions on Google Dialogflow app in Node.js













0















This code is in webhook fullfillment of the dialogflow inline editor. Either i am giving a valid ticket or invalid i am not getting the response on the output screen. But for correct ticket number i am able to delete it but unable to show the response to the user.



function delete(agent) 
let message=" ";
let usersRef = admin.database().ref('user/'+tick);

usersRef.orderByValue().on("value", function(snapshot)
console.log(snapshot.val());

if (snapshot.exists())
message = " Your Appointment is been cancelled";// This message i
// want to show for successful deletion to the user.
console.log("Deleted");
usersRef.remove();
else
console.log("Not Deleted");
message = " Invalid ticket number!! Please provide a valid one.";

);

agent.add(tick+ message);










share|improve this question









New contributor




Siddharth konar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    0















    This code is in webhook fullfillment of the dialogflow inline editor. Either i am giving a valid ticket or invalid i am not getting the response on the output screen. But for correct ticket number i am able to delete it but unable to show the response to the user.



    function delete(agent) 
    let message=" ";
    let usersRef = admin.database().ref('user/'+tick);

    usersRef.orderByValue().on("value", function(snapshot)
    console.log(snapshot.val());

    if (snapshot.exists())
    message = " Your Appointment is been cancelled";// This message i
    // want to show for successful deletion to the user.
    console.log("Deleted");
    usersRef.remove();
    else
    console.log("Not Deleted");
    message = " Invalid ticket number!! Please provide a valid one.";

    );

    agent.add(tick+ message);










    share|improve this question









    New contributor




    Siddharth konar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0


      1






      This code is in webhook fullfillment of the dialogflow inline editor. Either i am giving a valid ticket or invalid i am not getting the response on the output screen. But for correct ticket number i am able to delete it but unable to show the response to the user.



      function delete(agent) 
      let message=" ";
      let usersRef = admin.database().ref('user/'+tick);

      usersRef.orderByValue().on("value", function(snapshot)
      console.log(snapshot.val());

      if (snapshot.exists())
      message = " Your Appointment is been cancelled";// This message i
      // want to show for successful deletion to the user.
      console.log("Deleted");
      usersRef.remove();
      else
      console.log("Not Deleted");
      message = " Invalid ticket number!! Please provide a valid one.";

      );

      agent.add(tick+ message);










      share|improve this question









      New contributor




      Siddharth konar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      This code is in webhook fullfillment of the dialogflow inline editor. Either i am giving a valid ticket or invalid i am not getting the response on the output screen. But for correct ticket number i am able to delete it but unable to show the response to the user.



      function delete(agent) 
      let message=" ";
      let usersRef = admin.database().ref('user/'+tick);

      usersRef.orderByValue().on("value", function(snapshot)
      console.log(snapshot.val());

      if (snapshot.exists())
      message = " Your Appointment is been cancelled";// This message i
      // want to show for successful deletion to the user.
      console.log("Deleted");
      usersRef.remove();
      else
      console.log("Not Deleted");
      message = " Invalid ticket number!! Please provide a valid one.";

      );

      agent.add(tick+ message);







      node.js json






      share|improve this question









      New contributor




      Siddharth konar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Siddharth konar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 2 days ago









      Thom

      4911818




      4911818






      New contributor




      Siddharth konar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 days ago









      Siddharth konarSiddharth konar

      11




      11




      New contributor




      Siddharth konar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Siddharth konar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Siddharth konar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Siddharth konar is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55281219%2fgetting-empty-response-in-both-invalid-and-valid-document-deletion-from-fireba%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Siddharth konar is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Siddharth konar is a new contributor. Be nice, and check out our Code of Conduct.












          Siddharth konar is a new contributor. Be nice, and check out our Code of Conduct.











          Siddharth konar is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55281219%2fgetting-empty-response-in-both-invalid-and-valid-document-deletion-from-fireba%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript