https://linen.dev logo
Accessing error from toolcall
# 🖥│support-forum
i
Hi, I can see handletoolcall is resulting in an error, which is being logged and is accessible via your website. How do I access these logs from the actual call in the code?
Copy code
Website log:
{7 Items
data: {...}
version: "0_1"
successfull: false
error: "GET /jobs failed with status 422. Response: {"error":"Request subdomain does not match account subd....
Output from the result of handleToolCalls:
Copy code
[
  {
    "role": "user",
    "content": [
      {
        "type": "tool_result",
        "tool_use_id": "toolu_01Lk1CSMyjnmLdRvryunjgMp",
        "content": "{}"
      }
    ]
  }
]
c
Hi, Could you provide some context regarding the Issue? Also, Could you please share reproducible code snippet along with SDK versions? Thanks!
c
We were able to reproduce the Issue, I've escalated the Issue to the team.
i
Hey Uday, thanks for looking. What behaviour would you expect? Do you expect the error to be accessible from the result?
c
Yes, the errors should be accessible as a result itself.
Meanwhile, you can export
COMPOSIO_LOG=debug
in the terminal or use it in environment. You should be able to see the error. I've attached an image for your reference. https://cdn.discordapp.com/attachments/1399303631144091669/1399339644986069012/Screenshot_2025-07-28_at_16.03.56.png?ex=6888a419&is=68875299&hm=67fae56130a452ccbb7be2db81c2f417bdd03202f4983839611fdfce2d2fc8f0&
i
Thank you, I can confirm that is getting logged to console with that setting. If you can please let me know when you have more info on the errors in the result, that would be great.
c
Yes, I'll keep you updated regarding the Issue.