question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
axe312gercommented, Oct 16, 2017

Good news everyone

Hello everyone,

I have good news:

Our API team rolled out a bugfix for the preview API. locale=* will now no more output the sys.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

0reactions
abdul-qadircommented, Sep 27, 2017

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found