묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결남박사의 파이썬 기초부터 실전 100% 활용
텔레그램 봇 만들기 _ 오류
안녕하세요 강사님 텔레봇을 만들다가 에러가 생겨 이렇게 질문을 올리게 됩니다 강사님의 텔레봇 코드 중 weather까지 작성해서 실행을 해보면 다음과 같은 에러가 발생하는데요. 왜 이러한 에러가 발생하는지 이해가 안됩니다 코드는 박사님이 해주신것과 일치하구요. 안되는 이유를 찾아보기 위해 한줄한줄 실행을 해봤는데요. 박사님이 작성하신 코드에서 import requests를 제거하면 코드가 에러 없이 실행이 되지만, requests 모듈을 불러오면 꼭 저러한 에러가 발생합니다 하지만 requests 모듈이 없으면 크롤링이 안되니.... 꼭 해결하고 싶어서요 에러를 정독하고 구글링도 해봤지만 해결이 안되 결국 이렇게 질문을 작성합니다..... 도와주세요.... ''' <오류 부분> DEBUG:urllib3.util.retry:Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=0, status=None) DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.telegram.org:443 DEBUG:urllib3.util.retry:Incremented Retry for (url='/bot934540352:AAFOImmeO8yA8Cg4eI8nhsmu7me5E8vqlkI/getUpdates'): Retry(total=2, connect=None, read=None, redirect=0, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=0, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /bot934540352:AAFOImmeO8yA8Cg4eI8nhsmu7me5E8vqlkI/getUpdates DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): api.telegram.org:443 DEBUG:urllib3.util.retry:Incremented Retry for (url='/bot934540352:AAFOImmeO8yA8Cg4eI8nhsmu7me5E8vqlkI/getUpdates'): Retry(total=1, connect=None, read=None, redirect=0, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=0, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /bot934540352:AAFOImmeO8yA8Cg4eI8nhsmu7me5E8vqlkI/getUpdates DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): api.telegram.org:443 DEBUG:urllib3.util.retry:Incremented Retry for (url='/bot934540352:AAFOImmeO8yA8Cg4eI8nhsmu7me5E8vqlkI/getUpdates'): Retry(total=0, connect=None, read=None, redirect=0, status=None) WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=0, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))': /bot934540352:AAFOImmeO8yA8Cg4eI8nhsmu7me5E8vqlkI/getUpdates DEBUG:urllib3.connectionpool:Starting new HTTPS connection (4): api.telegram.org:443 Traceback (most recent call last): File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 488, in wrap_socket cnx.do_handshake() File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1915, in do_handshake self._raise_ssl_error(self._ssl, result) File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1647, in _raise_ssl_error _raise_current_error() File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\OpenSSL\_util.py", line 54, in exception_from_error_queue raise exception_type(errors) OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen chunked=chunked, File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 976, in _validate_conn conn.connect() File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\connection.py", line 370, in connect ssl_context=context, File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\util\ssl_.py", line 377, in ssl_wrap_socket return context.wrap_socket(sock, server_hostname=server_hostname) File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 494, in wrap_socket raise ssl.SSLError("bad handshake: %r" % e) ssl.SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])",) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\telepot\__init__.py", line 1183, in get_from_telegram_server allowed_updates=allowed_upd) File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\telepot\__init__.py", line 1000, in getUpdates return self._api_request('getUpdates', _rectify(p)) File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\telepot\__init__.py", line 491, in _api_request return api.request((self._token, method, params, files), **kwargs) File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\telepot\api.py", line 154, in request r = fn(*args, **kwargs) # `fn` must be thread-safe File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\request.py", line 171, in request_encode_body return self.urlopen(method, url, **extra_kw) File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\poolmanager.py", line 336, in urlopen response = conn.urlopen(method, u.request_uri, **kw) File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 765, in urlopen **response_kw File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 765, in urlopen **response_kw File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 765, in urlopen **response_kw File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 725, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\urllib3\util\retry.py", line 439, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot934540352:AAFOImmeO8yA8Cg4eI8nhsmu7me5E8vqlkI/getUpdates (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))) DEBUG:urllib3.util.retry:Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=0, status=None) DEBUG:urllib3.connectionpool:Starting new HTTPS connection (5): api.telegram.org:443 Traceback (most recent call last): File ".\bot3.py", line 109, in <module> bot.message_loop(handler, run_forever=True) File "C:\Users\Kangminsu\Anaconda3\lib\site-packages\telepot\__init__.py", line 1340, in message_loop time.sleep(10) KeyboardInterrupt
-
홍정모의 따라하며 배우는 C언어
unresolved external symbol
삭제된 글입니다
-
미해결공공데이터로 파이썬 데이터 분석 시작하기
파일 경로 설정에 문제가 있는 것 같은데 잘 모르겠네요.
안녕하세요. 지금 강의를 따라 진행하고 있는데 계속해서 파일을 찾을 수 없다고 나옵니다. 아무래도 파일 경로 설정이 잘못된 것 같은데 어디가 잘못되었는지 전 잘 모르겠네요 ㅜㅜ 도와주세요 ㅜㅜ
-
미해결모의해킹 실무자가 알려주는, 파일 업로드 취약점 공격 기법과 실무 사례 분석 : PART 1
apm 설치
apm 설치부터 막혔습니다.. apmsetup:: APMSETUP 개발자: 이근상(okstart) Project Description: 윈도우 운영체제에 Apache, PHP, MySQL 등의 서버 프로그램을 사용하기 쉽도록 설치/설정해 주는 프로그램 Note: 프로젝트 결과물에서 사용되는 (만료된) 도메인을 포함한 주소에서 랜섬웨어를 배포하고 있어 배포를 중단 합니다 말씀하신 주소로 들어가보니 배포 중단해놨는데 어떻게 해야하죠?
-
해결됨누구든지 하는 리액트: 초심자를 위한 react 핵심 강좌
const {변수명} = ? 표현법
const {data} = this.props;에서 왜 변수명 data를 {}안에 넣어서 표현하나요?
-
미해결Python을 이용한 주가 백테스팅 시스템 구축하기
강의에서 사용된 소스 자료를 받고 싶습니다
강의중에 사용하신 코드소스를 받았으면 합니다 녹화된 강의에서 설명하시는 코드 들이 너무 작아 공부하는데 어려움이 있습니다 돋보기를 사용해도 보일지 않네요. 손녀가 사용하는 큰 돋보기를 사용해서 하나씩 찾아서 보는데 그것도 할게 못되어 자료를 요청 하는것이니 부탁 드리겠습니다.
-
미해결Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
npm run dev 후 module can't resolve 'scrypt.js'
ERROR in ./node_modules/caver-js/packages/caver-klay/caver-klay-accounts/src/index.js Module not found: Error: Can't resolve 'scrypt.js' in 'C:\Users\82102\Desktop\kklay\addition-game-starter\node_modules\caver-js\packages\caver-klay\caver-klay-accounts\src' @ ./node_modules/caver-js/packages/caver-klay/caver-klay-accounts/src/index.js 34:15-35 @ ./node_modules/caver-js/packages sync ^\.\/.*\/src\/index\.js$ @ ./node_modules/caver-js/index.js @ ./src/index.js @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/index.js
-
미해결자바 프로그래밍 입문 강좌 (renew ver.) - 초보부터 개발자 취업까지!!
class파일생성이 안됩니다
똑같이 따라했는데 cmd에 첨부이미지처럼 나와요
-
해결됨코린아, 코딩하자! with 파이썬
질문있습니다.
삭제된 글입니다
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
카카오로그인질문
안녕하세요. 제로초님처음엔 axios로 요청을 보내 처리를 할려고 했는데 cors에러가 뜨는 바람에 a태그를 이용하여 제 로컬서버로 요청을 보내고로그인을 했습니다. 그런데 서버에서 클라이언트로 해당유저 정보를 보내줘야하는데 어떤식으로 보내줘야 되나요?//클라이언트 <a href="http://localhost:5000/auth/kakao"> 카카오 계정 </a>// 서버쪽 응답코드 router.get('/kakao/callback', (req, res, next) =>{ passport.authenticate('kakao',(authError, user, info) => { console.log(user); // 정보는 정상적으로 넘어오는걸 확인했습니다. })(req ,res, next) })저기 user정보를 어떻게 클라이언트로 보내줘야 될까요??그리고 추가적으로 로그아웃은 clearCookies로 쿠키를 다 날렸는데도 로그아웃이 안되는데 다른방법이 있나요?(application탭에서 쿠키내용 확인 시 없음)크롬브라우저 도메인입력창에 있는 i모양을 클릭해서 쿠키를 지우고 다시 카카오 로그인을 하면 정상적으로 kakao로그인페이지가 뜨는걸 확인했습니다.
-
미해결홍정모의 따라하며 배우는 C++
9.2 입출력 연산자 4:17에서 질문
입출력 연산자에서 friend std::ostream& operator << (std::ostream& out, const Point& point) { out << point._x << " " <<point. _y << " " <<point. _z; return out; } return out을 해줘야 chaining을 할 수 있다고 말씀해 주셨습니다. return과 연속적인 사용하고는 무슨 관계가 있는 건가요>? return은 글자 그대로 값을 돌려주고 함수가 종료되는 것인데 return과 연속적인 사용사이의 관계가 궁금합니다.
-
해결됨리눅스 시스템 프로그래밍 - 이론과 실습
select.c 관련 질문입니다
while(ret > 0) 루프 안쪽의 event = (struct inotify_event *)(char *)event + sizeof(struct inotify_event) + event->len; 을 event += sizeof(struct inotify_event) + event->len;으로 바꾸어서 실행해보니 실행결과는 동일한데 이렇게 써도 문제없는 건가요?
-
미해결홍정모의 따라하며 배우는 C언어
return value ignored: 'scanf'
chapter4.10 강의 11:28 /*Width*/ char str[30]; scanf("%5s", str); printf("%s\n", str); 이부분 실행시키면 return value ignored: 'scanf' 라는 오류메세지?가 뜨는데 왜 뜨는건가요?
-
미해결홍정모의 따라하며 배우는 C언어
레지스터 질문
변수 앞에 register 키워드를 붙여서 레지스터공간에 안올라가고 stack 메모리공간에 올라가게 되더라도 주소를 가지지 못하나요?? 이건 그냥 '약속'된 거라고 보면 되나요?
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
github 권한 받은 후 clone 질문입니다
깃헙 리포지토리 권한은 승인 받고서 git clone 받아도 계속 https://gist.github.com/42fe8a30d9fbe5fafe53b5e8ade3887d.git 파일로 설치가 되는데요 어떻게하면 받을 수 있을까요?
-
미해결홍정모의 따라하며 배우는 C++
int getCents() const 함수와 int& getCents()함수의 차이
동전갯수를 합하는 코딩에서 int getCents() const 함수와 int& getCents()함수는 리턴값이 모두 m_cents로 같은데 무슨 차이가 있나요?
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
ManyToOne 기본 옵션 자체를 LAZY로 바꾸면 안되나요??
ManyToOne 모듈에 default EAGER로 적힌 부분을 LAZY로 바꾸면 안되나요??? 다른 사람과 함께 협업할 때 문제가 발생할 여지가 있어서 모듈을 바꾸지않고 직접 @ManyToOne(fetch=FetchType.LAZY)로 바꾸는 건가요???
-
해결됨[리뉴얼] 처음하는 MongoDB(몽고DB) 와 NoSQL(빅데이터) 데이터베이스 부트캠프 [입문부터 활용까지] (업데이트)
11분 40초쯤
이 부분 편집이 뭔가 이상한거 같습니다. 강의평가 욕설관련도 이 부분에 해당하는거같아요!
-
미해결문제로 배우는 C언어
while 문 이렇게 맞나요
int main() { int n; int i = 0; int cnt = 0; scanf_s("%d", &n); while (i <= n) { i++; if (i % 2 == 0) { cnt++; } } printf("%d", cnt); }
-
해결됨홍정모의 따라하며 배우는 C언어
0.10 14:06
16 비트든 32비트든 맨 앞자리는 음양 을 구분하는 용도로 쓰이고 나머지 15 ,31 비트로 정수를 표현 하는건가요?