import requests # Use the API key from .env if possible, or try a dummy one to see the error type url = "http://localhost:8000/api/help/catalog" headers = { "X-API-Key": "test-key" # Will likely fail auth but show if route exists } try: print(f"Calling {url}...") response = requests.get(url, headers=headers) print(f"Status Code: {response.status_code}") print(f"Response: {response.text}") except Exception as e: print(f"Error: {e}") # Try another route that definitely exists url2 = "http://localhost:8000/api/help/content" url3 = "http://localhost:8000/api/auth/me" for url in [url2, url3]: try: print(f"\nCalling {url}...") response = requests.get(url, headers=headers) print(f"Status Code: {response.status_code}") print(f"Response: {response.text}") except Exception as e: print(f"Error: {e}")