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

logout 된 상태에서 특정 게시물에 들어가면 에러 발생 #71

Open
zych1751 opened this issue Jul 25, 2021 · 0 comments
Open

Comments

@zych1751
Copy link
Collaborator

기능상에 에러는 없고, 백엔드 로그에만 남고 있음.

(node:37196) UnhandledPromiseRejectionWarning: TypeError: Cannot destructure property 'yasToken' of 'tokenService_1.default.extractPayloadFromToken(...)' as it is null.
    at /home/zych1751/GitRepo/YAS-backend/dist/api/middleware.js:27:13
    at Generator.next (<anonymous>)
    at /home/zych1751/GitRepo/YAS-backend/dist/api/middleware.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/home/zych1751/GitRepo/YAS-backend/dist/api/middleware.js:4:12)
    at validateToken (/home/zych1751/GitRepo/YAS-backend/dist/api/middleware.js:15:52)
    at Layer.handle [as handle_request] (/home/zych1751/GitRepo/YAS-backend/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/home/zych1751/GitRepo/YAS-backend/node_modules/express/lib/router/index.js:317:13)
    at /home/zych1751/GitRepo/YAS-backend/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/home/zych1751/GitRepo/YAS-backend/node_modules/express/lib/router/index.js:335:12)
(node:37196) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant