Circular reference on simple Webhook call

Hello community,

I’ve seen a question about circular reference but no solution.

I have a simple webhook listening to POST request.

This is the xml I’m sending (it actually is a push notification from YouTube using pubsubhuhub) :slight_smile:

<feed xmlns:yt="http://www.youtube.com/xml/schemas/2015" xmlns="http://www.w3.org/2005/Atom">
  <link rel="hub" href="https://pubsubhubbub.appspot.com" />
  <link rel="self" href="https://www.youtube.com/xml/feeds/videos.xml?channel_id=UCtEorrVfo4GQsN82HsrnKyk" />
  <title>YouTube video feed</title>
  <updated>2018-12-12T06:02:55.950497732+00:00</updated>
  <entry>
    <id>yt:video:_em_FFNUcvs</id>
    <yt:videoId>_em_FFNUcvs</yt:videoId>
    <yt:channelId>UCtEorrVfo4GQsN82HsrnKyk</yt:channelId>
    <title>December 12, 20</title>
    <link rel="alternate" href="https://www.youtube.com/watch?v=_em_FFNUcvs" />
    <author>
      <name>Ak Ram</name>
      <uri>https://www.youtube.com/channel/UCtEorrVfo4GQsN82HsrnKyk</uri>
    </author>
    <published>2018-12-12T05:57:07+00:00</published>
    <updated>2018-12-12T06:02:55.950497732+00:00</updated>
  </entry>
</feed>

Why do I have this error ?

Converting circular structure to JSON → starting at object with constructor ‘Object’ | property ‘parent’ → object with constructor ‘Document’ | property ‘children’ → object with constructor ‘Array’ — index 0 closes the circle"

thanks a lot for your help !

Actually it seems that my second node (and HTML extract) is the issue, not the Webhook itself

Hi @Steph67, I am sorry to hear you’re having trouble here. I quickly tried reading this data structure on my end but didn’t run into trouble here.

Would you be able to share a simplified example workflow using which the problem can be reproduced? If this only happens when using the Webhook node (and not say when simply setting your example data via the Set node), could you also confirm how exactly the webhook request needs to look like?

Actually I had no trouble, only a bad use of n8n nodes on my part.

1 Like

Well, I am glad to hear this is sorted, many thanks for confirming!