codestates / codestates/aneun-dongne
Error Handling Log/ 카톡지도에서 주소를 좌표로 변환할때 기능구현은 되지만 거슬리게 콘솔에 에러뜨는 현상/류준열
- Dominant language
- JavaScript
- Stars
- 6
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
> ### 어떤 에러인가요?
> 카톡 주소를 좌표로 변환할때 기능구현은 되지만 거슬리게 콘솔에 에러뜨는 현상
> ### 에러 메시지

>
> ### 에러 핸들링 방법
> * 핸들링 방법에 대해서 간단하게 기록해보세요.
> 0.001초단위로 정보가 오기때문에 기능구현에는 문제가 없지만 가장 먼저 도달하는 `placeAddress`는 빈문자열이다.
> 그래서 에러가 떴던것이다. `placeAddress`가 `falsy`하지 않을때만 실행되도록 하니 에러가 더이상 뜨지 않았다.
```js
if(placeAddress){
geocoder.addressSearch(placeAddress, function(result, status) {
.. 생략
```
>
> ### 에러 핸들링을 위해 참고한 레퍼런스 링크
> 링크
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the JavaScript code that passes placeAddress to geocoder.addressSearch and inspect how the initial empty string is handled. Verify that addressSearch is skipped for an empty or falsy placeAddress, while valid addresses still convert to coordinates without the console error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100