목록프로그래밍/Node.js (4)
개발자 블로그
Translated by Google Translate. In my app, I was receiving notifications by gmail using nodemailer for the part that needs monitoring. In the past, it was working fine without any problems, but at some point the mail was not being sent. So I looked up the error log and found the following log. (It may be slightly different from the original text by deleting or modifying sensitive information.) S..
내 앱에서 모니터링이 필요한 부분에 nodemailer를 사용해서 gmail로 알림을 받고 있었다. 기존에는 아무런 문제 없이 잘 동작하고 있었는데, 어느 순간부터 메일이 발송되지 않고 있었다. 그래서 에러 로그를 찾아보니 아래와 같은 로그가 찍혀있었다. (민감할 수 있을 것 같은 내용은 삭제 또는 수정해서 원문과는 조금 다를 수 있다.) Send mail error: { Error: Invalid login: Username and Password not accepted. Learn more at https://support.google.com/mail/?p=BadCredentials - gsmtp at SMTPConnection._formatError (myprojects/node_modules/no..
완전한 해결 방법은 아니지만 혹시나 도움이 될까 싶어서 공유한다. Node.js 환경에서 MySQL(mariaDB)에 연결할 때 발생하는 에러인데, 아래는 전체 에러 로그 캡처 화면이다. 메시지는 이렇다: Error: Cannot enqueue Query after fatal error. 치명적인 오류가 발생 한 뒤에는 쿼리를 큐에 넣을 수 없다.. 정도로 번역이 가능할 것 같은데, 왜 치명적인 오류가 발생한건지는 모르겠다. Node.js와 MySQL(mariaDB)를 이용해서 서비스를 운영하고 있다면 잘 알테지만 일정시간동안 서비스 요청이 없으면 DB connection이 끊긴다. 그러면서 node.js 서비스도 종료가 되고. 그래서 많이들 이용하는게 아마 PM2가 아닐까 싶다. 나 역시 PM2를 사용..
stackoverflow.com/a/36281377 Emoji are not inserting in database node js mysql Hello I am here to discus one thing. I am building up a web service that makes a goal for inserting emoji data into database field. I am working with Node JS + Mysql. I set charset to UTF-8 or utf8... stackoverflow.com 참고로 서버 환경은 node.js + mariaDB(mysql) 입니다. 위에 답변처럼 DB에 연결할 때 charset을 'utf8mb4'로 추가해주니 이모티콘(이모지, emoji..