res.json() doesn't always return the response to the client

Source: https://github.com/expressjs/express/issues/3060

server.get('/',(req,result)=>{
result.status(200).json(jsonObj);
result.end();
});
this is my code where jsonObj contains the json file. But it doesn't display in client side.

Không có nhận xét nào:

Check to be sure that port 22 is enabled before you reload

 https://superuser.com/questions/590600/ufw-is-active-but-not-enabled-why etting  ENABLED=yes  in  /etc/ufw/ufw.conf  did it for me. $ sudo ...