Skip to content
Troubleshooting 422...
 
Notifications
Clear all

Troubleshooting 422 Error Returns from Mistral.ai

3 Posts
3 Users
0 Reactions
7 Views
Volker_Biberger
(@volker_biberger)
Posts: 1
New Member
Topic starter
 

I'm currently utilizing mistral.ai and have it functioning correctly. My goal now is to leverage more advanced features such as agents and tools. However, when I attempt to use these functionalities, I receive a 422 error without any additional explanation.

  1. I'm invoking agents directly through an API Call (Screenshots are attached).
  2. I'm calling functions via the advanced options (Screenshots are attached).

Since both methods result in the 422 error, I suspect I'm missing some fundamental understanding but can't pinpoint what it is.

Any assistance would be greatly appreciated.

 
Posted : 16/02/2025 10:29 am
ocinv85tt
(@ocinv85tt)
Posts: 1
New Member
 

Encountered this issue because the content-length header was missing. You can set it using the length function, passing your body directly to it.

e.g. length({"agent_id": "ag:xxxx", "messages"...})

 
Posted : 19/04/2025 3:43 pm
samliew
(@samliew)
Posts: 293
Reputable Member
 

Welcome to the callin.io community!

You need to convert the 1.prompt variable to a JSON string first before you can append it into another JSON string.

To do this, you can try using the JSON “Transform to JSON” module —

Transforms any object to JSON.

For more information, see in the help centre.

Hope this helps! Let me know if there are any further questions or issues.

P.S.: Investing some effort into the callin.io Academy will save you lots of time and frustration using callin.io.

 
Posted : 20/04/2025 12:11 pm
Share: