InDB config is not working #2944
-
Hi, I want to use dynamic schema feature, and I followed the documentation but couldn't make it work. (PGRST106) The schema must be one of the following: public docker-compose file
created api schema:
dynamic schema:
I copied the sql query that fetches DB config, and it is showing the schemas.
Result of the Above Query: When I run the following queries, it is working but in the documentation, it is mentioned that this is not the recommended way to do it.
Can someone help on how to make and in-db configuration work |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi! The one part I see that's different from the tutorial is: create schema postgrest;
grant usage on schema api to authenticator;
... It should be: grant usage on schema postgrest to authenticator; It should give you an error when starting the postgrest service, although it won't stop the process. Check the logs, maybe that's the case. |
Beta Was this translation helpful? Give feedback.
-
Thanks @laurenceisla, for the answer. I tried running both following queries
and
but it didn't work. I will fix the description of the question. api written mistakenly. |
Beta Was this translation helpful? Give feedback.
-
I did configurain reload too. even I removed Postgrest docker container and redeployed it again but still didn't make it work. I changed view name from location to location_api, and I got the following error:
Make postgrest call:
but when I provide schema name in the environment variable, it is working.
|
Beta Was this translation helpful? Give feedback.
-
I found the issue. I am using Mac M1. My docker pulls the image for the platform Linux/arm64/v8. When I change the platform in the docker compose to linux.amd64, it starts working. Looks like there is a problem related to arm64 image. This is new image and config for docker
|
Beta Was this translation helpful? Give feedback.
I found the issue.
I am using Mac M1. My docker pulls the image for the platform Linux/arm64/v8.
When I change the platform in the docker compose to linux.amd64, it starts working.
Looks like there is a problem related to arm64 image.
This is new image and config for docker