ctrlshiftba
ctrlshiftba3w ago

Thread

No description
4 Replies
ctrlshiftba
ctrlshiftbaOP3w ago
example ➜ self-convex git:(main) ✗ docker compose exec backend ./generate_admin_key.sh Admin key: convex-self-hosted|0121b5eddb6f7b303338106ad9a77a963b236e0e2ce9cf99735b51b318fe71374f25f37517 ➜ self-convex git:(main) ✗ curl 'http://127.0.0.1:3210/api/check_admin_key' \ -H 'Accept: /' \ -H 'Accept-Language: en-US,en;q=0.9' \ -H 'Authorization: Convex convex-self-hosted|0121b5eddb6f7b303338106ad9a77a963b236e0e2ce9cf99735b51b318fe71374f25f37517' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -H 'Convex-Client: dashboard-0.0.0' \ -H 'DNT: 1' \ -H 'Origin: http://localhost:6791' \ -H 'Referer: http://localhost:6791/' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Site: cross-site' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36' \ -H 'sec-ch-ua: "Not)A;Brand";v="8", "Chromium";v="138"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-gpc: 1' {"code":"BadAdminKey","message":"The provided admin key was invalid for this instance"}% ^ there's a curl example. I generate the key, then try and use it and I'm told it's invalid?
ctrlshiftba
ctrlshiftbaOP3w ago
opened an issue here something from my host laptop is impacting this... tried the same steps on a different machine everything works. how is that possible if this is all happening inside docker?
taroj1205
taroj12053w ago
i had this issue but i needed to change the env variable to CONVEX_SITE_URL=http://localhost:3211

Did you find this page helpful?