Resolving links fails when using `getEntries` with locale `*`
See original GitHub issue- Node Version: v7.10.1
- Npm Version: 4.2.0 (actually using yarn 0.27.5)
- Platform: MacOS 10.12.6
- Package Version: contentful@4.6.1
I’ve been trying to upgrade our old version of the contenful npm package but ran into a problem where it seems that links are not generated correctly which breaks some functionality that seems to be working with out older version of the npm package (3.8.0). We are doing a quite simple query as follows: return client.getEntries({ content_type: 'pageContent', 'fields.code': pageContent, locale: '*', 'include': 4 })
.
However when we try to access a property like this: return response.items[0].fields.mainContent['en-US']
we get the following: { sys: { type: 'Link', linkType: 'Entry', id: '1JY18hZGfO6SaEI6CCy0i0' } }
which seems to indicate that the link has not been correctly resolved.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Linked entries and assets in Contentful
Linked assets and entries in Contentful are a mystery no more! Let's explore how to work with links in the REST and GraphQP...
Read more >can array of links be fetched / resolved in an Entry request
Is there a way to get those links to be resolved and returned in the resulting JSON response? I am trying this via...
Read more >ContentfulClientAPI - Contentful Developer Documentation
Contentful Delivery API Client. Contains methods which allow access to the different kinds of entities present in Contentful (Entries, Assets, etc).
Read more >contentful - npm
Content retrieval through Content Delivery API and Content Preview API. Synchronization · Localization support · Link resolution; Built in rate ...
Read more >Fix list for IBM WebSphere Application Server V8.5
IT36699, Extend the fix IT32725 to include the use of CCDTs. IT38158, Connection handle leak when a MQ-JMS application security exit reports an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello everyone,
I have good news:
Our API team rolled out a bugfix for the preview API.
locale=*
will now no more output thesys.locale
property. This means, that the SDK is now working as expected. You do not need to update anything. It will just work.All the best, Benedikt
contentful: “^3.7.0”, node - v8.4.0, npm - 5.3.0, locale - * is not working. Is there any workaround to get entries for specific content type for all locales?