[Glass] Seaside now rendering request error response
Mariano Martinez Peck via Glass
glass at lists.gemtalksystems.com
Fri Feb 3 08:34:07 PST 2017
Hi guys,
I had this working since a long time and for some reason it seems it
stopped working and I am not sure when nor how. I am using Seaside 3.1.4.2
on GemStone 3.3.3. The scenario I am describing is an error (DNU) raised at
RENDERING time caused from a normal request (not AJAX).
On the server side, I am generating the response to the error this way:
handleRenderingError: anException with: wallbackComponent
self requestContext
respond: [ :response |
response
internalError;
contentType: WAMimeType textHtml;
nextPutAll:
(self rendererClass builder
fullDocument: true;
rootBlock: [ :root | self updateHtmlRoot: root
forException: anException ];
render: [ :html |
"In case of a rendering error, we render the
wallbackComponent but we do not render it;s buttons as callbacks won't work
at this point."
wallbackComponent shouldRenderButtons: false.
[ html render: wallbackComponent ]
on: Error
do: [ :ex | html render: 'Error rendering error
page: ' , ex printString ] ]) ]
On Chrome, when I analyze this, I see I do get the 500 error and I get the
correct html in the response. See attached screenshots from Chrom Dev
Tools. As you can see, I do get the HTML, I can even preview it, and the
error is 500. yet.... that HTML is not renderer in my browser. I mean...the
browser keeps showing the original page that triggered the rendering
error. Previously (when this was working) the page would be replaced with
the HTML of the response which shows a nice error report.
Any idea what may have changed or what could be going on?
Thanks in advance,
--
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20170203/c3f0caa9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2017-02-03 at 1.31.10 PM.png
Type: image/png
Size: 271553 bytes
Desc: not available
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20170203/c3f0caa9/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2017-02-03 at 1.31.19 PM.png
Type: image/png
Size: 324434 bytes
Desc: not available
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20170203/c3f0caa9/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2017-02-03 at 1.30.58 PM.png
Type: image/png
Size: 281524 bytes
Desc: not available
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20170203/c3f0caa9/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2017-02-03 at 1.30.33 PM.png
Type: image/png
Size: 65225 bytes
Desc: not available
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20170203/c3f0caa9/attachment-0007.png>
More information about the Glass
mailing list