Questions tagged [strapi]
Strapi is an open-source Node.js headless CMS built on top of Koa. It's frontend-agnostic and claims to not be an MVC framework. It auto-generate RESTful endpoints and has support for GraphQL and WebSockets.
1,929
questions
0
votes
0
answers
4
views
azure app service Installation error: EACCES: permission denied, mkdir '/opt/Kudu/local/npm-cache'
I am trying to sync the app service which is linked with the bitbucket. when i try to sync data from the bitbucket its showing me below error
info Visit https://yarnpkg.com/en/docs/cli/install for ...
0
votes
0
answers
6
views
How to add a multiple choice system for my gallery filter
I'm working on a fictive project for my webdev formation, and I would need just a little help in fixing my filter system for my gallery. It's pretty straightforward, you click on a category and the ...
-1
votes
0
answers
11
views
How to resolve Bad Request error in graphql api
const endpoint = "http://localhost:1337/graphql";
const headers = {
"content-type": "application/json",
};
const graphqlQuery = {
"query" : mutation ...
0
votes
0
answers
17
views
Multi images, cannot get first image from array
I have a gatsby app which is connected to a Strapi backend.
On my homepage i want to display all projects and their first image from the gallery.
My query looks like this:
allStrapiProject {
...
0
votes
0
answers
10
views
How create a decision tree structure in Strapi?
I am playing out with Strapi and I want to know how to create a tree structure for something like a questionnaire?
To give an example something like this: https://rxjs.dev/operator-decision-tree
I ...
0
votes
0
answers
11
views
azure container logs strapi utf-8
I'm trying to bring a strapi instance online with azure container images.
But It seems some part of the strack has trouble with the log format from strapi.
Start streaming logs:
Exception in ...
-1
votes
0
answers
4
views
Why Can't insert another field and edit the field in Strapi CMS?
Hello, I would like to add another fields and edit some fields, but not able to do them.
Could you let me know what is the problem? Thanks
0
votes
0
answers
23
views
Is that possible to create a custom component with user defined type in Strapi v4?
I am new to strapi and trying to create a custom component to render some HTML check-boxes based on an API response from another system. Basically the list of check-boxes will be added to a form (...
0
votes
0
answers
12
views
what is "Separate your URL links by a carriage return" in strapi?
Couldn't upload image using url in strapi. How to convert url into carriage return.enter image description here
0
votes
0
answers
13
views
Strapi - Your filters contain a field '_publicationState' that doesn't appear on your model definition nor it's relations
I am learning to use Strapi (doing a course). I am doing a simple request to Strapi:
http://localhost:1337/products
However I am getting this cryptic answer which I have no way of understanding. It ...
0
votes
1
answer
13
views
How to filter in strapi using graphql?
I am using graphql to query data from strapi v4. I can filter by one column. there is not any problem. but when I want to filter by more than one column it does not work.
any help would be appreciated....
-1
votes
0
answers
8
views
how to add someone to access my strapi project?
i am new to strapi i am working on project how can I make another one access that project with me and can add collection
and another thing how can I send API to anybody didn,t work for him bec. it ...
0
votes
0
answers
14
views
Strapi medias stored on a GCP bucket cannot be read by the media library (CORS)
I have a problem with strapi v4.0.4 medias stored in a GCP bucket. Strapi is able to upload medias but not to read them and displayed them in the media library. When I access the media directly ...
0
votes
1
answer
12
views
Strapi broken image when uploading to aws s3
I installed aws s3 as an upload provider for my Strapi Backend:
// path: ./config/plugins.js
module.exports = ({ env }) => ({
// ...
upload: {
config: {
provider: 'aws-s3',
...
0
votes
2
answers
23
views
Strapi: GraphQL mutation without authentication
I program simple e-shop based on Strapi. I need to open my custom "order" mutation to public without any JWT token but I can't figure out how. Is it possible to do that in Strapi? Thanks.
0
votes
0
answers
16
views
How to set Strapi user role programmatically?
I'm using Strapi 3.6.10.
When I create user via http://host:1337/auth/local/register, I'm not able to achieve desirable user's role. It's always Authenticated, even if I directly set it to another in ...
1
vote
1
answer
35
views
Middleware "strapi::session": App keys are required. Please set app.keys in config/server.js (ex: keys: ['myKeyA', 'myKeyB'])
Trying to set up strapi and cloudinary
I watched two videos and they are all OK, but I have an error, tell me why?
Middleware "strapi::session": App keys are required. Please set
app.keys ...
1
vote
0
answers
23
views
NextJS next/image Failed to parse src with Strapi 4 and Graphql
I'm not able to load the images with the next/image handler from the strapi cms.
the images are working perfectly with the normal tag but not with the next/image handler
My Setup
.env:
...
0
votes
0
answers
14
views
Add button Preview (custom) Header EditView Strapi V4
I’m trying to add a button and Preview next to the Save and Publish button in EditView, but it’s complicated.
I already tried putting a plugin (strapi-plugin-preview-button) but it seems that it doesn’...
0
votes
1
answer
14
views
Next JS deployed in Vercel, bug backgroundImage property with external URL file
I have in my Next.js project a card component with a backgroundImage from my Strapi API.
The image is shown in local but when I deploy my project in Vercel it doesn't show the background image even if ...
0
votes
0
answers
12
views
How to include the creator of an entity in a CREATE api call to a STRAPI API
I am trying to create a small web app using STRAPI for my API.
I have two collection types, the User and the Event. The relationship between them is one-to-many (A user has many events).
The problem ...
1
vote
0
answers
16
views
Getting Error when sending images to /upload
I have a node application which sends formData to /upload. I designed the app to send one request per file. When I ran it sending 40 requests, it worked. I ran it again right after with 50 requests to ...
0
votes
0
answers
24
views
Gatsby-plugin-image: Missing image prop after update to v4 (Netlify)
We are having an issue with displaying images on Netlify after upgrading Gatsby to V4.
We have been using Netlify for the past 3 years for this project and everything worked fine until we tried to ...
0
votes
0
answers
18
views
Strapi Unsupported protocol issue
Strapi Application.
I am getting this issue on opening admin panel content manager for every content type
Unsupported protocol /content-manager/content-types/api:"
Please tell me where is that ...
0
votes
0
answers
13
views
How do I make additional filter work on Strapi GraphQL query resolver extension
I am using Strapi headless CMS and I have a collection type called Teacher Profiles. And I am adding an extra field in the query response that I calculate on the fly. This field doesn't exist in the ...
0
votes
1
answer
26
views
Strapi - Import and export collection types and single types
Is there a way to export already existing Collection Type and Single Type in my local and import to other Strapi environment?
1
vote
1
answer
22
views
Not able to create a new collection-type in Strapi Dashboard
I had just created a STRAPI project using , find docs here
npx create-strapi-app@latest my-shop1
And then sign up to the admin portal. After signing up, I reached dashboard>>content-Type ...
0
votes
0
answers
40
views
Deploy Issues on Strapi v4.1.9 on Heroku
I'm trying to deploy for the first time strapi to heroku without luck, I followed the entire documentation for deployment with postgress but is giving the following errors.
2022-05-09T20:15:23.305444+...
0
votes
0
answers
31
views
Errors deploying Strapi in Digital Ocean Droplet: because it violates the following Content Security Policy directive: "connect-src 'self' https:
I am new to Digital Ocean and deploying strapi for production.
I have managed to create a new Digital Ocean droplet running Ubuntu 20 and I have installed node js in it. I also installed nginx ...
0
votes
0
answers
5
views
How to recup users datas with a strapi api ? And to put it on a database ? More informations of my problem below
I have a question. How to a register/login with kivymd and sql database ? After that, how to recup user datas when he likes a post and to put it on a database ? It's just to test something. How to add ...
1
vote
1
answer
24
views
strapi error: Something went wrong installing the "sharp" module Cannot find module '../build/Release/sharp-linux-x64.node'
On my Mac Book Pro where I develop
Strapi runs perfectly
When I upload the the code I have prepared to github
Then clone that code from github to my Digital Ocean Droplet that is running Ubuntu 20
...
0
votes
0
answers
18
views
strapi reset password alwasy call localhost
I configured template to use URL to send reset password email.
I alwasy got this email with link to localhost so on the server it does not work.
I checked the implementation and seems there this is no ...
0
votes
1
answer
22
views
Failure to upload images from Strapi to a cloudinary folder
I'm working with Strapi v4.1.7 and I'm trying to upload my images to Cloudinary in a specific folder (portfolio) but they just get added to the root folder of cloudinary.
Also I'm using "@strapi/...
0
votes
0
answers
14
views
Strapi Error when running on Digital Ocean Server/Droplet
I have created a new droplet/server in Digital Ocean.
I also have installed node and npm in that droplet.
I then install and run the Strapi app on it.
Before actually running strapi...I first npm ...
0
votes
0
answers
25
views
Strapi typescript: how to properly use strapi.entityService.findOne
I always getting errors:
Type '...' does not satisfy the constraint 'never'
When calling:
strapi.entityService.findOne("entity", "id", {});
How to properly use this function on ...
0
votes
0
answers
8
views
How to connect Storj and Strapi
How can i connect the Storj which is cloud file uploading services and Strapi
Here is the link for the storj https://www.storj.io/
Strapi please tell me my whole app depends on the decentralizeation
0
votes
1
answer
33
views
Strapi v4: no relational fields when populating
I'm trying to populate a specific relation, using the relation name (categories) in combination with the populate parameter but it doesn't populate the categories.
When I look at my schema, I see that ...
0
votes
1
answer
21
views
Why Strapi bring limit data for relations?
I am using graphQl with Strapi, I have one question table and one question-option table, and I write a query to bring data for me by relation. All things working correctly except those questions that ...
0
votes
1
answer
21
views
Issues with Gatsby & Strapi optional data
I have a model made in Strapi which contains a specific component which can be used to add social media links. Each link contains a text field and a link field. Everything works as expected, except ...
0
votes
1
answer
28
views
Cron job in strapi V3 does not get triggered when a method from strapi services is called
config/functions/cron.js
async function logger() {
console.log("Hello, Im Async");
}
module.exports = {
'*/10 * * * * *': async () => {
console.log("Before);
...
0
votes
0
answers
25
views
Strapi (i18n) API URL Syntax : Locale and Population in the same url
can someone help me with Internalization plug-in in Strapi, I have an issue i cannot find the solution with the documentation :
I would like to do a get request with populate & locale in the same ...
0
votes
0
answers
23
views
How to fix a bug in an external Strapi plugin?
I installed this strapi plugin: https://github.com/kwinyyyc/strapi-plugin-wysiwsg-react-md-editor
It had a bug - styles did not apply to relevant elements. I fixed this bug by downloading the package, ...
0
votes
0
answers
23
views
How to disable auto-populate in strapiV4?
I've recently migrate on strapiV4. But, strapi can be very slow on administration panel when I've lot of data in my database. Why ?
I think strapi auto populate all relational fields, and relational ...
0
votes
0
answers
40
views
How does Headless CMS offers Page Management/Builder Capability?
We are using a traditional CMS that also offers API (Rest & GraphQL) to expose content on top of page builder capabilities, I want to understand:
How to know if my traditional CMS is also a true ...
0
votes
0
answers
23
views
How to connect to existing strapi with existing React frontend?
I'm working front-end on a React project and someone else did the setup for the API using strapi. They hooked it up to a url to the effect of "api.brandname.com" and set up logins for them ...
3
votes
0
answers
163
views
Missing jwtSecret. Please, set configuration variable "jwtSecret" for the users-permissions plugin in config/plugins.js
I am following this tutorial on Strapi's website: https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/deployment/hosting-guides/amazon-aws.html
to deploy to AWS. It doesn't mention a ...
0
votes
0
answers
25
views
How to delete user on strapi v4
I don't know why but everytime I can't delete any user on graphQL playground, its always forbidden access. I checked "destroy" on setting >> role >> userpermission and put koen ...
0
votes
0
answers
17
views
How to only get last 30 days of contntent in strapi
hope you are all having a good week so far.
I'm trying to only fetch the last 30 days of posts on my strapi back end but can't seem to figure it out...
this is what I have so far:
`/api/updates?...
0
votes
1
answer
37
views
Formatting complex JSON response to simple object
I'm trying to format complex response data returned by Strapi to obtain a simple object I can pass to my UI.
The GET request is to the following endpoint:
http://localhost:1337/api/projects?fields=...
0
votes
0
answers
15
views
Check if username entered by user is still available on Strapi v4
I'm new to Strapi, I want to know how to check everytime the user enter an username if its still available or not, the attribute "username" is already unique, but only when I submit form ...