inflearn logo
강의

Khóa học

Chia sẻ kiến thức

Hoàn thiện phương pháp đầu tư gối đầu: Tự động hóa hoàn toàn giao dịch chứng khoán bằng AI giúp buổi sáng đầy phấn khởi - Claude Vibe Coding

Chỉ số kỹ thuật (1) Cách tính và ý nghĩa của SMA·RSI·MACD

supabase_key 관련

1

qlife1818899

5 câu hỏi đã được viết

0

강사님 답변처럼 SUPABASE_SERVICE_ROLE_KEY 복사하고 붙인 후 실행 했는데도 아래처럼 나오네요. 무시하고 계속 수업 진도를 나갈려고 하는데 내가 워낙 쌩 초보라 13번째 강의에서도 또 언급되길래 계속 무시하고 수업을 끝까지 들으면 해결 할 수 있는지 의심스럽습니다. 그리고 localhost8000/docs 가 강사님 처럼 열리지 않네요... ㅠㅠ

 

PS C:\박영준\banbu-stocktrading-final> python run.py

SUPABASE_SERVICE_ROLE_KEY 미설정 - anon 키 사용 중. RLS가 켜져 있으면 쓰기가 차단될 수 있 습니다.

Supabase URL: https://fohjixoviclcuwdtadxf.supabase.co

INFO: Started server process [23136]

INFO: Waiting for application startup.

서비스 시작 시 경제 데이터 수집을 즉시 실행합니다...

경제 지표 및 주가 데이터 업데이트 작업 시작...

2026-07-27 16:39:01,751 - httpx - INFO - HTTP Request: GET https://fohjixoviclcuwdtadxf.supabase.co/rest/v1/economic_and_stock_data?select=%EB%82%A0%EC%A7%9C&order=%EB%82%A0%EC%A7%9C.desc&limit=1 "HTTP/2 403 Forbidden"

마지막 수집 날짜 조회 중 오류 발생: {'message': 'permission denied for table economic_and_stock_data', 'code': '42501', 'hint': 'Grant the required privileges to the current role with: GRANT SELECT ON public.economic_and_stock_data TO service_role;', 'details': None}

2026-07-27 16:39:01,798 - httpx - INFO - HTTP Request: GET https://fohjixoviclcuwdtadxf.supabase.co/rest/v1/economic_and_stock_data?select=%2A&%EB%82%A0%EC%A7%9C=eq.2005-12-31 "HTTP/2 403 Forbidden"

경제 데이터 업데이트 중 오류 발생: {'message': 'permission denied for table economic_and_stock_data', 'code': '42501', 'hint': 'Grant the required privileges to the current role with: GRANT SELECT ON public.economic_and_stock_data TO service_role;', 'details': None}

Traceback (most recent call last):

File "C:\박영준\banbu-stocktrading-final\app\services\economic_service.py", line 134, in update_economic_data_in_background

prev_data_response = supabase.table("economic_and_stock_data").select("*").eq("날짜", previous_date).execute()

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^

File "C:\Users\박종한\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\postgrest\_sync\request_builder.py", line 96, in execute

raise APIError(dict(json_obj))

postgrest.exceptions.APIError: {'message': 'permission denied for table economic_and_stock_data', 'code': '42501', 'hint': 'Grant the required privileges to the current role with: GRANT SELECT ON public.economic_and_stock_data TO service_role;', 'details': None}

ERROR: Traceback (most recent call last):

File "C:\박영준\banbu-stocktrading-final\app\services\economic_service.py", line 134, in update_economic_data_in_background

prev_data_response = supabase.table("economic_and_stock_data").select("*").eq("날짜", previous_date).execute()

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^

File "C:\Users\박종한\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\postgrest\_sync\request_builder.py", line 96, in execute

raise APIError(dict(json_obj))

postgrest.exceptions.APIError: {'message': 'permission denied for table economic_and_stock_data', 'code': '42501', 'hint': 'Grant the required privileges to the current role with: GRANT SELECT ON public.economic_and_stock_data TO service_role;', 'details': None}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\박종한\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages\starlette\routing.py", line 638, in lifespan

async with self.lifespan_context(app) as maybe_state:

~~~~~~~~~~~~~~~~~~~~~^^^^^

File "C:\Users\박종한\AppData\Local\Python\pythoncore-3.14-64\Lib\contextlib.py", line 214, in aenter

return await anext(self.gen)

^^^^^^^^^^^^^^^^^^^^^

async with original_context(app) as maybe_original_state:

async with original_context(app) as maybe_original_state:

~~~~~~~~~~~~~~~~^^^^^

async with original_context(app) as maybe_original_state:

~~~~~~~~~~~~~~~~^^^^^

File "C:\Users\박종한\AppData\Local\Python\pythoncore-3.14-64\Lib\contextlib.py", line 214, in aenter

return await anext(self.gen)

^^^^^^^^^^^^^^^^^^^^^

File "C:\박영준\banbu-stocktrading-final\app\main.py", line 18, in lifespan

await startup()

File "C:\박영준\banbu-stocktrading-final\app\main.py", line 48, in startup

await update_economic_data_in_background()

File "C:\박영준\banbu-stocktrading-final\app\services\economic_service.py", line 251, in update_economic_data_in_background

raise Exception(f"경제 데이터 업데이트 중 오류: {str(e)}")

Exception: 경제 데이터 업데이트 중 오류: {'message': 'permission denied for table economic_and_stock_data', 'code': '42501', 'hint': 'Grant the required privileges to the current role with: GRANT SELECT ON public.economic_and_stock_data TO service_role;', 'details': None}

python 머신러닝 aws FastAPI 퀀트 cloud-computing claude

Câu trả lời 0

python run.py 실행시 에러 문제

1

40

2

커서창

1

38

2

cursor 환경

1

42

2

개발 환경 준비와 프로젝트 구조 강의 관련

1

42

2

저장 공간

1

41

2

colab 코드 실행시 error

1

38

2

llm_decision_logs 저장 실패(실적 컬럼 불일치)를 어떻게 해결할까요?

2

57

3

kaggle notebook에 service key 설정이 누락된 것 같습니다

1

56

2

주말에 실행할 경우 update_economic_data_in_background에 로직 변경 필요성

1

48

1

프로그램 실행시간에 대한 질문

1

43

2

비중 및 매수 종목수 조정.

1

49

2

Claude api가 소식 동기화가 늦는 문제

1

62

2

슬롯 관련 문의

1

41

2

실제 계좌 잔고 및 테스트중에

1

86

4

안녕하세요

1

69

3

매일 사용시 토큰사용량

1

78

2

LLM판단에 문제가 있는 것 같습니다

1

54

2

실습 2인데 커서아이디 같은거 다운로드 안내같은건 따로없나요??

1

41

2

5. 실습 (1) 개발 환경 준비와 프로젝트 구조 03:11

1

44

1

여태까지 발견한 이슈들 공유드립니다.

1

80

2

Cursor 실행 문의

1

64

2

슬랙에서 메시지 일부 잘림

1

49

2

API 오류: EGW00201 - 초당 거래건수를 초과

1

73

2

캐글 save version 할 시 md파일과 다름.

1

58

2