Skip to content

Commit

Permalink
debug flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Reynolds committed Apr 29, 2024
1 parent bc04a84 commit 5b4f947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion labapp/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from flask_caching import Cache
import requests
import markdown
import validators
from ce import get_ce_info, get_ce_state

app = Flask(__name__)
Expand Down Expand Up @@ -124,6 +123,8 @@ def lb_aws():
url = f"https://{ns}.{app.config['base_url']}/raw"
print(url)
response = requests.get(url, timeout=5)
print(response.text)
print(response.json())
response.raise_for_status()
if response.json()['request_env'] != "AWS":
raise Exception("Invalid request env.")
Expand Down

0 comments on commit 5b4f947

Please sign in to comment.