전체 글 56

Git 에러 - 로컬 변경사항 덮어쓰기

이 에러는 현재 브랜치에서 package.json과 pnpm-lock.yaml 파일에 로컬 변경사항이 있는데, 브랜치를 전환하려고 하니까 해당 변경사항이 덮어씌워질 위험이 있어서 Git이 막는 것입니다. 변경사항 커밋보다 버리는게 가장 빠르긴합니다. error: Your local changes to the following files would be overwritten by checkout: package.json pnpm-lock.yamlPlease commit your changes or stash them before you switch branches.Aborting

error 2025.04.19

[springboot] security oauth2Login, 에러, not working

successHandler 작동, oauth2Login 실행되지 않음  1. application.properties/ 설정scope 없어서 oauth2Login 실행이 안되는 상황 spring.security.oauth2.client.registration.google.scope=email,profile#GOOGLEspring.security.oauth2.client.registration.google.client-id=spring.security.oauth2.client.registration.google.client-secret=spring.security.oauth2.client.registration.google.scope=email,profile 2. 주석처리 로그 레벨이 INFO로 설정되어 ..

log 2024.10.18

supabse 403 post 에러처리

소셜로그인 상태입니다. auth 스키마 user 테이블에 유저정보가 있습니다.  test 테이블 title. user_id 컬럼에 데이터를 추가하려고 합니다.  POST 요청!!! // 유저 세부 정보가져오기 const {data: { user },} = await supabase.auth.getUser(); // 데이터 추가 const { error } = await supabase.from("test").insert({ title, user_id: user.id });POST / 200 성공?  API GatewayPOST 403 에러  로그; RLS 정책; 권한 부족 // new row violates row-level security policyconsole.error(error)   로우레벨 ..

log 2024.10.13

카카오 지도 시작하기

사전 준비  카카오 api 문서를 이용해서 글을 작성하였습니다.https://apis.map.kakao.com/web/guide/ 애플리케이션을 추가해서 자바스크립트 키가 필요합니다. https://developers.kakao.com/  에디터 : VSCode 에디터 확장프로그램 : Live Server 1. index.html 파일 생성하기 2. 카카오에서 제공하는 소스를 붙여넣기3. "appkey=발급받은 APP KEY를 넣으시면 됩니다. " 이부분  삭제후 API KEY 발급받아 교체하기   4. 라이브서버 실행 화면은 빈화면이 나옵니다.  개발자 도구로 이동해 에러를 확인합니다. kakao 객체를 찾을 수 없다는 에러가 발생했습니다. Uncaught ReferenceError: kakao i..

log 2024.08.28

next.js server action bind() example / pass argument

Server Action에서는 argument값을 전달할 수 없습니다. // update함수에 id값을 넣어서 action을 정의할 수 없다.  bind를 사용해서 전달이 가능합니다. // page.tsxexport default function Page({ id } : { id:number }){ const updateWithId = update.bind(null, id); return ( ... ) }// actions.ts'use server'export async function update(id: string, formData: FormData){ // ... await sql` UPDATE user SET stat..

log 2024.07.20

UUID (Universally Unique Identifier)

UUID는 일반적으로 32개의 16진수 숫자와 4개의 하이픈(-)으로 구성됩니다.// UUID example// 16진수 1자리 = 4비트 이므로 32자리 16진수 = 32 * 4비트 = 128비트2f473605-4099-4845-8e2d-ef81aa0a46b7 UUID는 128 비트 레이블입니다. 비트는 컴퓨터에서 정보의 가장 작은 단위로, 0 또는 1의 값을 가질 수 있습니다.  128비트는 128비트(bit) 길이(length) 의 데이터를 의미합니다.// 128비트는 이진수로 표현할 때 128개의 0과 1로 이루어집니다.11001100 11110000 10101010 00001111 11000011 00001111 11110000 00110011 11111111 00000000 10101010 1..

log 2024.07.20