Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

develop에서 42 intra oauth 시도시 500 오류 #547

Closed
scarf005 opened this issue Jul 6, 2023 · 1 comment · Fixed by #548
Closed

develop에서 42 intra oauth 시도시 500 오류 #547

scarf005 opened this issue Jul 6, 2023 · 1 comment · Fixed by #548
Labels
bug Something isn't working

Comments

@scarf005
Copy link
Member

scarf005 commented Jul 6, 2023

재현 방법

프론트, 백엔드를 develop 브랜치에서 실행합니다.

프론트: 1be840e8df8f5db88760e02dd0d4a3178d222e9f
백엔드: e1b63f6

발생 위치

프론트엔드 dev 서버에서 42 intra로 로그인 시도시 500 오류와 함께 실패합니다.

추가 정보

2023-07-06 18:48:59:4859 http: GET /api/auth/oauth 302 482 - 3.144 ms

2023-07-06 18:49:00:490 error: Failed to obtain access token
 Error Stack: InternalOAuthError: Failed to obtain access token
    at Strategy.OAuth2Strategy._createOAuthError (/home/scarf/repo/lib42/backend/node_modules/.pnpm/passport-oauth2@1.7.0/node_modules/passport-oauth2/lib/strategy.js:423:17)
    at /home/scarf/repo/lib42/backend/node_modules/.pnpm/passport-oauth2@1.7.0/node_modules/passport-oauth2/lib/strategy.js:177:45
    at /home/scarf/repo/lib42/backend/node_modules/.pnpm/oauth@0.9.15/node_modules/oauth/lib/oauth2.js:191:18
    at ClientRequest.<anonymous> (/home/scarf/repo/lib42/backend/node_modules/.pnpm/oauth@0.9.15/node_modules/oauth/lib/oauth2.js:162:5)
    at ClientRequest.emit (node:events:511:28)
    at ClientRequest.emit (node:domain:489:12)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:511:28)
    at TLSSocket.emit (node:domain:489:12)
    at emitErrorNT (node:internal/streams/destroy:151:8)
2023-07-06 18:49:00:490 http: GET /api/auth/token?code=b02cd9c1102ec65bae02bebdd673806f29483742d4b581d0dbfc192aad8611f7 500 15 - 788.714 ms
@scarf005 scarf005 added the bug Something isn't working label Jul 6, 2023
@scarf005
Copy link
Member Author

scarf005 commented Jul 6, 2023

node 20버전 문제인것 같습니다 nodejs/node#47822

scarf005 added a commit that referenced this issue Jul 6, 2023
요구 노드 버전이 20으로 상승한 #527 (2023-07-01) 이후로 노드 버전을 업데이트한 경우 (20.3.0 릴리즈: 2023-06-26)에는
(#547)을 일으킨 버그가 수정되었으므로 추가 다운그레이드가 필요하지 않습니다.
@scarf005 scarf005 linked a pull request Jul 6, 2023 that will close this issue
scarf005 added a commit that referenced this issue Jul 8, 2023
요구 노드 버전이 20으로 상승한 #527 (2023-07-01) 이후로 노드 버전을 업데이트한 경우 (20.3.0 릴리즈: 2023-06-26)에는
(#547)을 일으킨 버그가 수정되었으므로 추가 다운그레이드가 필요하지 않습니다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant