---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/81017#article
headline: "81017: Error in Twilio Function Response"
url: https://www.twilio.com/docs/api/errors/81017
inLanguage: en
dateModified: 2026-03-11T22:03:37.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 81017: Error in Twilio Function Response

Log Level: ERROR

## Description

There was an error in the response back from a Twilio Function attached to the Studio flow.

### Possible causes

* Your Function timed out before responding
* Your Function returned an error response

### Possible solutions

* Your Function must contain a callback.
* Make sure you place the Function callback `callback(err, response)` is placed correctly in your Function code.
* If you are using a JavaScript promise, make sure the callback is called in both success and catch blocks.
* Your Function responded with an error.
