본문 바로가기

error

(5)
HTTP ERROR 431 : failed to load resource the server responded with a status of 431 () 해결 failed to load resource the server responded with a status of 431 ()프로젝트 진행 도중 갑자기 한 유저로 로그인을 하면 위와 같은 에러가 나고 아예 사이트로 접근이 불가능해졌다.이 에러가 발생하기 바로 직전 더미 데이터로 테스트를 하려고 MongoDB에 상품 1000개를 넣었다. 그러고 나서 에러가 발생!!원인 - NextAuth를 사용 중인데 로그인을 할 때 users collection에서 해당 user의 정보를 다 가져와 jwt token에 저장을 한다. 방금 1000개의 더미 데이터를 넣으면서 해당 user의 document에 상품의 ID를 넣는다. 그러면 로그인을 할 때 user document의 data를 다 가져오려하고 데이터가 너무 커서..
[react-native / 리액트 네이티브]ERROR Error: [Reanimated] Mismatch between JavaScript code version and Reanimated Babel plugin version (3.5.3 vs. 3.4.2) 에러 ERROR  Error: [Reanimated] Mismatch between JavaScript code version and Reanimated Babel plugin version (3.5.3 vs. 3.4.2).See `https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#mismatch-between-javascript-code-version-and-reanimated-babel-plugin-version` for more details.Offending code was: `function anonymous(){const{createLayoutAnimationManager}=this._closure;globa..
[react native / 리액트 네이티브][expo] 에러 Error: Constants.platform.ios.model has been deprecated in favor of expo-device's Device.modelName property. This API will be removed in SDK 45. react native로 ios 앱을 개발 중 갑자기Constants.platform.ios.model has been deprecated in favor of expo-device's Device.modelName property. This API will be removed in SDK 45.이런 경고가 난다 그래서 expo-constants가 최신 버전이 아니라 그런가 싶어서 최신 버전으로 업데이트하니 아예 에러가 나버려 앱이 실행이 안 된다 무슨 건드릴 수 없는 값을 건드렸다 뭐 대충 그런 내용이었던 것 같았다.그래서 하루 종일 삽질을 아무리 해도 안돼서 공식 github에 들어가서 issue를 뒤져보니 나와 같은 내용이 나왔다issue issue2문제 원인내가 expo CLI를 사용하다가 exp..
[react native / 리액트 네이티브] 에러 Error: GestureDetector must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-handler/docs/installation fo.. react native와 라이브러리들을 업데이트하고 나니GestureDetector must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-이런 오류가 난다GestureDetector는 GestureHandlerRootView의 자식으로 사용되어야 한다해결 방안import { GestureHandlerRootView } from 'react-native-gesture-handler';export default function App() { return ( ... );}..
[react native / 리액트 네이티브] 에러 Error: Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin? react-native-reanimated를 설치하고 나니 아래와 같은 에러가 난다Error: Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin?...babel.config.js을 수정하지 않아서 나는 오류다해결 방안babel.config.jsmodule.exports = { presets: ['module:metro-react-native-babel-preset'], plugins: ['react-native-reanimated/plugin'],};위와 같이 plugins를 수정해 준다