Comments (9)
As for the index ID, I originally used a different ID, but when I submitted the issue, I overwrote it with another one, and it is a blur of the notation.
Sorry about that...
I upgraded the version from v0.27.0 to v.0.28.0 and tried to build again, but the error occurs in a place unrelated to Meilisearch.
I will report back with results once the error is resolved.
from gatsby-plugin-meilisearch.
Hey @kr-tukimi, The only place where we use length
is in these lines
// Index data to Meilisearch
const enqueuedUpdates = await index.addDocumentsInBatches(
transformedData,
batchSize
)
if (enqueuedUpdates.length === 0) {
throw getErrorMsg(
'Nothing has been indexed to Meilisearch. Make sure your documents are transformed into an array of objects'
)
}
This means something must have gone wrong during indexation and the addDocumentsInBatches
did not throw the error properly. Do you have access to your Meili logs? If yes can you take a look to find maybe some /documents
routes that are not in 204?
If everything seems normal, could you fetch your tasks using this route and find the onces that are adding the documents and copy paste them here?
from gatsby-plugin-meilisearch.
Hello @bidoubiwa,
Sorry, I don't know where the Meilisearch logs are...
Could you please tell me the path?
from gatsby-plugin-meilisearch.
I was getting this error in the Docker console:
[2022-07-11T11:28:51Z INFO actix_web::middleware::logger] 172.17.0.1 "DELETE /indexes/test HTTP/1.1" 202 114 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" 0.003346
The index seems to have been deleted after the build failed.
from gatsby-plugin-meilisearch.
Here is the result of fetching the task:
(The reason there are two errors is because I tried twice)
{
"results": [
{
"uid": 1,
"indexUid": "test",
"status": "failed",
"type": "indexDeletion",
"details": {
"deletedDocuments": 0
},
"error": {
"message": "Index `test` not found.",
"code": "index_not_found",
"type": "invalid_request",
"link": "https://docs.meilisearch.com/errors#index_not_found"
},
"duration": "PT0.009537100S",
"enqueuedAt": "2022-07-11T11:28:51.9235144Z",
"startedAt": "2022-07-11T11:28:51.9265978Z",
"finishedAt": "2022-07-11T11:28:51.9361349Z"
},
{
"uid": 0,
"indexUid": "test",
"status": "failed",
"type": "indexDeletion",
"details": {
"deletedDocuments": 0
},
"error": {
"message": "Index `test` not found.",
"code": "index_not_found",
"type": "invalid_request",
"link": "https://docs.meilisearch.com/errors#index_not_found"
},
"duration": "PT0.044219200S",
"enqueuedAt": "2022-07-11T11:16:42.3955833Z",
"startedAt": "2022-07-11T11:16:42.4054709Z",
"finishedAt": "2022-07-11T11:16:42.4496901Z"
}
]
}
from gatsby-plugin-meilisearch.
Hey @kr-tukimi
Which version of Meilisearch are you using? v0.27.0 or v0.28.0 ?
from gatsby-plugin-meilisearch.
Hi @bidoubiwa
I was using v0.27.0 when I opened this issue.
from gatsby-plugin-meilisearch.
I can see that the index you provided in your config file is indexUid: 'testIndex',
but the one in the task is "message": "Index test not found.",
Is this because you changed the name? Or is it part of the bug?
Are you still using v0.27.0 for the moment ?
from gatsby-plugin-meilisearch.
Closing this, if it is still an issue feel free to re-open
from gatsby-plugin-meilisearch.
Related Issues (20)
- Delete and re-index all if index already exists HOT 1
- Find how to make some tests without Cypress HOT 1
- Bug: Typo in Bug report issue template
- Bug: Dependency on Meilisearch API Header : x-meili-api-key not found HOT 2
- Add the `skipIndexing` option HOT 3
- Prepare the plugin for publish on NPM & gatsby
- Remove support for node 12 and ensure support for node 18 HOT 1
- Use MeiliSearch settings HOT 7
- Allow multi-indexing HOT 1
- Test job ran in CI is stuck on waiting for the web server to run HOT 2
- Current example in the README is not much of use HOT 4
- error timeout of 5000ms has exceeded on process 3 when waiting a task to be resolved. HOT 10
- Should the plugin become compatible with Gatsby v5 ? HOT 3
- Custom clients / proxy settings are missing. HOT 1
- Add compatibility with node 18
- Change naming of queries until multi indexes is working HOT 2
- Allow multi queries on same index HOT 1
- Add jsdoc comments in functions
- Add error code at the end of the error message
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-plugin-meilisearch.