IW 15.1.7 handlers randomic problem - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: IW 15.1.7 handlers randomic problem (/thread-1351.html) |
IW 15.1.7 handlers randomic problem - cprmlao@hotmail.com - 10-30-2019 With IW 15.1.17 I have a handler, a Form using a Html TemplateForm and a JS code used in document.ready(). I have in my app many handlers. In the local network and with amazon EC2 I am using WIFI with my home router. I am not using internet provider from mobile. I am having randomic "404 error" with "resource not found" when using the app with the chrome browser in my mobile and Amazon EC2 Server. Sometimes the Handler works, other times doesn´t work. When I tried debug I see it is trowing an error of "404 - resource not found", randomically. If I use the Chrome Desktop or my mobile with chrome connected with IW server installed in a PC in the local network, there is no problem. If I use the Chrome Desktop connected with IW server installed in Amazon EC2 , I have no problem. The problem only occur when using chrome browser of my cell phone and IW server in Amazon EC2. I have noted that the problem happens when I use the crome browser of my mobile. If I use the default browser of my mobile there is no problem. I have Android Oreo in the mobile and it is a recent Cell phone. So Chrome os updated in version 78.0.3904.62 What can be causing it? //IW Handler Code: function TContentAgenda.Execute(aRequest: THttpRequest; aReply: THttpReply; //JS code in html Template Form Code: <script> RE: IW 15.1.7 handlers randomic problem - kudzu - 10-30-2019 1) Set a log function (be sure to make sure its threadsafe) in your content handler and log the IP and browser as well. See if the browser is in fact requesting this content handler. 2) Add an exception handler to your content handler and return a message to see if there are errors ocurring during run. 3) Try adding a code based break in the JS https://stackoverflow.com/questions/10050465/how-to-set-a-javascript-breakpoint-from-code-in-chrome And then trace your ready function in the browser. 4) Grab the URL for the CH request after the session starts and paste it into a new tab in the same browser and see what the results are. RE: IW 15.1.7 handlers randomic problem - Alexandre Machado - 10-31-2019 Are you sure your application is receiving the request and dealing with it correctly? What happens if there is an exception inside your TContentHandler.Execute() method? I recommend that you turn on session logging (ServerController.LogSessionEvents) so you can check what's the exact request you are receiving from the mobile browser |