Skip to content

Commit 86379e0

Browse files
authored
Merge pull request #7255 from segmentio/spencerattick-patch-5
Add FAQ on Source Function Infinite Looping Error
2 parents 0b6f0f0 + 22f8ea9 commit 86379e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/connections/functions/source-functions.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,3 +438,9 @@ The test function interface has a 4KB console logging limit. Outputs surpassing
438438
#### Can I send a custom response from my Source Function to an external tool?
439439

440440
No, Source Functions can't send custom responses to the tool that triggered the Function's webhook. Source Functions can only send a success or failure response, not a custom one.
441+
442+
#### Why am I seeing the error "Functions are unable to send data or events back to their originating source" when trying to save my Source Function?
443+
444+
This error occurs because Segment prevents Source Functions from sending data back to their own webhook endpoint (`https://fn.segmentapis.com`). Allowing this could create an infinite loop where the function continuously triggers itself.
445+
446+
To resolve this error, check your Function code and ensure the URL `https://fn.segmentapis.com` is not included. This URL is used to send data to a Source Function and shouldn't appear in your outgoing requests. Once you remove this URL from your code, you’ll be able to save the Function successfully.

0 commit comments

Comments
 (0)