question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Invalid apiVersion "5.5", expected a function or one of _default, 6.6, 6.5, 6.4, 6.3, 6.2, 6.1, 6.0, 5.6, 2.4, 1.7, 0.90, 6.7, 7.0, 7.x, master

See original GitHub issue

Current behavior

While doing " Importing data from magento into ElasticSearch…", it was taking forever, then I canceled it. I got this error on vue-storefront/var/log/install.log

== CREATING NEW DATABASE ==
/home/don/Web/showroom/vue-storefront-api/node_modules/elasticsearch/src/lib/utils.js:285
      throw new TypeError(err);
      ^

TypeError: Invalid apiVersion "5.5", expected a function or one of _default, 6.6, 6.5, 6.4, 6.3, 6.2, 6.1, 6.0, 5.6, 2.4, 1.7, 0.90, 6.7, 7.0, 7.x, master
    at Object.utils.funcEnum (/home/don/Web/showroom/vue-storefront-api/node_modules/elasticsearch/src/lib/utils.js:285:13)
    at new Client (/home/don/Web/showroom/vue-storefront-api/node_modules/elasticsearch/src/lib/client.js:70:33)
    at Object.<anonymous> (/home/don/Web/showroom/vue-storefront-api/migrations/.common.js:17:14)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)

 == REVIEWS IMPORTER ==
2019-02-09T06:32:23.444Z - debug: Elasticsearch module initialized!

info: Winston logging library initialized.

2019-02-09T06:32:23.581Z - error: Unhandled Rejection at: Promise Promise {
  <rejected> TypeError: Invalid apiVersion "5.5", expected a function or one of _default, 6.6, 6.5, 6.4, 6.3, 6.2, 6.1, 6.0, 5.6, 2.4, 1.7, 0.90, 6.7, 7.0, 7.x, master

Expected behavior

Importing run smooth

Steps to reproduce the issue

yarn installer

Repository

https://github.com/DivanteLtd/vue-storefront

Can you handle fixing this bug by yourself?

No.

Environment details

  • OS: Deepin 15.9.1
  • Node: v8.11.2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

0reactions
coatesjonathancommented, Mar 23, 2019

Think I found the issue… Redis default host for me is 127.0.0.1 not “localhost” in /vue-storefront-api/config/local.json on line 35

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid apiVersion "5.5", expected a function or one of _default ...
While doing " Importing data from magento into ElasticSearch...", it was taking forever, then I canceled it. I got this error on vue-storefront/var/log/install....
Read more >
all classes - elasticsearch 7.11.1 javadoc
ActionType that is used by executor node to indicate that the persistent action finished or failed on the node and needs to be...
Read more >
Breaking changes in 7.0 | Elasticsearch Guide [7.17] | Elastic
An Elasticsearch 7.0 node will not start in the presence of indices created in a version of Elasticsearch before 6.0. Reindex indices from...
Read more >
Search for.. field is not working - BookBrainz
i tried to search for an existing work “maktub”, but landed on an error page. When i click on the same through the...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found