You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contentful 1.11.3 on Python 3.6.6 throwing TypeError when trying to answer the following call:
client.entries({'content_type': 'blogPost'})
The content model is roughly this:
blogPost
- title : short text
- slug : short text
- hero_image : media
- description : long text
- body : references, many, accept only 'blogPostLayout'
- author : reference, accept only 'person'
- tags : short text, list
- publish date : datetime
- external comments id : number, unique
blogPostLayout
- slug : short text, unique
- main body : rich text, allow linking other entries, allow only 'blogPostLayout', 'blogPostMarkdown'
blogPostMarkdown
- content : long text, format Markdown
blogPostRichContent
- content : rich text, allow linking inline entries
This issue was caused by a blogPost that had in its body references to the same blogPostLayout twice, and additionally one other blogPostLayout. These blogPostLayouts themselves contained only an embedded entry to one blogPostMarkdown each.
The issue would clear after removing the second reference to the same blogPostLayout
I can provide further details if you need, and am happy to be contacted by Contentful support directly.
I'm not sure if the library includes a way to dump the schema?
My best guess for the cause is that the client library is trying to populate something it has already 'hydrated' (if I understand the nomenclature)
Could you please create a support request on https://support.contentful.com and ask for me, please include Space ID and Delivery Access Token, so that I can take a look at what the issue may be.
Contentful 1.11.3 on Python 3.6.6 throwing
TypeError
when trying to answer the following call:The content model is roughly this:
This issue was caused by a
blogPost
that had in itsbody
references to the sameblogPostLayout
twice, and additionally one otherblogPostLayout
. TheseblogPostLayout
s themselves contained only an embedded entry to oneblogPostMarkdown
each.The issue would clear after removing the second reference to the same
blogPostLayout
I can provide further details if you need, and am happy to be contacted by Contentful support directly.
I'm not sure if the library includes a way to dump the schema?
My best guess for the cause is that the client library is trying to populate something it has already 'hydrated' (if I understand the nomenclature)
Full traceback:
The text was updated successfully, but these errors were encountered: