erikras / erikras/react-redux-universal-hot-example

Non-URL friendly API calls fail on server rendering

Open
#922 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Any API call in which the API path is not URL-friendly will fail when being called from the server. The same URL will work when being called from the client as AJAX (since the browser will essentially encode the URI itself).

I solved this by adding an `encodeURI` call to the path in `ApiClient.js`, happy to do a PR if it is a correct solution.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.