일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- js
- linux
- AWS
- Jenkins
- AWS EC2
- deploy
- python
- docker
- axios
- 500
- github
- ngrok
- EC2
- Troubleshooting
- macbook
- MongoDB
- Github Actions
- nodejs
- error
- React
- fastapi
- Java
- TypeScript
- javascript
- webhook
- springboot
- Spring
- Express
- RDS
- MUI
- Today
- Total
목록js (4)
BEAT A SHOTGUN
ERROR ❌ I have Json data. Then I use map() to make a table what put my json data on. But there is a weire , in per row. SOLUTION ✅ We Can Using .join("") Add It at the end of map() Like map().join("") Reference : stackoverflow END DON'T BE STUPID THOVY
ERROR ❌ // FE const handleReplyDelete(props){ console.log(props.replyId) } ... Delete onClick 이벤트를 넣은 버튼을 눌렀을 때 props 로 넣어준 reply 가 제대로 넘겨주는지 확인하기 위해 console에 replyId 를 출력하는 간단한 이벤트를 발생시켜보았다. 그런데 페이지를 Rendering 할 때 onClick 이벤트가 자동으로 작동된 뒤, 버튼을 눌러도 console 에 replyId 를 찍어주지 않았다. Rendering 할 때 작동 된 뒤로는 버튼이 전혀 반응이 없어서 너무 의아했다. 해결 ✅ {handleReplyDelete(reply)}}>Delete 이렇게 Arrow Function 을 사용해 한 번 더 함수..
ERROR ❌ // FE function replySubmit(){ axios.get('http://localhost:8080/reply', { params:{ userId:8, postId:1, contents:replyContent } }) .catch(function(error){ ... // BE @GetMapping("/reply") public ReplyDTO writeReply( @RequestParam(value = "user") Long userId, @RequestParam(value = "post") Long postId, @RequestParam(value = "contents") String contents){ return replyService.writeReply(userId,p..
ERROR ⛔ 프론트엔드에서 axios.post 로 data 를 백엔드로 보내고 백엔드는 DB로 보내려고 할 때, data 도 들어간 것 같고 백엔드 메서드도 반응을 하는데 not null property 에러가 나온다? CODE // Front const [userId, setUserId] = useState(""); const [password, setPassword] = useState(""); const [email, setEmail] = useState(""); function userSignIn(){ axios.post('http://localhost:8080/join', data:{ userId:userId, password:password, email:email }) .catch(funct..