-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent API Results #138
Comments
Hey @rivendare, Looks like your Asset has been unpublished, the CDA does not return unpublished Assets/Entries, while CPA does. Cheers |
I have this issue currently but it only appears when we put a cache on an object. When I receive this object from contentful directly I get an |
More data on this:
|
I've delved into this some more over the week end, I clearly see two instances of I also printed in |
Found the cause of this issue, About to release a patch. Cheers |
We're using Contentful on our Production environment to fetch an entry (which has various nested containers / entries) to populate our home page, but today we had an issue that took down our site: one of the entries within one of the nested containers is returning a Contentful::Link instead of the expected Contentful::Asset (which it had been returning previously).
As expected, this caused a sudden and rather catastrophic failure when it threw an error trying to fetch an image.url property off a Link instead of an Asset.
I've tried initializing the client with all sorts of properties through the documentation, e.g. max_include_resolution_depth, include, etc., but none seem to change why it's returning this.
Was there any recent API change that would've resulted in this?
What's strange is if we hit the Preview API in the same space, for the exact same object (identical ID), it resolves as an Asset. 🤔
The text was updated successfully, but these errors were encountered: