https://retellai.com/?utm_source=discord&utm_medium=seo logo
how come i keep getting this
# ❓・ai-evy-support
r
@AI Evy how come i keep getting this? how come i keep getting this 400 error when i'm uploading my json file?
a
Thanks for tagging me @reetam5807. I'll look through relevant sources and get back to you shortly.
### Answer Based on community reports, 400 errors when uploading JSON files in Retell AI typically occur due to a few common issues [(1) ]() [(2) ]() : Common causes: 1. JSON schema mismatch - The JSON payload doesn't match the expected schema with all required fields [(2) ]() 2. Invalid JSON syntax - Issues like trailing commas or incorrect formatting 3. Leftover parameters - When creating/editing functions, inherited arguments or parameters from previous functions may cause conflicts if not properly removed [(1) ]() 4. JSON schema not removed - If you remove parameters but don't update the corresponding JSON schema, this can trigger a 400 error 5. Too frequent updates - Updating too quickly can sometimes show error 400 even without changes Troubleshooting steps: - Validate your JSON syntax (no trailing commas, correct formatting) [(2) ]() - Ensure all required fields are included - If editing an existing function, make sure to remove both the parameters AND the JSON schema together [(1) ]() - Clear browser cache and try again [(3) ]() - Verify the name, tool_id, and url are properly formatted [(2) ]() If you can share your JSON file (without any sensitive information) , I can help identify the specific issue. **
​ To learn more, see the sources I considered: [[1] Issue creating function Error 400](https://discord.com/channels/1186424376300679209/1415753289714237460) [[2] 400 error when adding a function to a conversation flow](https://discord.com/channels/1186424376300679209/1411008678487916646) [[3] 400 error](https://discord.com/channels/1186424376300679209/1379119377760260127) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.