Questions tagged [contentful-api]

83 questions
0
votes
0 answers

Render image from Contentful to Angular

i have a problem displaying the images i upload to contentful on my angular site. From the browser console the image is correctly loaded but I see a blank image on the screen. Below my code: contentful.service.ts import { Injectable } from…
0
votes
0 answers

Getting 502 on Contentful request when deploying dockerized nextjs app

I'm trying to deploy a dockerized nextjs application but since I added Contentful to my app, the deployment fails on it's request. Error: ApolloError: Response not successful: Received status code 502 [slug].tsx import { GetStaticPathsContext, …
Reza Ghorbani
  • 2,396
  • 2
  • 28
  • 33
0
votes
0 answers

Partial Search Issue with Slashes in Contentful API and GUI

I'm facing an issue in Contentful when performing partial searches involving slashes ("/") across various APIs, including GraphQL, the Content Delivery API (CDN API), and the Contentful GUI. The problem arises when attempting to search for…
0
votes
0 answers

Contentful Delivery API - Cannot create new instance of custom model

I have some content types defined in a contentful space and I am trying to fetch some content I've created. These are the contentTypes I've created: { "name": "Configuration", "description": "configuration", "displayField": "name", …
Akinn
  • 1,896
  • 4
  • 23
  • 36
0
votes
2 answers

Contenful API gives TypeError: client.getEntry is not a function

Trying to use contentfil entry with API but getting some error TypeError: client.getEntry is not a function . Everything seems good, googled a lot but did not find any answer. const contentful = require('contentful-management') …
0
votes
1 answer

How to update a content's status using API in contentful.com

I have created a content in contentful.com. Was going through the api document, I tried the GET API to access the content, but i don't see edit/update content API anywhere in the document. Has anyone got any solution for it? I found a document…
0
votes
1 answer

"Entry must have a space associated" error thrown when updating an Entry via Contentful Management API

I'm trying to update a field of an entry in contentful, but this error is thrown each time: java.lang.IllegalArgumentException: entry must have a space associated. …
Ojonugwa Jude Ochalifu
  • 26,627
  • 26
  • 120
  • 132
0
votes
0 answers

Module not found: Can't resolve '@contentful/rich-text-react-renderer'

I am working on a Next.js project with Typescript. I fetch content from Contentful CMS. After fetching content I want to convert rich-text it to HTML code. for that purpose, I follow the instruction of contentful. link-…
0
votes
1 answer

Contentful API issue inside Vite and React App

I'm using contentful as my backend but I founded some issues while testing my app import { useParams } from 'react-router-dom'; import Footer from './Footer'; import Navbar from './Navbar'; import { useEffect, useState } from 'react'; import * as…
meddhiaka
  • 1
  • 3
0
votes
0 answers

OR query on sort?

I want to sort by promo start date value or promo end date value. Is this possible? query { promoCollection(sort: {OR: promoStart, promoEnd}) //ideally something like this but it won't work { title } } Is this possible? What's a…
journalsup
  • 138
  • 1
  • 10
0
votes
1 answer

Contentful API query for entries that do not have a tag

Is there a way to query for entries that don't have a specific tag? As per the docs to get a collection of entries based with a set of tags we can use…
0
votes
0 answers

How can I query DestinationsSubcategories.title field on contentful graphql?

I'm writing this query at contentful's graphql and I need to filter the DestinationsSubcategories's title Field. I was trying to add a where parameter but it's not working. query { advisorsCollection(where: { showOnAdvisorsPage: true }, limit:…
0
votes
0 answers

How create folder (view) in contentful CMA

I need to create an editors view to organize my posts and then add the users Can someone help me thanks Create folder to organize my contents in framework contentful
0
votes
0 answers

How to filter a query on linkedFrom?

I have a collection of authors. Some authors have written blogs, others have not. I can reference the total amount of blogs they've written using: query { authorCollection { linkedFrom { blogCollection { total } } …
journalsup
  • 138
  • 1
  • 10
0
votes
0 answers

Contentful Content Migration API try/catch on field creation?

We are trying to setup a workflow for delivering content model changes to our other environments (stage & prod). Right now, our approach is this: Create a new contentful field as a migration script using Contentful CLI. Run script in local dev to…
chilly
  • 193
  • 2
  • 13