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

일부 학교에 대해 에러 발생 #12

Open
Hoto-Cocoa opened this Issue Nov 8, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@Hoto-Cocoa

Hoto-Cocoa commented Nov 8, 2018

경기, 교find Method를 사용할 시 다음과 같은 에러가 발생합니다.

[REMOVED]\node_modules\calcium\src\find.js:22
    const foundData = body.resultSVO.orgDVOList
                                     ^

TypeError: Cannot read property 'orgDVOList' of undefined
    at Request.request [as _callback] ([REMOVED]\node_modules\calcium\src\find.js:22:38)
    at Request.self.callback ([REMOVED]\node_modules\request\request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> ([REMOVED]\node_modules\request\request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> ([REMOVED]\node_modules\request\request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

제주, 제주대학교사범대학부설중학교find Method를 사용한 결과값으로 get Method를 사용할 시 다음과 같은 에러가 발생합니다.

[REMOVED]\node_modules\calcium\src\get.js:13
    throw new TypeError('Invalid or unknown code: '+ school)
    ^

TypeError: Invalid or unknown code: A000003567
    at Object.fetchSchoolMeal [as get] ([REMOVED]\node_modules\calcium\src\get.js:13:11)
    at calcium.find ([REMOVED])
    at Request.request [as _callback] ([REMOVED]\node_modules\calcium\src\find.js:30:12)
    at Request.self.callback ([REMOVED]\node_modules\request\request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> ([REMOVED]\node_modules\request\request.js:1161:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> ([REMOVED]\node_modules\request\request.js:1083:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

find Method를 사용한 결과 값은 다음과 같습니다.

[ { name: '제주대학교사범대학부설중학교',
    code: 'A000003567',
    type: '중학교',
    address: '제주특별자치도 제주시 용담삼동' } ]

광주, 운남 등으로 find Method를 사용할 시 unable to verify the first certificate 에러가 발생합니다.

@Hoto-Cocoa

This comment has been minimized.

Hoto-Cocoa commented Nov 8, 2018

1번째 문제는 검색어 길이가 너무 짧아 에러가 나는 것으로 예상되고, 2번째 문제는 A로 시작하는 학교 코드에 대한 정보가 없어 발생하는 문제 같습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment