-
Notifications
You must be signed in to change notification settings - Fork 42
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
Contentful::Link rather than Contentful::Asset Cached object #110
Comments
I have the same Issue reported in contentful.rb contentful/contentful.rb#138
|
Hi @niquepa, Can you let me know which version of the integration and SDK you are using? This issue has been fixed almost a year ago. The Cheers |
Hi @dlitvakb I'm including master branch:
checking the Gemfile.lock seems like I'm using v0.2.0:
Should I use v1.0.0 ? |
Hey @niquepa, Please try updating to use Cheers |
This is how my Gemfile.lock looks now:
but the error stills present. The way I get the content from contentful is:
Web::Dentist class is just 3 lines of code:
The weird thing is that the first element always has the proper relation as
As you can see in the below images, that happens for all the relations, the specialty is not loaded either: Thanks for your help |
Hey @niquepa, Can you create a support request here Cheers |
@dlitvakb Done: thanks. |
I have the following code to get some entries from contentful:
each entry has a relation to an asset (picture), so I'm accessing it like:
It works without any problem and if you inspect each picture you'll see:
but if I try to cache the response like this:
and then iterate the entries, only the first item has the relation as Contentful::Asset, the rest of items have Contenful::Link, if you inspect each entry you'll see:
So it throws an error, again it only happens when you cache the response, I'm using memcached for it.
The text was updated successfully, but these errors were encountered: