Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingest Push invalid_format #5

Closed
danielmartinezvigo opened this issue Apr 7, 2019 · 4 comments
Closed

Ingest Push invalid_format #5

danielmartinezvigo opened this issue Apr 7, 2019 · 4 comments

Comments

@danielmartinezvigo
Copy link

danielmartinezvigo commented Apr 7, 2019

Hi!

This is my code:

sonicChannelIngest.push('test', 'bucket:1', 'object:1', 'hola mundo', { 'lang': 'spa' })
  .then(function () {
    console.log('ok');
  })
  .catch(function (error) {
    console.log('error', error);
  });

I got this error:

{
  code: 'invalid_format',
  message: 'PUSH <collection> <bucket> <object> "<text>"'
}

If i remove options this works fine

Thanks!

@valeriansaliou
Copy link
Owner

Hi there! Which version of Sonic are you running? Is that latest v1.1.9?

@danielmartinezvigo
Copy link
Author

Yep, valeriansaliou/sonic v1.1.9 running on docker

This is my config.cfg

# Sonic
# Fast, lightweight and schema-less search backend
# Configuration file
# Example: https://github.com/valeriansaliou/sonic/blob/master/config.cfg


[server]

log_level = "error"


[channel]

inet = "0.0.0.0:1491"
tcp_timeout = 300

auth_password = "SecretPassword"

[channel.search]

query_limit_default = 10
query_limit_maximum = 100
query_alternates_try = 4

suggest_limit_default = 5
suggest_limit_maximum = 20


[store]

[store.kv]

path = "./data/store/kv/"

retain_word_objects = 1000

[store.kv.pool]

inactive_after = 1800

[store.kv.database]

compress = true
parallelism = 2
max_files = 100
max_compactions = 1
max_flushes = 1

[store.fst]

path = "./data/store/fst/"

[store.fst.pool]

inactive_after = 300

[store.fst.graph]

consolidate_after = 180

@valeriansaliou
Copy link
Owner

Ah, yes. The Docker image for v1.1.9 still runs on v1.1.8 as v1.1.9 could not be pushed to Crates (we're waiting for the rocksdb dependency to be updated on Crates, as we currently use a Git dependency for RocksDB, which is refused by Crates).

@danielmartinezvigo
Copy link
Author

Okay, I'll wait for that

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants