---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/82005#article
headline: "82005: Function execution resulted in an error log"
url: https://www.twilio.com/docs/api/errors/82005
inLanguage: en
dateModified: 2026-06-08T11:29:20.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 82005: Function execution resulted in an error log

Log Type: APPLICATION

Log Level: ERROR

## Description

This error appears when your Twilio Function writes an error-level log during execution. In Functions, calling `console.error()` creates an error log entry. Twilio also surfaces `WARN` and `ERROR` log lines in the Debugger, which helps you trace the code path and message that triggered the event.

### Possible causes

* Your Function code called `console.error()`.
* A conditional branch in your handler logged an application failure with `console.error()`.
* An exception handler caught an error and wrote the details to `console.error()`.
* Your Function emitted an error-level log while processing a request, even if the Function still returned a response.

### Possible solutions

* Review the highlighted log message to identify the exact code path that called `console.error()`.
* Open your Function's live logs in Console or retrieve logs from the `/Logs` resource to inspect the full invocation output.
* Use `twilio serverless:logs --tail` while testing so you can see error logs as your deployed Function runs.
* Update your Function to handle expected conditions before they reach an error path.
* Reserve `console.error()` for actual failures. Use `console.warn()` or `console.log()` for non-fatal diagnostic output when appropriate.
* Redeploy your Function and test again to confirm the invocation no longer emits an error-level log.

#### Additional resources

* [Debug your Function(s)](/docs/serverless/functions-assets/functions/debugging)
* [Logs resource](/docs/serverless/api/resource/logs)
* [Function Execution](/docs/serverless/functions-assets/functions/invocation)
