You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to using remote-input-element and am trying to figure out a way to properly handle unexpected HTTP responses.
It looks like this component will always replace the target container with the HTTP response body, however if the server responds with an unexpected response e.g. HTTP 500 or 502 with a Full HTML page instead of a fragment to display, then the output does not look very desirable.
I am new to using
remote-input-element
and am trying to figure out a way to properly handle unexpected HTTP responses.It looks like this component will always replace the target container with the HTTP response body, however if the server responds with an unexpected response e.g. HTTP 500 or 502 with a Full HTML page instead of a fragment to display, then the output does not look very desirable.
https://user-images.githubusercontent.com/236297/61644279-6a3ad300-ac72-11e9-905c-0295859be893.png
What would be the best way to handle scenarios like this?
The text was updated successfully, but these errors were encountered: