inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

베개투자법 완성: 아침이 설레는 AI 주식 완전 자동매매 Claude 바이브코딩

섹션 1 퀴즈

섹션1.9 질문입니다!

정윤택

작성한 질문수 1

0

강의를 듣고 마지막에 python run.py를 했는데 아래처럼 에러떠요ㅠㅠ 혹시 놓친 부분이 있나요?

SUPABASE_SERVICE_ROLE_KEY 미설정이라는데 이거 강의에서 설정한게 있었나요?


2026-08-30 21:45:01,917 - httpx - INFO - HTTP Request: GET https://rgmdxxsyyylcdsbvaiqs.supabase.co/rest/v1/economic_and_stock_data?select=%2A&%EB%82%A0%EC%A7%9C=eq.2006-01-01 "HTTP/2 200 OK"

2026-08-30 21:45:02,210 - httpx - INFO - HTTP Request: POST https://rgmdxxsyyylcdsbvaiqs.supabase.co/rest/v1/economic_and_stock_data "HTTP/2 401 Unauthorized"

경제 데이터 업데이트 중 오류 발생: {'message': 'new row violates row-level security policy for table "economic_and_stock_data"', 'code': '42501', 'hint': None, 'details': None}

Traceback (most recent call last):

File "C:\Users\dbsxo\OneDrive\Desktop\banbu-stocktrading-final\app\services\economic_service.py", line 204, in update_economic_data_in_background

supabase.table("economic_and_stock_data").insert(insert_dict).execute()

File "C:\Users\dbsxo\AppData\Local\Programs\Python\Python312\Lib\site-packages\postgrest\_sync\request_builder.py", line 96, in execute

raise APIError(dict(json_obj))

postgrest.exceptions.APIError: {'message': 'new row violates row-level security policy for table "economic_and_stock_data"', 'code': '42501', 'hint': None, 'details': None}

ERROR: Traceback (most recent call last):

File "C:\Users\dbsxo\OneDrive\Desktop\banbu-stocktrading-final\app\services\economic_service.py", line 204, in update_economic_data_in_background

supabase.table("economic_and_stock_data").insert(insert_dict).execute()

File "C:\Users\dbsxo\AppData\Local\Programs\Python\Python312\Lib\site-packages\postgrest\_sync\request_builder.py", line 96, in execute

raise APIError(dict(json_obj))

postgrest.exceptions.APIError: {'message': 'new row violates row-level security policy for table "economic_and_stock_data"', 'code': '42501', 'hint': None, 'details': None}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\dbsxo\AppData\Local\Programs\Python\Python312\Lib\site-packages\starlette\routing.py", line 648, in lifespan

async with self.lifespan_context(app) as maybe_state:

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

File "C:\Users\dbsxo\AppData\Local\Programs\Python\Python312\Lib\contextlib.py", line 210, in aenter

return await anext(self.gen)

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

File "C:\Users\dbsxo\AppData\Local\Programs\Python\Python312\Lib\site-packages\fastapi\routing.py", line 240, in merged_lifespan

async with original_context(app) as maybe_original_state:

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

File "C:\Users\dbsxo\AppData\Local\Programs\Python\Python312\Lib\contextlib.py", line 210, in aenter

return await anext(self.gen)

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

File "C:\Users\dbsxo\OneDrive\Desktop\banbu-stocktrading-final\app\main.py", line 18, in lifespan

await startup()

File "C:\Users\dbsxo\OneDrive\Desktop\banbu-stocktrading-final\app\main.py", line 48, in startup

await update_economic_data_in_background()

File "C:\Users\dbsxo\OneDrive\Desktop\banbu-stocktrading-final\app\services\economic_service.py", line 251, in update_economic_data_in_background

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

Exception: 경제 데이터 업데이트 중 오류: {'message': 'new row violates row-level security policy for table "economic_and_stock_data"', 'code': '42501', 'hint': None, 'details': None}

ERROR: Application startup failed. Exiting.


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

답변 0

Kaggle 노트북(predict.ipynb) 관련

0

17

1

git bash .env

1

18

1

알파벤티지 sleep(5) 관련 문의

1

45

2

실전 계좌에서 운영하고 계신 분 계신가요?

1

45

2

클로드

1

50

2

pip install -r requirements.txt

0

57

2

명령 프롬프트

0

44

2

slack 알림 연동 강의 관련

1

74

2

supabase_key 관련

1

82

3

python run.py 실행시 에러 문제

1

100

2

커서창

1

66

2

cursor 환경

1

66

2

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

1

60

2

저장 공간

1

63

2

colab 코드 실행시 error

1

52

2

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

2

79

4

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

1

72

2

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

1

58

1

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

1

61

2

비중 및 매수 종목수 조정.

1

65

2

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

1

76

2

슬롯 관련 문의

1

54

2

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

1

110

4

안녕하세요

1

94

3