algolia / cli

🔍 Algolia’s official CLI devtool
https://www.algolia.com/doc/tools/cli
MIT License
102 stars 26 forks source link

error show : bufio.Scanner: token too long #55

Closed kimi0230 closed 1 year ago

kimi0230 commented 1 year ago

Hi~ When I runalgolia objects import index.zh-tw -F ./public/index.json It will show bufio.Scanner: token too long

Algolia version 1.2.0 Is my index.json too large? my index.json is 261 KB.

Thanks!!!

clemfromspace commented 1 year ago

@kimi0230 Thanks for opening an issue!

Juste to confirm, what is the format of the json files you are trying to upload? The Algolia CLI only accept json line separated files for now.

If that's the case (if you have only one object per line), we recently have a fix to allow bigger objects per line: #53 We will release a new version including the fix in the coming days.

kimi0230 commented 1 year ago

If that's the case (if you have only one object per line), we recently have a fix to allow bigger objects per line: #53 We will release a new version including the fix in the coming days.

Hi @clemfromspace It is works~ Thank you for your support.