Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,14 +8,14 @@ app = Flask(__name__)
|
|
8 |
# Securely store the secret key
|
9 |
app.secret_key = os.environ.get('FLASK_SECRET_KEY', 'your_secret_key')
|
10 |
|
11 |
-
# Fetch Salesforce credentials
|
12 |
-
SF_USERNAME = os.environ.get([email protected])
|
13 |
-
SF_PASSWORD = os.environ.get(Sati@1020)
|
14 |
-
SF_SECURITY_TOKEN = os.environ.get(sSSjyhInIsUohKpG8sHzty2q)
|
15 |
|
16 |
-
# Debugging:
|
17 |
if not SF_USERNAME or not SF_PASSWORD or not SF_SECURITY_TOKEN:
|
18 |
-
print("❌ ERROR: Missing Salesforce credentials.
|
19 |
exit(1)
|
20 |
|
21 |
# Establish Salesforce connection
|
|
|
8 |
# Securely store the secret key
|
9 |
app.secret_key = os.environ.get('FLASK_SECRET_KEY', 'your_secret_key')
|
10 |
|
11 |
+
# Fetch Salesforce credentials correctly (WRAPPED IN QUOTES)
|
12 |
+
SF_USERNAME = os.environ.get("[email protected]")
|
13 |
+
SF_PASSWORD = os.environ.get("Sati@1020")
|
14 |
+
SF_SECURITY_TOKEN = os.environ.get("sSSjyhInIsUohKpG8sHzty2q")
|
15 |
|
16 |
+
# Debugging: Check if credentials exist
|
17 |
if not SF_USERNAME or not SF_PASSWORD or not SF_SECURITY_TOKEN:
|
18 |
+
print("❌ ERROR: Missing Salesforce credentials. Please set SF_USERNAME, SF_PASSWORD, and SF_SECURITY_TOKEN.")
|
19 |
exit(1)
|
20 |
|
21 |
# Establish Salesforce connection
|