Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Simulator showing "My Test App isn't responding right now. Try again soon" when I run "Talk to My Test App"

I started a new new app with actions on google and when I run the simulator I'm receiving this message "My Test App isn't responding right now. Try again soon".

I am using firebase to deploy my fulfilment which looks like this

const functions = require("firebase-functions");
const App = require("actions-on-google").DialogflowApp;
const firebase = require("firebase");
const firebaseAdmin = require("firebase-admin");

firebaseAdmin.initializeApp(functions.config().firebase);

exports.cabDemo = functions.https.onRequest((request, response) => {
  const app = new App({ request, response });

  const BOOK_TAXI = "book.taxi";
  debugger;
  function bookTaxi(app) {
    app.ask("Currently looking for taxis now. Anything else?");
  }

  const actionMap = new Map();    
  actionMap.set(BOOK_TAXI, bookTaxi);
  app.handleRequest(actionMap);
});

I have tested this and it deployed correctly yesterday and when I tried to run it this morning it gave me that not responding message. It still deploys correctly but I cannot test it on the simulator.

I have the actions on google project and api.ai projects linked properly so I don't think this is the problem. But I could easily be wrong.

The response from the web simulator is

{
  "audioResponse": "//NExAARsE...",
  "conversationToken": "GidzaW11bG...",
  "response": "Cabforce demo isn't responding right now. Try again soon.",
  "visualResponse": {
    "visualElements": []
  }
}

and the DEBUG message is:

{
  "agentToAssistantDebug": {},
  "assistantToAgentDebug": {}
}

This is a duplicate of another question on Stack Overflow => here

There was no solution so I had to repost the question.

I'm receiving the same response and debug message.

All help would be great, thanks !

like image 529
user3328281 Avatar asked Dec 19 '17 14:12

user3328281


1 Answers

Ok, I may have stumbled on a fix. It looks like you can now trigger test apps by their name.

  1. Go to https://console.actions.google.com
  2. Select your app
  3. Click Edit under "App Information" (#2)
  4. Give the app a name and pronunciation
  5. Click "Test Draft" (at the bottom)
  6. Invoke the app by name

Hope that works for you. Seemed to work for me.

like image 84
Walker Avatar answered Nov 01 '22 10:11

Walker