Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:20
    codecov[bot] commented #1400
  • 16:20
    codecov[bot] commented #1400
  • 16:01
    kuzzle commented #1400
  • 16:01
    kuzzle commented #1400
  • 15:59
    codecov[bot] commented #1400
  • 15:59
    codecov[bot] commented #1400
  • 15:59
    Yoann-Abbes synchronize #1400
  • 15:59

    Yoann-Abbes on subcodes-derived-errors

    fix (compare)

  • 15:42
    kuzzle commented #1400
  • 15:42
    kuzzle commented #1400
  • 15:40
    kuzzle commented #1400
  • 15:40
    kuzzle commented #1400
  • 15:40
    codecov[bot] commented #1400
  • 15:40
    codecov[bot] commented #1400
  • 15:40
    Yoann-Abbes synchronize #1400
  • 15:40

    Yoann-Abbes on subcodes-derived-errors

    remove useless errors (compare)

  • 15:38
    codecov[bot] commented #1400
  • 15:38
    codecov[bot] commented #1400
  • 15:38
    Yoann-Abbes synchronize #1400
  • 15:38

    Yoann-Abbes on subcodes-derived-errors

    remove useless errors (compare)

Jonathan Loss
@jonath.loss_gitlab
@scottinet there is already an issue opened on the subject: kuzzleio/sdk-javascript#407
I added a comment to it
Luca Marchesini
@xbill82
@redadrehim_gitlab You cannot directly do Push Notifications with Kuzzle. Push Notifications on mobile devices are achieved using cloud services like Google Cloud Messaging or Batch. But you can easily wire up your Kuzzle instance to one of these public APIs in order to trigger Push Notifications upon data mutations or internal events
abuIsmail77
@abuIsmail77

