Upload main.py
Browse files
main.py
CHANGED
|
@@ -36,6 +36,15 @@ def setup_credentials_from_env():
|
|
| 36 |
with open("/app/credentials/ga4-credentials.json", "w") as f:
|
| 37 |
f.write(ga4_json)
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
# Run setup immediately
|
| 40 |
setup_credentials_from_env()
|
| 41 |
|
|
|
|
| 36 |
with open("/app/credentials/ga4-credentials.json", "w") as f:
|
| 37 |
f.write(ga4_json)
|
| 38 |
|
| 39 |
+
# DEBUG: Print the email being used
|
| 40 |
+
try:
|
| 41 |
+
with open("/app/credentials/gsc-credentials.json", "r") as f:
|
| 42 |
+
creds = json.load(f)
|
| 43 |
+
print(f"🕵️ DEBUG: Using Service Account Email: {creds.get('client_email')}")
|
| 44 |
+
print(f"🕵️ DEBUG: Make sure THIS email is an Owner in GSC for https://fixyfile.com")
|
| 45 |
+
except Exception as e:
|
| 46 |
+
print(f"Could not read credentials for debug: {e}")
|
| 47 |
+
|
| 48 |
# Run setup immediately
|
| 49 |
setup_credentials_from_env()
|
| 50 |
|