# supabase "code":"PGRST123" error

- 주소: https://duotone.co.kr/entry/supabase-codePGRST123-error
- 글쓴이: 서기㏇
- 카테고리: 개발·프로그래밍
- 작성일: 2024-09-03
- 태그: .index(), error, function, pgrst123, Supabase

{"code":"PGRST123","details":null,"hint":null,"message":"Use of aggregate functions is not allowed"} 

supabase에서 권한문제로 나타나는 에러이다. 
아래구문을 실행한후 호출하면 에러가 해결된다. 

```
ALTER ROLE authenticator SET pgrst.db_aggregates_enabled = 'true';
NOTIFY pgrst, 'reload config';
```
