Skip to content

Comments

Feat/140/error page#157

Merged
SeokChan-Lee merged 5 commits intomainfrom
feat/140/error-page
Feb 17, 2025
Merged

Feat/140/error page#157
SeokChan-Lee merged 5 commits intomainfrom
feat/140/error-page

Conversation

@SeokChan-Lee
Copy link
Collaborator

@SeokChan-Lee SeokChan-Lee commented Feb 15, 2025

โ“์ด์Šˆ

โœ๏ธ Description

์ž‘์—… ๋‚ด์šฉ

  • ์ „์—ญ not-found, error ํŽ˜์ด์ง€ ๊ตฌํ˜„
    • not-found ํŽ˜์ด์ง€ ๋ฒ„ํŠผ = '/' ๋ฃจํŠธ ํŽ˜์ด์ง€
    • error ํŽ˜์ด์ง€ ๋ฒ„ํŠผ = reset์œผ๋กœ ์—๋Ÿฌ ์ƒํƒœ์˜ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์žฌ์‹คํ–‰ ์‹œํ‚ด
      image

image

โœ… Checklist

PR

  • Branch Convention ํ™•์ธ

    feat/* ๊ธฐ๋Šฅ ๊ตฌํ˜„, fix/* ๋ฒ„๊ทธ ์ˆ˜์ •, refactor/* ๊ฐœ์„ 

  • Base Branch ํ™•์ธ
  • ์ ์ ˆํ•œ Label ์ง€์ •
  • Assignee ๋ฐ Reviewer ์ง€์ •

Test

  • ๋กœ์ปฌ ์ž‘๋™ ํ™•์ธ

Additional Notes

  • Error ๋ฉ”์„ธ์ง€ AxiosEroor ์ƒํƒœ ์ฝ”๋“œ๋กœ ๋ถ„๊ธฐ ์ฒ˜๋ฆฌ

@SeokChan-Lee SeokChan-Lee added Priority: Medium ๐Ÿ”– ์šฐ์„ ์ˆœ์œ„ ๋ณดํ†ต Type: Feature โœจ ์‹ ๊ทœ ๊ธฐ๋Šฅ labels Feb 15, 2025
@SeokChan-Lee SeokChan-Lee self-assigned this Feb 15, 2025
@vercel
Copy link

vercel bot commented Feb 15, 2025

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
taskify โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Feb 17, 2025 7:16am

Copy link
Owner

@ToKyun02 ToKyun02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ž‘์—…ํ•˜์‹œ๋А๋ผ ๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค!

์ „์ฒด์ ์œผ๋กœ ์ž˜ ๊ตฌํ˜„ํ•˜์…จ๋Š”๋ฐ, ํ•œ๊ฐ€์ง€ ๊ฐœ์„ ํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์€ ์ ์ด ์žˆ์–ด์„œ ์ฝ”๋ฉ˜ํŠธ ๋‚จ๊น๋‹ˆ๋‹ค!

์—๋Ÿฌ ๋ฉ”์‹œ์ง€๋ฅผ ๊ฐ€๊ณตํ•˜์ง€ ์•Š๊ณ  ๋ฐ”๋กœ ์ถœ๋ ฅํ•˜๋‹ค ๋ณด๋‹ˆ ํ•˜๋‹จ ์ด๋ฏธ์ง€ ์ฒ˜๋Ÿผ ๋ณด๊ธฐ ์•ˆ์ข‹์€? Log๋ฉ”์‹œ์ง€๋กœ ๋ณด์—ฌ์„œ ์–ด๋А์ •๋„ ๊ฐ€๊ณตํ•ด์•ผ ํ•  ๋“ฏ ์‹ถ์Šต๋‹ˆ๋‹ค!

image

@SeokChan-Lee
Copy link
Collaborator Author

SeokChan-Lee commented Feb 16, 2025

์šฐ์„  ๋„๊ท ๋‹˜์ด ํ”ผ๋“œ๋ฐฑ ์ฃผ์‹  ๋‚ด์šฉ์„ ๋ณด๊ณ  ์œ ์ €๊ฐ€ ๋ณด๋Š” error ํŽ˜์ด์ง€์— ๊ตณ์ด error.message๋ฅผ ๊ทธ๋Œ€๋กœ ๋…ธ์ถœ ์‹œํ‚ค๋Š”๊ฒŒ ๋ณด๊ธฐ ์•Š์ข‹์€๊ฑฐ ๊ฐ™์•„
401,500 ์—๋Ÿฌ๋ฅผ ๋ถ„๊ธฐํ•˜์—ฌ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
๋‹ค๋งŒ ์„œ๋ฒ„์ธก์—์„œ ๋ณด๋‚ด๋Š” error.message์— error ์ƒํƒœ์ธ 401,500 ์ด ํฌํ•จ๋˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์•„ ๊ธฐ๋ณธ ๋ฉ”์„ธ์ง€์ธ
'์˜ˆ๊ธฐ์น˜ ์•Š์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. ์ž ์‹œ ํ›„ ๋‹ค์‹œ ์‹œ๋„ํ•ด ์ฃผ์„ธ์š”.' ๋งŒ ์ถœ๋ ฅ๋˜๋Š” ๊ฒƒ ๊ฐ™์•„์š”...
์ด ๋ถ€๋ถ„ ์ฒ˜๋Ÿฌ์— ๊ด€ํ•ด์„œ๋Š” ๋‚ด์ผ ํŒ€๋ฏธํŒ…์—์„œ ๋”ฐ๋กœ ๋‹ค๋ค˜์œผ๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค !
image

@ToKyun02
Copy link
Owner

์šฐ์„  ๋„๊ท ๋‹˜์ด ํ”ผ๋“œ๋ฐฑ ์ฃผ์‹  ๋‚ด์šฉ์„ ๋ณด๊ณ  ์œ ์ €๊ฐ€ ๋ณด๋Š” error ํŽ˜์ด์ง€์— ๊ตณ์ด error.message๋ฅผ ๊ทธ๋Œ€๋กœ ๋…ธ์ถœ ์‹œํ‚ค๋Š”๊ฒŒ ๋ณด๊ธฐ ์•Š์ข‹์€๊ฑฐ ๊ฐ™์•„
401,500 ์—๋Ÿฌ๋ฅผ ๋ถ„๊ธฐํ•˜์—ฌ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
๋‹ค๋งŒ ์„œ๋ฒ„์ธก์—์„œ ๋ณด๋‚ด๋Š” error.message์— error ์ƒํƒœ์ธ 401,500 ์ด ํฌํ•จ๋˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์•„ ๊ธฐ๋ณธ ๋ฉ”์„ธ์ง€์ธ
'์˜ˆ๊ธฐ์น˜ ์•Š์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. ์ž ์‹œ ํ›„ ๋‹ค์‹œ ์‹œ๋„ํ•ด ์ฃผ์„ธ์š”.' ๋งŒ ์ถœ๋ ฅ๋˜๋Š” ๊ฒƒ ๊ฐ™์•„์š”...
์ด ๋ถ€๋ถ„ ์ฒ˜๋Ÿฌ์— ๊ด€ํ•ด์„œ๋Š” ๋‚ด์ผ ํŒ€๋ฏธํŒ…์—์„œ ๋”ฐ๋กœ ๋‹ค๋ค˜์œผ๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค !
image

401, 500์—๋Ÿฌ์˜ ๊ฒฝ์šฐ ํ…Œ์ŠคํŠธ๋Š” ์•„์ง ์•ˆํ•ด๋ดค์ง€๋งŒ, ์ œ ์ƒ๊ฐ์œผ๋ก  AxiosErrorํƒ€์ž…๊ณผ Errorํƒ€์ž…์„ ๋”ฐ๋กœ์ฒ˜๋ฆฌํ•˜๋ฉด ๋ถ„๋ฅ˜ ๊ฐ€๋Šฅํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

axios์—๋Ÿฌ ๊ฐ์ฒด์˜ ๊ฒฝ์šฐ,
error.response.status๋กœ HTTP ์ƒํƒœ ์ฝ”๋“œ๊ฐ’ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Copy link
Owner

@ToKyun02 ToKyun02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useEffect๋Š” ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ๋นผ์ฃผ์‹œ๋ฉด ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!

์ž‘์—…ํ•˜์‹œ๋А๋ผ ๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค!

@SeokChan-Lee SeokChan-Lee merged commit 9f3ea28 into main Feb 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Medium ๐Ÿ”– ์šฐ์„ ์ˆœ์œ„ ๋ณดํ†ต Type: Feature โœจ ์‹ ๊ทœ ๊ธฐ๋Šฅ

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat: ์—๋Ÿฌ ํŽ˜์ด์ง€ ์ œ์ž‘

2 participants