Google actions node - Invalid dialog state - google-app-engine

Using the node.js SDK to create Google Home actions.
First version works fine, but with identical code just new Google project I get
actions-on-google:debug handleError_: text=Invalid dialog state
coming out of this code:
let inputPrompt = assistant.buildInputPrompt(true, speechOutput,[repromptNoMatch],[repromptNoResponse]);
assistant.ask(inputPrompt, [{'intent': RAW_INTENT}]);
The exact same code works on a different Google Project.
In the working project the debug output looks like this:
debug ask: inputPrompt=[object Object], dialogState=undefined
In the not working project it looks like this:
debug ask: inputPrompt=[object Object], dialogState=[object Object]
eventhough the object is an empty obejct!
Re-deploying is not fixing the issue - which startles me.
There seems also no way to "reset" the dialog state!

new version of ask now doesn't support expected intents anymore

Related

Cannot see my variables in console while debuging react app on production

I am new to the react world and trying to use it in my sharepoint environment. I am packaging the app for production with source maps and upload it to the sharepoint site that I will use it in. App runs without a problem in the sharepoint but in the developer toolbox I cannot debug it completely. I can see my js file, put the debug point, and it pauses on the point but I cannot see the variables in console as you can see in the screenshot below.
But if I try the same code in dev environment with npm start I can see the same variable in console without any problem.
Is this normal behavior or am I doing something wrong? Thanks a lot.

IMX6 + webengine doesn't display latest website state, why?

I've written a simple website in html, css, js. No error and everything display's fine in the chromium desktop version.
The problem is, that i would like to display it on the IMX6 Solo + webengine.
For developing reason's i used Apache2 and just did something like ./webengine http://172.XX.XX.XXX/index.html for the IMX.
At first it worked absolutely fine, but if i would like to change something in my website code and try to refresh it on the IMX6, then nothing new happens. It still show's the old version of the website.
In chromium everything that i code new appears .. but not on the IMX.
Does anyone know why?
It's the browser-cache.
Solved the problem by manually clearing it.

View Engine (ViewNotFoundException) Error using Nancy

I am trying to use View Engine to return an HTML page in my window application. URL gets called but when i try to return a View, i get ViewNotFoundException error.
In an error message, I cant see the extensions available and locations inspected but i still get an error as Below:
Nancy.RequestExecutionException: Oh noes! ---> Nancy.ViewEngines.ViewNotFoundException: Unable to locate view 'test' Currently available view engine extensions: sshtml,html,htm,cshtml,vbhtml
I have checked the Demo project on git and it works fine but that's a web project whereas mine is window service (i might be missing something). Has anyone tried to implement View Engine in windows service and got it working.
Error is quite self-explanatory but i cant seems to get my head around where the test file should go for it to work.
Edit:
Nancy version: 1.4.2
I tried var foo = typeof(RazorViewEngine); and it does return all the View Engine values with locations inspected and all that.
My Project structure is:
Modules
---- myModule.cs
Views
---- Test.cshtml
views/test is in locations inspected but it looks like, its looking somewhere instead of my structure.
Thanks in advance

debug react native app from chrome on windows machine

I started exploring react-native. One thing which I want is should able to debug my app from chrome. I am having prior experience to cordova. Cordova renders app in chrome web view. I understand that with react-native it is not possible because react-native doesn't render app on web view.
There is an option react-native "debug in chrome". When I click this option, attached screenshot is getting opened. I enabled "pause on exception."
But nothing is happening. I am unable to see my app code at all.
I like to do step by step debugging. Is it possible? If so can some one tell how to do this?
You can definitely examine the source code, set breakpoints, etc in Chrome.
In the Sources menu, select debuggerWorker.js and then you should be able to see your project tree.
Any console.log in your code will print to the browser too. But I find the breakpoint inspection most helpful.
this is simple as you were doing in cordova.
try to put debugger; statement in your code while in debug mode.
It will set the breakpoint and you can then debug your application. No need to find out your files in debuggerWorker.js

Xilium.CefGlue in Winforms application not working properly with ogg

I'm trying to integrate the Xilium.CefGlue browser into an existing project, but i don't seem to get it working with ogg. I'm using the latest versions of the Xilium.CefGlue(xilium-xilium.cefglue-3caa551bd830) and the Cef binary (cef_binary_3.1384.1045). Everything works great when running the projects in the Xilium.CefGlue solution.
To make sure the problem is not caused by my other project, i started a new Winforms project, added references to Xilium.CefGlue.dll, Xilium.CefGlue.Demo.dll and Xilium.CefGlue.WindowsForms.dll. I use the same code in my Program.cs file as used in CefGlue.Client project in the examples, and in my form i create a new CefBrowser and add it directly to my controls. I also placed the needed ceflib files in the correct location.
Now, when running the application and loading a webpage, everything seems to hang unless i change the SingleProcess to true in the CefSettings in my Program.cs. However, when loading another page which contains html5 video (ogg), the page is not getting rendered. I do notice that the interaction is there, because i can start the video by clicking in the center of the page where a button should be located. I can hear the video playing, but the page simply stays blank.
Loading the same page in the CefGlue.Client does work like it should. Now, when i change the setting SingleProcess to true in the example project CefGlue.client, the same thing occurs, so i guess it must have something to do with this.
Anyone got any ideas on what is going wrong?
Thanks,
Andy
Found the answer somewhere else by Sébastien Frippiat:
it seems that using SingleProcess=false doesn't work when debugging with Visual Studio (should be related to Visual Studio using a executable called project_exe.vshost.exe instead of project_exe.exe).
So i changed my CefSettings to this:
var settings = new CefSettings
{
BrowserSubprocessPath = #"C:\CefGlueBrowser\CefGlueBrowser\bin\x86\Debug\CefGlueBrowser.exe",
SingleProcess = false,
MultiThreadedMessageLoop = true,
LogSeverity = CefLogSeverity.Default,
LogFile = "CefGlue.log",
};
That seems to fix it for debugging.
Just disable Visual Studio Hosting Process and you wont have problem for debugging
http://msdn.microsoft.com/en-us/library/ms185330(v=vs.80).aspx

Resources