500 Internal Server Error

:bug: Describe the Bug

I’ve been working with perplexity for over a year now and never got any errors, today I suddently keep getting 500 errors with the API.

:white_check_mark: Expected Behavior

Return a normal JSON response.

:cross_mark: Actual Behavior

I have changed nothing on my end, the request just keeps failing after like a minute.

:pushpin: API Request & Response (if applicable)

:globe_showing_europe_africa: Environment

  • API Version: sonar-reasoning-pro
  • SDK (if applicable): NodeJS V22.14
  • Operating System: Windows & Linux

:paperclip: Logs or Screenshots (if applicable)

0|worker | {
0|worker | error: {
0|worker | message: ‘An internal server error has occurred.’,
0|worker | type: ‘internal_server_error’,
0|worker | code: 500
0|worker | }
0|worker | }
0|worker | [Worker] Error: Cannot read properties of undefined (reading ‘0’)
0|worker | result null

:memo: Additional Context

nope

Hey @Lars — this report is from November 2025, and intermittent 500 errors at that time were related to a transient infrastructure issue that has since been resolved.

If you are still experiencing 500 errors, please open a new thread with the details (model, request payload, frequency) or email api@perplexity.ai and the team can investigate.

General tip for production usage: implement retry logic with exponential backoff for 5xx errors — these are almost always transient.