doofinder/doofinder-magento2

Datatype X not found

carlosescri opened this issue · 1 comments

The Problem

Trying to reindex the search catalog via CLI produces an error saying the datatype was not found.


[DEVELOPER_A]
Btw, we've noticed that API reindex works only when we're logged to app.doofinder.com and go to the search engine. If we don't do it, we get info that the type of product was not found.

(…)

we do this:

  • start the shop
  • do bin/magento index:reindex - when it comes to reindex catalogsearch_fulltext we're getting this error: type product not found (when trying to add or delete)
  • go to the app.doofinder.com, login to our Account, choose the Magento2 search engine
  • reindexing was successful

(…)

perhaps this is because our Doofinder project is on Docker? When we launch Docker and try do run reindex, we get this error. We try again and the error occurs again. We go to app.doofinder.com, log in, choose search engine for Magento, then launch reindex in the console and it finally works. It happens every time we launch the project on Docker.


[DEVELOPER_B]
I am not aware of your development environment. Do you have a Doofinder docker container? Or just a Magento container that makes request to Doofinder production environment?

It makes sense that some request not work with Doofinder development environment because there are some subtle differences.

Anyhow, please explain in details how is your environment so I could try to guess where is the problem.


[DEVELOPER_A]
our docker container is built from php:7.0-apache.

Currently, we're working on Magento 2.1.12 with Sample Data, but the problem occured also on Magento 2.2.3.

There is nothing more. It might be some problems with the docker environment. If this is the only case, then there's not much sense in debugging it.


[DEVELOPER_B]
It is a little weird that there are some issues working with a docker container but not working in a real environment.

Maybe there are some initialization that does not run on docker for whatever reason. If you think this is just a docker issue we could forget about this. But if this happens in a real environment let us know. We will try to fix it as fast as we can.


(Some time later…)

[USER_A]
We have an error on (…) production when we launch:

php bin/magento indexer:reindex catalogsearch_fulltext

The error by the Magento Module is « Not Found: Datatype "product" not found »

[DEVELOPER_A]

It seems that the developers doesn't really have any idea on how to start debugging. It looks like something on your side - let's say, the module sends a request to Doofinder -> Doofinder replies that there is no datatype -> we log in to app.doofinder.com -> something pushes through the API -> the module asks again -> it receives the datatype.