Fix httpx issue
Browse files- app.py +2 -1
- inference_app.log +43 -0
- prestashop_mcp/__pycache__/server.cpython-313.pyc +0 -0
app.py
CHANGED
|
@@ -4,8 +4,9 @@ import logging
|
|
| 4 |
import sys
|
| 5 |
import time
|
| 6 |
import json
|
|
|
|
| 7 |
from datetime import datetime
|
| 8 |
-
from typing import Any, Dict, List, Optional
|
| 9 |
from fastapi import FastAPI, HTTPException, Request
|
| 10 |
from fastapi.responses import HTMLResponse
|
| 11 |
from pydantic import BaseModel, Field
|
|
|
|
| 4 |
import sys
|
| 5 |
import time
|
| 6 |
import json
|
| 7 |
+
import httpx
|
| 8 |
from datetime import datetime
|
| 9 |
+
from typing import Any, Dict, List, Optional, Union
|
| 10 |
from fastapi import FastAPI, HTTPException, Request
|
| 11 |
from fastapi.responses import HTMLResponse
|
| 12 |
from pydantic import BaseModel, Field
|
inference_app.log
CHANGED
|
@@ -18,3 +18,46 @@
|
|
| 18 |
2025-09-12 19:04:04,723 - __main__ - INFO - β
MCP client initialized successfully in 0.00s
|
| 19 |
2025-09-12 19:04:04,723 - __main__ - INFO - π οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
|
| 20 |
2025-09-12 19:04:04,723 - __main__ - INFO - π― Application startup complete, ready to serve requests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
2025-09-12 19:04:04,723 - __main__ - INFO - β
MCP client initialized successfully in 0.00s
|
| 19 |
2025-09-12 19:04:04,723 - __main__ - INFO - π οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
|
| 20 |
2025-09-12 19:04:04,723 - __main__ - INFO - π― Application startup complete, ready to serve requests
|
| 21 |
+
2025-09-12 19:25:26,554 - __main__ - INFO - π Starting HF Inference Point server
|
| 22 |
+
2025-09-12 19:25:26,554 - __main__ - INFO - π Host: 0.0.0.0
|
| 23 |
+
2025-09-12 19:25:26,554 - __main__ - INFO - π Port: 7860
|
| 24 |
+
2025-09-12 19:25:26,554 - __main__ - INFO - π Environment: development
|
| 25 |
+
2025-09-12 19:25:26,554 - __main__ - INFO - π Log level: DEBUG
|
| 26 |
+
2025-09-12 19:25:26,554 - __main__ - INFO - π Working directory: /Users/jdewitte/www/mcp/huggingface/inference_point
|
| 27 |
+
2025-09-12 19:25:26,554 - __main__ - INFO - π Python version: 3.13.5 (main, Jun 11 2025, 15:36:57) [Clang 17.0.0 (clang-1700.0.13.3)]
|
| 28 |
+
2025-09-12 19:25:26,554 - __main__ - INFO - π― Starting uvicorn server with debug logging
|
| 29 |
+
2025-09-12 19:25:26,555 - asyncio - DEBUG - Using selector: KqueueSelector
|
| 30 |
+
2025-09-12 19:25:26,575 - __main__ - INFO - π Starting HF Inference Point application
|
| 31 |
+
2025-09-12 19:25:26,575 - __main__ - INFO - π¦ Environment: unknown
|
| 32 |
+
2025-09-12 19:25:26,575 - __main__ - INFO - π Default PrestaShop URL: https://shop.mcp.integration.ambris.com
|
| 33 |
+
2025-09-12 19:25:26,575 - __main__ - INFO - π§ Attempting to initialize MCP client...
|
| 34 |
+
2025-09-12 19:25:26,575 - mcp.server.lowlevel.server - DEBUG - Initializing server 'prestashop-mcp'
|
| 35 |
+
2025-09-12 19:25:26,575 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListToolsRequest
|
| 36 |
+
2025-09-12 19:25:26,575 - mcp.server.lowlevel.server - DEBUG - Registering handler for CallToolRequest
|
| 37 |
+
2025-09-12 19:25:26,575 - prestashop_mcp.client - INFO - MCP client initialized with 4 tools
|
| 38 |
+
2025-09-12 19:25:26,575 - __main__ - INFO - β
MCP client initialized successfully in 0.00s
|
| 39 |
+
2025-09-12 19:25:26,575 - __main__ - INFO - π οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
|
| 40 |
+
2025-09-12 19:25:26,575 - __main__ - INFO - π― Application startup complete, ready to serve requests
|
| 41 |
+
2025-09-12 19:26:56,868 - __main__ - INFO - π Starting HF Inference Point server
|
| 42 |
+
2025-09-12 19:26:56,868 - __main__ - INFO - π Host: 0.0.0.0
|
| 43 |
+
2025-09-12 19:26:56,868 - __main__ - INFO - π Port: 7860
|
| 44 |
+
2025-09-12 19:26:56,869 - __main__ - INFO - π Environment: development
|
| 45 |
+
2025-09-12 19:26:56,869 - __main__ - INFO - π Log level: DEBUG
|
| 46 |
+
2025-09-12 19:26:56,869 - __main__ - INFO - π Working directory: /Users/jdewitte/www/mcp/huggingface/inference_point
|
| 47 |
+
2025-09-12 19:26:56,869 - __main__ - INFO - π Python version: 3.13.5 (main, Jun 11 2025, 15:36:57) [Clang 17.0.0 (clang-1700.0.13.3)]
|
| 48 |
+
2025-09-12 19:26:56,869 - __main__ - INFO - π― Starting uvicorn server with debug logging
|
| 49 |
+
2025-09-12 19:26:56,870 - asyncio - DEBUG - Using selector: KqueueSelector
|
| 50 |
+
2025-09-12 19:26:56,889 - __main__ - INFO - π Starting HF Inference Point application
|
| 51 |
+
2025-09-12 19:26:56,889 - __main__ - INFO - π¦ Environment: unknown
|
| 52 |
+
2025-09-12 19:26:56,889 - __main__ - INFO - π Default PrestaShop URL: https://shop.mcp.integration.ambris.com
|
| 53 |
+
2025-09-12 19:26:56,889 - __main__ - INFO - π§ Attempting to initialize MCP client...
|
| 54 |
+
2025-09-12 19:26:56,889 - mcp.server.lowlevel.server - DEBUG - Initializing server 'prestashop-mcp'
|
| 55 |
+
2025-09-12 19:26:56,889 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListToolsRequest
|
| 56 |
+
2025-09-12 19:26:56,889 - mcp.server.lowlevel.server - DEBUG - Registering handler for CallToolRequest
|
| 57 |
+
2025-09-12 19:26:56,889 - prestashop_mcp.client - INFO - MCP client initialized with 4 tools
|
| 58 |
+
2025-09-12 19:26:56,889 - __main__ - INFO - β
MCP client initialized successfully in 0.00s
|
| 59 |
+
2025-09-12 19:26:56,889 - __main__ - INFO - π οΈ MCP client type: <class 'prestashop_mcp.client.LocalMCPClient'>
|
| 60 |
+
2025-09-12 19:26:56,889 - __main__ - INFO - π― Application startup complete, ready to serve requests
|
| 61 |
+
2025-09-12 19:26:56,890 - __main__ - INFO - π Application shutdown initiated
|
| 62 |
+
2025-09-12 19:26:56,890 - __main__ - INFO - β
MCP client closed successfully
|
| 63 |
+
2025-09-12 19:26:56,890 - __main__ - INFO - π Application shutdown complete
|
prestashop_mcp/__pycache__/server.cpython-313.pyc
CHANGED
|
Binary files a/prestashop_mcp/__pycache__/server.cpython-313.pyc and b/prestashop_mcp/__pycache__/server.cpython-313.pyc differ
|
|
|