Web Connection
Application returned no output to webserver
Gravatar is a globally recognized avatar based on your email address. Application returned no output to webserver
  fredkarm
  All
  Feb 21, 2018 @ 09:20pm

I enter information in a web page, and the submit button runs an action command to process a function. Even though the last line of the function has =this.errormsg('Order submitter'), and I know it gets to this line (there is a wait 'Order submitted' window just before it, I get the message 'Application returned no output to web server'.. Is this because I need to send a http header (what is the syntax for that). I have a lot of =this.errormsg('mymessage') in the rest of the app and hardly ever get this error.

Gravatar is a globally recognized avatar based on your email address. re: Application returned no output to webserver
  Rick Strahl
  fredkarm
  Feb 22, 2018 @ 11:38am

If there's an error the response is reset and an error message is created. I suspect you're upgrading from an old version (or you did?) In that case you need to make sure the error handling code doesn't have an error in it because an error in there will cause a blank request. Basically if you are handling.

The best thing to do is step through the code in the wwProcess::Process() method and look for THIS.RouteRequest() then trace and see if it hits the exception handler. Set a breakpoint in the CATCH and see step through to see what happens when an error occurs.

If you had an old version of Web Connection you likely have an Error() method in your process class which overrides the TRY/CATCH behavior of the newer versions and so bypasses the proper error handling. Remove the Error() method and move whatever code you had there into OnError().

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Application returned no output to webserver
  fredkarm
  fredkarm
  Feb 22, 2018 @ 07:31pm

All I need to display is a message after the application is submitted. Can I do this with a sendln.response .. I think I need to clear the htm page first otherwise it wont show on the screen. Or an expandscript ..

Gravatar is a globally recognized avatar based on your email address. re: Application returned no output to webserver
  Rick Strahl
  fredkarm
  Feb 22, 2018 @ 11:50pm

I don't think you understand what I'm saying 😃

You need to make sure your output isn't failing somewhere. Most likely you have an error somewhere and your error handler is causing the blank response because it's not doing the right thing for the newer version of Web Connection.

The only way to know for sure is to step through the code that's failing and check exactly where the code is going. My bet is it hits an Error method which then results in no output.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Application returned no output to webserver
  fredkarm
  Rick Strahl
  Feb 23, 2018 @ 06:36pm

Just surprised that no error shows up until the last line .. and then it has the 'Web application returned no output to webserver'. Guess there is no other way to then step through, but what am I looking for? There is no foxpo error in that it is simply a web page that takes into, does some valaidation and puts the info in a file

Gravatar is a globally recognized avatar based on your email address. re: Application returned no output to webserver
  fredkarm
  Rick Strahl
  Feb 23, 2018 @ 06:51pm

I have WC 4.68 so it has the error() method? I can then move the code to the on error()

Gravatar is a globally recognized avatar based on your email address. re: Application returned no output to webserver
  Rick Strahl
  fredkarm
  Feb 23, 2018 @ 07:36pm

If you are still running 4.68 (ie. you didn't port to 5.x or later) then the Error() method is fine.

In that case I don't remember what all can cause the empty response. There were lots of scenarios that could cause an empty response.

The best bet if you have a reproducible request, is just step into the framework after you complete sending your output (ie. Response.Write() or Response.ExpandTemplate() and then see where it goes. My guess there's an error that triggers and the error tries to generate an error response and that fails which then produces an empty result.

+++ Rick ---

© 1996-2024