Solving “upstream sent too big header while reading response header from upstream” on Nginx

If you’ve used Nginx, you may have come across this error. 2019/04/12 06:43:24 [error] 11365#0: *257 upstream sent too big header while reading response header from ups tream, client: 127.0.0.1, server: hiroki-example.com, request: “POST /payment HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “hiroki-example.com”, referrer: “http://hiroki-example.com/payment” I’ve seen this many times, but haven’t really tried to understand it deeply. In …

How to test React components with form elements

I’ve been teaching myself how to write tests for React app. It seems that Enzyme is the de facto standard for it. Here is what I’ve learned for testing components with form elements (e.g. <input />). Setting up First of all, install the modules. npm install –save enzyme enzyme-adapter-react-16 NOTE: It depends on the version …