Hi
I am trying to connect with strapi.
Its not working.
Can somebody tell me why?
Hi
I am trying to connect with strapi.
Its not working.
Can somebody tell me why?
Hey @abhishek
Did you set the right permissions on the Strapi endpoints?
@Quentin Where do you configure Authorization for the Strapi plugin?
The only field during setup is āStrapi URLā, and the Strapi docs indicate that the API key should be included as a Header:
When performing a request to Strapiās REST API, the API token should be added to the requestās
Authorization
header with the following syntax:bearer your-api-token
.
Does the Strapi<ā>WeWeb plugin use a different (non-REST) endpoint i.e. graphql or something Iām missing?
Because when you create a collection, there is no later opportunity to provide an API Key. See screenshot of the collection wizard -
message: "Request failed with status code 404"
name: "AxiosError"
code: "ERR_BAD_REQUEST"
status: 404
config
timeout: 0
xsrfCookieName: "XSRF-TOKEN"
xsrfHeaderName: "X-XSRF-TOKEN"
maxContentLength: -1
maxBodyLength: -1
method: "get"
url: "https://api-l6xps.strapidemo.com/articles?_limit=-1&_start=0&_sort=:asc"
transitional
Object
transformRequest
Array(1)
transformResponse
Array(1)
env
headers
Accept: "application/json, text/plain, */*"
User-Agent: "axios/0.27.2"
When you create a new API key in Strapi, the final confirmation dialogue looks as follows:
Step 3: Completed
See content in action by making an HTTP request:
- To this URL: https://<YOUR_DOMAIN>/api/<YOUR_CT> (YOUR_CT = your content-type)
- With the header: Authorization: bearer <YOUR_API_TOKEN>
For more ways to interact with content, see the documentation.
Iām also stuck with this problem and canāt find a solution. Because my company is currently using Strapi and I canāt find a way to move my content to the WeWeb. I used the API and can call it in Postman because it supports Authentication via Beaver and can add Header, and Strapi Plugin in weweb only has one URL field so I canāt fetch the data because canāt authenticate.
Hello @mrspir,
We didnāt update this plugin since a long time. I will take a look and come back to you this week
By the meantime, you can use our plugin REST API
Hi, thank you for your feedback. Hopefully it can be released soon. As for the REST API option you mentioned, I have to connect it through an intermediary API like Xeno or FastGen and use the WeWeb to GET data? This seems to cost a bit more in terms of API infrastructure costs. Anyway, if there is native integration, it would be great. Wait for you.
Hey @mrspir,
You should be able to use the Strapi API with the REST API plugin directly, no need to use an intermediary tool. Why doing so btw?
Oh sorry, because Iām not very expert, I think I have to copy data from Strapi to Xano Database or similar and then POST the data to the WeWeb. I tried the Rest API which is quite good. Thank you.
Any update on the Strapi integration āissueā?