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)
<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 !