DoSomething / voting-app

☑ Voting app for DoSomething.org campaigns.
MIT License
6 stars 4 forks source link

Server rendering for React views is failing. #544

Open DFurnes opened 7 years ago

DFurnes commented 7 years ago

Server rendering for React views is not working. This means users on older browsers, like IE 8, will not see any content when they view the homepage.

screen shot 2016-12-01 at 10 16 33 am

From the logs:

[2016-12-01 00:38:22] production.ERROR: Unable to pre-render React view. ["[object] (GuzzleHttp\\Exception\\ConnectException(code: 0): cURL error 6: Could not resolve host: CandidateIndex (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) at /var/www/voting-app/releases/20161130163503/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:186)"]
DFurnes commented 7 years ago

It looks like we didn't update the configuration syntax for the React service when we updated everything to use Guzzle 6. It is being passed a base_url, and needs to be passed a base_uri.

jessleenyc commented 7 years ago

Hm, we didn't catch that in testing. This is what I'm seeing with IE8 on browserstack.

screen shot 2016-12-01 at 10 25 55 am

DFurnes commented 7 years ago

@jessleenyc We pre-render views on the server so that they would still have a functional, if not ideal, experience. Certainly not a high priority bug, but would be nice to get back into working order.