Code Monkey home page Code Monkey logo

Comments (9)

tukiminya avatar tukiminya commented on June 9, 2024 1

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.

bidoubiwa avatar bidoubiwa commented on June 9, 2024

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.

tukiminya avatar tukiminya commented on June 9, 2024

Hello @bidoubiwa,

Sorry, I don't know where the Meilisearch logs are...
Could you please tell me the path?

from gatsby-plugin-meilisearch.

tukiminya avatar tukiminya commented on June 9, 2024

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.

tukiminya avatar tukiminya commented on June 9, 2024

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.

bidoubiwa avatar bidoubiwa commented on June 9, 2024

Hey @kr-tukimi
Which version of Meilisearch are you using? v0.27.0 or v0.28.0 ?

from gatsby-plugin-meilisearch.

tukiminya avatar tukiminya commented on June 9, 2024

Hi @bidoubiwa
I was using v0.27.0 when I opened this issue.

from gatsby-plugin-meilisearch.

bidoubiwa avatar bidoubiwa commented on June 9, 2024

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.

bidoubiwa avatar bidoubiwa commented on June 9, 2024

Closing this, if it is still an issue feel free to re-open

from gatsby-plugin-meilisearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.