reactjs


nginx reactjs custom 500 error gets sent back but doesn't render on the screen


I'm making a fetch request on the client side from and returning 500 with the backend api, which works fine and the response comes back to the client as 500, however, nginx doesn't redirect the client to the 500.html page it just sends the page back in the response body, how can I make it redirect to 500.html instead of sending it back in the response body?
http {
root deployment_tests/test1/build;
server {
listen 8080;
server_name test;
location / {
try_files $uri /index.html;
}
location /api {
proxy_pass http://127.0.0.1:3001;
proxy_intercept_errors on;
}
error_page 500 502 503 504 /500.html;
location /500.html {
try_files $uri /500.html;
}
}
}

Related Links

How does one set the tabIndex attribute on a draft-js instance?
ComponentDidMount() not working
UIScrollView Canvas Equivalent?
ReactJS - props or propTypes?
React Router V4 structure
Should a view be ordering data?
Unable to load React class component inside other class component
How to get history on react-router v4?
Redux react immutable setIn element changes whole list
react: fade-in/slide-in animation when render component
ReactJS component vendors
css-loader, sass-loader not working webpack 2
The best way to organize your site ready for both PC and SP in reactjs, responsive or 2 sources?
Check data has already been fetched for react-redux in action, reducer or component?
<element>.innerText in component method code does not work properly in enzyme testing. Testing react component with Jest+Enzyme(mount())
React Webpack in Production Error #105

Categories

HOME
autohotkey
optimization
azure-documentdb
itunesconnect
primefaces
stanford-nlp
openacc
display
window.open
python-requests
android-ndk
c++builder
nagios
conceptual
spss
salesforce-lightning
redhawksdr
multipartform-data
servicenow
kendo-asp.net-mvc
restheart
promotions
rtc
software-collections
ethereum
core-data
captcha
fastreport
logstash-configuration
eclipse-orion
appsettings
google-closure-compiler
tag-cloud
versioning
passbook
scotty
onclicklistener
handle
ithit-webdav-server
apdu
android-wear-2.0
datanucleus
pydub
gulp-jshint
osgi-bundle
andengine
intermec
boost-log
blockly
log4net-configuration
android-scrollview
ilog
fastadapter
gitosis
ansible-inventory
realloc
jslider
julia-jump
colorbox
python-venv
anonymous-function
dcom
appcmd
richtext
disassembly
google-scholar
stringbuilder
android-tabs
distcc
universe
altova
key-value-store
csc
nimbus
laterjs
treelist
jmap
matlab-engine
opendolphin
gtkwave
controlpanel
producer-consumer
redquerybuilder
httpmodule
xmla
system.io.packaging
system.net
serializer
nspopupbutton
opencobol
internet-radio
windows-phone-store
google-oauth-java-client
qgraphicsscene
proj4
php-gettext
android-memory
beep
advanceddatagrid
cgaffinetransform
parallel-python
file-processing
method-call
n2
html5-animation
nyromodal
code-golf
dynamic-scope
manuals
atmega16
authkit
projectgen
jettison
cross-cutting-concerns
memory-consumption

Resources

Encrypt Message