pparkssang93 / mindmap

0 stars 0 forks source link

Json server POST request fails #2

Open pparkssang93 opened 3 weeks ago

pparkssang93 commented 3 weeks ago

문제 상황 πŸ‘Ώ

Error

before

onKeyDown={(e) => {
                        if (e.key === "Enter") {
                            fetch(URL, {
                                method: "POST",
                                headers: {
                                    "Content-Type": "application/json",
                                },
                                body: JSON.stringify(rootState)
                            }).then((res) => {});
                        }
                    }}



404 Error?

HTTP 404 Not Found ν΄λΌμ΄μ–ΈνŠΈ 였λ₯˜ 응닡 μ½”λ“œλŠ” μ„œλ²„κ°€ μš”μ²­λ°›μ€ λ¦¬μ†ŒμŠ€λ₯Ό 찾을 수 μ—†λ‹€λŠ” 것을 μ˜λ―Έν•©λ‹ˆλ‹€. 404 νŽ˜μ΄μ§€λ₯Ό λ„μš°λŠ” λ§ν¬λŠ” λŒ€μ²΄λ‘œ 브둜큰 링크(broken link) λ˜λŠ” λ°λ“œ 링크(dead link)라고 λΆ€λ₯΄λ©°, link rot λŒ€μƒμΌ μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€.

404 μƒνƒœ μ½”λ“œλŠ” λ¦¬μ†ŒμŠ€κ°€ μΌμ‹œμ , λ˜λŠ” 영ꡬ적으둜 μ‚¬λΌμ‘Œλ‹€λŠ” 것을 μ˜λ―Έν•˜μ§€λŠ” μ•ŠμŠ΅λ‹ˆλ‹€. λ¦¬μ†ŒμŠ€κ°€ 영ꡬ적으둜 μ‚­μ œλ˜μ—ˆλ‹€λ©΄ 404 μƒνƒœ μ½”λ“œ λŒ€μ‹  410(Gone) μƒνƒœ μ½”λ“œκ°€ μ“°μ—¬μ•Ό ν•©λ‹ˆλ‹€.

pparkssang93 commented 3 weeks ago

ν•΄κ²° ⭐️

json server page μ°Έκ³ 

json-server - npm