# 🛠technical-support
Marco
Marco·20 replies

Good evening , im facing some issues with my api function

Marco
Marco23/12/2025 15:55

i got this error with : { "data": { "skill": "rest_api", "status": "error", "tool_name": "get_cr_data", "tool_response": "{"error": "HTTPConnectionPool(host='176.97.212.75', port=5000): Read timed out. (read timeout=10)", "debug_info": {"request_details": {"method": "GET", "url": "http://176.97.212.75:5000/api/cr/\", "request_body": {}, "timestamp": "2025-12-23T14:41:15.001619Z"}, "error_details": {"error_message": "HTTPConnectionPool(host='176.97.212.75', port=5000): Read timed out. (read timeout=10)", "error_type": "ReadTimeout", "timestamp": "2025-12-23T14:41:25.038030Z"}}, "success": false}", "tool_arguments": "{"cr_no":"78695"}", "ai_delta_message": "" }, "task": "tool:execution", "type": "debug", "message": "Tool get_cr_data executed with status error" }

Sahil | YourGPT
Sahil | YourGPT23/12/2025 16:01

Regarding the API you integrated, could you let me know how long it usually takes to respond?

Marco
Marco23/12/2025 16:01

let me check

Marco
Marco23/12/2025 16:09

10 to 11 secend

Sahil | YourGPT
Sahil | YourGPT23/12/2025 16:16

Okay, let me share this with team. if this is being caused by a timeout or any other issue.

standard1
Marco
Marco23/12/2025 16:36

@Sahil if the team testing let them use this cr: 78695 instade of cr_no

Sahil | YourGPT
Sahil | YourGPT23/12/2025 16:41

I think the issue is related to a timeout. Your API sometimes takes around 20 seconds to respond, while we currently have a limit of about 10 seconds for API execution and response generation.

Marco
Marco23/12/2025 16:42

if its the timeout , can we extend the limit to 30 seconds ?

Marco
Marco23/12/2025 16:42

20 - 30

Marco
Marco23/12/2025 16:52

@Sahil fix it and make it 7 seconds , but it dosent give the info

Sahil | YourGPT
Sahil | YourGPT23/12/2025 16:56

Could you please check the logs to see what data the API returned?

Marco
Marco23/12/2025 16:59

i doesn't returned anything it should return : it should return the values of this : cr_no lbl_cs_commercialName_ar lbl_cs_commercialName_en lbl_cs_companyType lbl_cs_crNo lbl_cs_expirationDate lbl_cs_registrationDate lbl_cs_status

Marco
Marco23/12/2025 17:01
{
  "data": {
    "skill": "rest_api",
    "status": "success",
    "tool_name": "get_cr_data",
    "tool_response": "{\"api_response\": {\"branch_no\": 1, \"cr_no\": \"{cr_no}\", \"debug\": \"Check debug_page.html file to see what the page contains\", \"error\": \"Elements found but no data extracted. Page source saved to debug_page.html for inspection.\", \"success\": false}, \"debug_info\": {\"request_details\": {\"method\": \"GET\", \"url\": \"http://176.97.212.75:5000/api/cr/{cr_no}\", \"request_body\": {}, \"timestamp\": \"2025-12-23T16:51:29.355187Z\"}, \"response_details\": {\"status_code\": 200, \"response_time\": 7.124226, \"url\": \"http://176.97.212.75:5000/api/cr/%7Bcr_no%7D\"}}, \"success\": true, \"status_code\": 200, \"is_json\": true}",
    "tool_arguments": "{\"cr_no\":\"190207\"}",
    "ai_delta_message": ""
  },
  "task": "tool:execution",
  "type": "debug",
  "message": "Tool get_cr_data executed with status success"
}

{
  "data": {
    "payload": {
      "type": 7,
      "message": "API Call - get_cr_data",
      "streaming": true,
      "extra_data": {
        "tool": {
          "id": "call_Fgb1MrWPilQYf1KNBwDJZyfE",
          "function": {
            "name": "get_cr_data",
            "arguments": "{\"cr_no\":\"190207\"}"
          }
        },
        "status": "success"
      },
      "content_type": "text"
    }
  },
  "task": "message:received",
  "type": "debug",
  "message": "message received"
}
Sahil | YourGPT
Sahil | YourGPT23/12/2025 17:05

Could you please run the test again? i've done some api function function changes.

Marco
Marco23/12/2025 17:10

it gives the user 404 cuz it should be : /api/cr/^the number here^

Sahil | YourGPT
Sahil | YourGPT23/12/2025 17:21

This issue has been fixed. To use the user parameter, please use the available suggestion variables.

Marco
Marco23/12/2025 17:30

thank you , for the next time where can i find the suggestion variables?

Sahil | YourGPT
Sahil | YourGPT23/12/2025 17:39

Just type the values inside {{ }}. These represent dynamic variables that you’ve already added in the parameters.

and these variables are contained in TOOL_PARAMS....

Marco
Marco25/12/2025 08:13

Good morning Sahil , im facing a new issue regrading the api

Marco
Marco25/12/2025 08:15

is it the time limet again? @Sahil

  "data": {
    "skill": "rest_api",
    "status": "error",
    "tool_name": "get_cr_data",
    "tool_response": "{\"error\": \"HTTPConnectionPool(host='176.97.212.75', port=5000): Read timed out. (read timeout=10)\", \"debug_info\": {\"request_details\": {\"method\": \"GET\", \"url\": \"http://176.97.212.75:5000/api/cr/48459\", \"request_body\": {}, \"timestamp\": \"2025-12-25T08:11:26.975452Z\"}, \"error_details\": {\"error_message\": \"HTTPConnectionPool(host='176.97.212.75', port=5000): Read timed out. (read timeout=10)\", \"error_type\": \"ReadTimeout\", \"timestamp\": \"2025-12-25T08:11:37.011011Z\"}}, \"success\": false}",
    "tool_arguments": "{\"cr_no\":\"48459\"}",
    "ai_delta_message": ""
  },
  "task": "tool:execution",
  "type": "debug",
  "message": "Tool get_cr_data executed with status error"
}