Hello . I have installed the OAuth plugin in Kuzzle (https://github.com/kuzzleio/kuzzle-plugin-auth-passport-oauth) following the Plugin Installation procedure (I have it inside a docker container) ... But after installation and restarting kuzzle I get the following error :

{
"requestId": "378f3d3f-a956-4170-8cf9-9ebeaf5fac61",
"status": 500,
"error": {
"message": "Cannot convert undefined or null to object",
"status": 500,
"stack": "TypeError: Cannot convert undefined or null to object\n at Function.keys (<anonymous>)\n at Object.keys.forEach.plugin (/var/app/lib/api/core/plugins/pluginsManager.js:125:43)\n at Array.forEach (<anonymous>)\n at PluginsManager.getPluginsDescription (/var/app/lib/api/core/plugins/pluginsManager.js:93:31)\n at ServerController.info (/var/app/lib/api/controllers/serverController.js:241:58)\n at doAction (/var/app/lib/api/controllers/funnelController.js:617:47)\n at kuzzle.pipe.then.newRequest (/var/app/lib/api/controllers/funnelController.js:372:16)\n at tryCatcher (/var/app/node_modules/bluebird/js/release/util.js:16:23)\n at Promise._settlePromiseFromHandler (/var/app/node_modules/bluebird/js/release/promise.js:517:31)\n at Promise._settlePromise (/var/app/node_modules/bluebird/js/release/promise.js:574:18)\n at Promise._settlePromise0 (/var/app/node_modules/bluebird/js/release/promise.js:619:10)\n at Promise._settlePromises (/var/app/node_modules/bluebird/js/release/promise.js:699:18)\n at _drainQueueStep (/var/app/node_modules/bluebird/js/release/async.js:138:12)\n at _drainQueue (/var/app/node_modules/bluebird/js/release/async.js:131:9)\n at Async._drainQueues (/var/app/node_modules/bluebird/js/release/async.js:147:5)\n at Immediate.Async.drainQueues (/var/app/node_modules/bluebird/js/release/async.js:17:14)\n at runCallback (timers.js:810:20)\n at tryOnImmediate (timers.js:768:5)\n at processImmediate [as _immediateCallback] (timers.js:745:5)",
"code": 0,
"errorName": "Undocumented error"
},
"controller": "server",
"action": "info",
"collection": null,
"index": null,
"volatile": null,
"result": null
}

Luca Marchesini
@xbill82
Yo @abuIsmail77 could you post your configuration object, please?
(pls hide your secret keys)
abuIsmail77
@abuIsmail77
@xbill82 Ciao Luca, what do you mean for configuration object?
Luca Marchesini
@xbill82
@abuIsmail77 I mean the configuration of your plugin, that you set in your Kuzzle Configuration file or that you pass via environment variables
abuIsmail77
@abuIsmail77
@xbill82 Actually I did't touch configuration file or environment variables .. I just followed this : https://docs.kuzzle.io/core/1/guides/essentials/plugins/
Luca Marchesini
@xbill82
@abuIsmail77 you should pass a configuration object to your plugin via the Kuzzle Configuraton: take a look at this https://docs.kuzzle.io/core/1/guides/essentials/configuration/
I'm sorry, the doc on this is quite scattered
So, you can take a look at what parameters you sould pass to your plugin in its readme file https://github.com/kuzzleio/kuzzle-plugin-auth-passport-oauth
abuIsmail77
@abuIsmail77
@xbill82 thank you. Will try
Luca Marchesini
@xbill82
great
abuIsmail77
@abuIsmail77
image.png
@xbill82 Luca, I tried to modify the .kuzzlerc.sample file into the Kuzzle installation directory as follow :
However is still get the error . I could not find any place into the links you sent where is clearly described how to define the object for the aut-passport-oauth plugin , I mean into the config file how to define? I tried the setting above according to sample I found , but I think I missed some piece
abuIsmail77
@abuIsmail77

I found this somewhere , could it be right configuration for kuzzlerc.sample?:

"kuzzle-plugin-auth-passport-oauth": {
"version": "3.0.0",
"activated": true,
"name": "kuzzle-plugin-auth-passport-oauth",
"defaultConfig": {
"persist": {}
},
"customConfig": {
"strategies": {
"facebook": {
"credentials": {
"clientID": "<your-client-id>",
"clientSecret": "<your-client-secret>",
"callbackUrl": "http://host:7511/api/1.0/_login/facebook"
},
"persist": [
"login",
"avatar_url",
"name",
"email"
],
"scope": [
"user:email",
"user:avatar_url"
]
},
"twitter": {
"credentials": {
"consumerKey": "<your-client-id>",
"consumerSecret": "<your-client-secret>",
"callbackUrl": "http://host:7511/api/1.0/_login/twitter"
},
"persist": [
"login",
"avatar_url",
"name",
"email"
],
"scope": [
"user:email",
"user:avatar_url"
]
},
"google-oauth": {
"credentials": {
"consumerKey": "<your-client-id>",
"consumerSecret": "<your-client-secret>",
"callbackUrl": "http://host:7511/api/1.0/_login/google-plus"
},
"persist": [
"login",
"avatar_url",
"name",
"email"
],
"scope": [
"user:email",
"user:avatar_url"
]
},
"github": {
"credentials": {
"clientID": "<your-client-id>",
"clientSecret": "<your-client-secret>",
"callbackUrl": "http://host:7511/api/1.0/_login/github"
},
"persist": [
"login",
"avatar_url",
"name",
"email"
],
"scope": [
"user:email",
"user:avatar_url"
]
}
},
"defaultProfile": "default"
}
}

abuIsmail77
@abuIsmail77
@xbill82 still get this error:
{
"requestId": "8a049fdc-504a-40c0-8ba4-b29df6623cda",
"status": 500,
"error": {
"message": "Cannot convert undefined or null to object",
"status": 500,
"stack": "TypeError: Cannot convert undefined or null to object\n at Function.keys (<anonymous>)\n at Object.keys.forEach.plugin (/var/app/lib/api/core/plugins/pluginsManager.js:125:43)\n at Array.forEach (<anonymous>)\n at PluginsManager.getPluginsDescription (/var/app/lib/api/core/plugins/pluginsManager.js:93:31)\n at ServerController.info (/var/app/lib/api/controllers/serverController.js:241:58)\n at doAction (/var/app/lib/api/controllers/funnelController.js:617:47)\n at kuzzle.pipe.then.newRequest (/var/app/lib/api/controllers/funnelController.js:372:16)\n at tryCatcher (/var/app/node_modules/bluebird/js/release/util.js:16:23)\n at Promise._settlePromiseFromHandler (/var/app/node_modules/bluebird/js/release/promise.js:517:31)\n at Promise._settlePromise (/var/app/node_modules/bluebird/js/release/promise.js:574:18)\n at Promise._settlePromise0 (/var/app/node_modules/bluebird/js/release/promise.js:619:10)\n at Promise._settlePromises (/var/app/node_modules/bluebird/js/release/promise.js:699:18)\n at _drainQueueStep (/var/app/node_modules/bluebird/js/release/async.js:138:12)\n at _drainQueue (/var/app/node_modules/bluebird/js/release/async.js:131:9)\n at Async._drainQueues (/var/app/node_modules/bluebird/js/release/async.js:147:5)\n at Immediate.Async.drainQueues (/var/app/node_modules/bluebird/js/release/async.js:17:14)\n at runCallback (timers.js:810:20)\n at tryOnImmediate (timers.js:768:5)\n at processImmediate [as _immediateCallback] (timers.js:745:5)",
"code": 0,
"errorName": "Undocumented error"
},
"controller": "server",
"action": "info",
"collection": null,
"index": null,
"volatile": null,
"result": null
}
knut
@voxspox
Is there a react-native SDK available. I can see RN promoted on the website but didn't find it in the SDK docs
?
Sébastien Cottinet
@scottinet
Hi!
Our Javascript SDK can be used to develop react-native applications: https://github.com/kuzzleio/sdk-javascript
Adrien Maret
@Aschen
@/all
Kuzzle 1.9.0 has been released!
In addition to many improvements, this release includes some interesting new features:
Luca Marchesini
@xbill82
Hello @abuIsmail77 the Kuzzle config file is managed by rc - here is where it looks for a config file https://github.com/dominictarr/rc#standards
smets boris
@smetsboris_gitlab
Hello, I can't make my dockerized kuzzle work properly on google cloud (without using some weird tricks), my issue is with node_modules of my plugins, I can't find a way to run 'npm install' to download dependencies on 'docker-compose up '. Fortunately, it seems that kuzzle docker image is running such a script, but it doesn't make it success, I m bit confused, have you an idea?
Adrien Maret
@Aschen
Hi @smetsboris_gitlab ,
We do run a npm install before starting Kuzzle when we are in development mode.
As you can see, the entrypoint is a bash script (https://github.com/kuzzleio/kuzzle-core-plugin-boilerplate/blob/master/docker-compose.yml#L6) who run npm install (https://github.com/kuzzleio/kuzzle-core-plugin-boilerplate/blob/master/docker/run-dev.sh#L11) and then start Kuzzle with PM2 (but you can also run Kuzzle with just Node.js)
abuIsmail77
@abuIsmail77
@xbill82 Hello Luca : I tried to rename the kuzzlerc.sample to kuzzlerc according to the standards of rc and keep in the home and also to copy this to the .config directory, but still getting same error . I don't know what I am doing wrong actually
image.png
image.png
image.png
smets boris
@smetsboris_gitlab
@Aschen ok thanks, for now I run a fork of that script by hand, I will try to automate that in future
Sébastien Cottinet
@scottinet
Hi @abuIsmail77 > this looks like a bug, can you tell us what Kuzzle version you are using, so that we can check where lies the real issue?
Elie Waked
@eswdevplus
Hi, is it possible with kuzzle to subscribe to kafka as a client? I found few articles about kafka and elasticsearch but nothing was so clear near my required solution, thanks in advance!
Sébastien Cottinet
@scottinet

Hi,
Not natively, but it seems fairly simple to add a plugin to Kuzzle, that could either:

  • consume Kafka messages and use them with Kuzzle's API (you could store them within ES, or in Redis, or simply publish real-time messages for listening users)
  • listen to documents or real-time messages sent through Kuzzle and forward them to Kafka

... or both.

This can be done very little efforts (you can check our plugins documentation here: https://docs.kuzzle.io/core/1/plugins/essentials/introduction/ )

Elie Waked
@eswdevplus
Thanks a lot for your fast response
dineshprjpt
@dineshprjpt
Hello
I am trying to integrate android-sdk to achieve the geofencing but I have followed the document but some how I am not able to get the response methods
abuIsmail77
@abuIsmail77
@scottinet Hello Sebastien. I am not sure where to check the version , but from the Kuzzle Console it shows 2.5.1 (I am not sure this is the version of the console or of my kuzzle installation)
Sébastien Cottinet
@scottinet
@abuIsmail77 > You can get Kuzzle's version by running the server:info API route (HTTP GET http://<server>:<port>/?pretty), and check the result.serverInfo.kuzzle.version property
abuIsmail77
@abuIsmail77
@scottinet Hello Sébastien : unfortunately after I have installed the plugin if I run the server info I keep getting the error message so I the resut is always the same and I can't see the version now (before installing the plugin yes) . I have downloaded Kuzzle a couple of months ago if this can help ...
Sébastien Cottinet
@scottinet
Can you update your Kuzzle instance to its latest version? For one, the bug you experience might already be fixed.
Otherwise, you can go to the package.json file at the root directory of your Kuzzle install, and check the version property there.
abuIsmail77
@abuIsmail77
@scottinet how to update without loosing data ?( I am running Kuzzle into a docker container)
abuIsmail77
@abuIsmail77
image.png
@scottinet I found 1.8.3
Sébastien Cottinet
@scottinet
Can you try with Kuzzle 1.9.2 and check if the error is still there? If so, can you send here the updated stack trace?
abuIsmail77
@abuIsmail77
@scottinet yes I can, but how to update without making a new installation?
Sébastien Cottinet
@scottinet
If you're using docker-compose, just use docker-compose -f <YAML file> pull
Same with docker without docker-compose (docker pull kuzzleio/kuzzle)
And if you're starting kuzzle from a cloned github repository, you can simply git pull from the master branch.
abuIsmail77
@abuIsmail77
@scottinet YES! Now is working .... thank you ! ...
Sébastien Cottinet
@scottinet
Glad we could make it work for you :+1: