# Getting continuous 500 response on agents api

**URL:** <https://community.perplexity.ai/t/getting-continuous-500-response-on-agents-api/4066>\
**Category:** General\
**Tags:** sonar-api\
**Created:** [March 5, 2026, 8:57pm UTC](https://community.perplexity.ai/t/getting-continuous-500-response-on-agents-api/4066 "2026-03-05T20:57:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaswant\_Rajput](https://sea1.discourse-cdn.com/flex001/user_avatar/community.perplexity.ai/jaswant_rajput/32/2753_2.png) [@Jaswant\_Rajput](https://community.perplexity.ai/u/Jaswant_Rajput)\
**Post date:** [March 5, 2026, 8:57pm UTC](https://community.perplexity.ai/t/getting-continuous-500-response-on-agents-api/4066/1 "2026-03-05T20:57:21Z")

</div>

Req url: [https://api.perplexity.ai/v1/responses](https://api.perplexity.ai/v1/responses)  
Req body:

```json
{

  "input": "Classify this company into its primary industry and sub-industry.\n\nCompany Name: TexAu\nCompany Description: TexAu is a sales platform for linkedin where users can automate linkedin workflows\n\nUse standard industry categories:\nTechnology, Healthcare, Financial Services, Manufacturing, Retail, Real Estate, Education, Energy, Media & Entertainment, Professional Services, Transportation, Government, Agriculture, Construction, Telecommunications, Hospitality, Non-Profit, Other\n\nReturn ONLY valid JSON:\n{\"industry\": \"Technology\", \"subIndustry\": \"Enterprise Software\", \"naicsCode\": \"511210\", \"confidence\": 0.9}",
  "instructions": "If you cannot determine the answer, return the following fallback: Return {\"industry\": \"Unknown\", \"subIndustry\": \"Unknown\", \"naicsCode\": null, \"confidence\": 0.0}",
  "max_output_tokens": 8192,
  "model": "openai/gpt-5-mini",
  "stream":false

}

```

Getting 500 internal server error with this messaeg:

```json
{

    "error": {
        "message": "An internal server error occurred. Please retry your request.",
        "type": "server_error",
        "code": 500
    }
}

```

No way to debug what’s wrong
