Questions tagged [kuzzle]
Kuzzle is a high performance open source, on premise and cloud agnostic backend for IoT and modern apps featuring CRUD, real-time notifications, authentication, geofencing and a full featured cluster mode.
50
questions
1
vote
4
answers
86
views
+150
How to re-render a component when a non state object is updated
I have an object which value updates and i would like to know if there is a way to re-render the component when my object value is updated.
I can't create a state object because the state won't be ...
0
votes
0
answers
33
views
Kuzzle / how to dispatch event only to subscribed user based on a condition
I'm looking for the best approach to dispatch event to subscribed user based on user info condition.
My use case is:
user with username = "A" subscribed to doc_created events (https://docs....
0
votes
0
answers
21
views
Kuzzle is not establishing socket connection
This is nginx conf for Kuzzle console:
server {
listen 80;
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/ *****;
ssl_certificate_key /etc/nginx/ssl *****
ssl_protocols ...
1
vote
1
answer
24
views
Kuzzle "reconnected" event not triggering
I have a question about JS Kuzzle SDK and the "reconnected" event.
In my team we are looking to build a service that connects to a Kuzzle instance and needs to run "indefinitely". ...
0
votes
0
answers
21
views
Why receiving a zip file from kuzzle with the js sdk does not work?
I want to send a zip from my kuzzle backend so i wrote that in my backend:
// Generate zip file
const zip = new JSZip()
zip.file(filename, zipData)
const finalZipFile = await zip....
0
votes
1
answer
22
views
How to make kuzzle-device-manager plugin API actions works?
I successfully installed and loaded kuzzle-device-manager in the backend file:
import { Backend } from 'kuzzle';
import { DeviceManagerPlugin } from 'kuzzle-device-manager';
const app = new Backend('...
1
vote
1
answer
27
views
How to use elasticsearch query with searchUsers function in Kuzzle?
i set a property called type in some users with the kuzzle console, now i want to search for user who have the type set to user so i use a query for searching user.
Here is my code:
const resultUsers =...
1
vote
1
answer
46
views
Who to declare plugins for update kuzzle V1 to kuzzle V2
I currently use version 1 of kuzzle and i will be using version 2.
I have a problem because i have overloaded the back part with a plugin (declared in the enabled folder in V1). However in v2 i do not ...
1
vote
1
answer
76
views
Kuzzle shuts down on its own
I am trying to use Kuzzle 2.13.3 using docker on a 8GB RAM 4vCPU self-managed cloud instance. Everything seems fine, except that the Kuzzle node shuts down on its own after random period of time. Here ...
2
votes
1
answer
170
views
Kuzzle / Minio example usage
Dose the Kuzzle or Minio development teams have a working example of using the Kuzzle S3 plugin for Minio? I have the following but my file isnt being uploaded and the pre-signed url is referring to ...
2
votes
1
answer
76
views
How to append or remove an element from an existing array in kuzzle
Let's imagine this situation
Alice and Bob are connected to the same kuzzle server.
There is a document structured like this:
{
"nom": "Festival de l'automne",
"...
1
vote
1
answer
50
views
Is it possible to automatically queue the requests until kuzzle is back online (using JS SDK)
sometimes requests are sent while the server is disconnected this leads to errors like:
Error: Unable to execute request: not connected to a Kuzzle server.
Discarded request: ...
Or whats the best ...
1
vote
0
answers
42
views
Handling multiple oauth strategies for same kuzzle account
Using the kuzzle auth passport oauth plugin, how would you handle having multiple social providers able to login to the same Kuzzle account?
I got the login working with Facebook and Google, and I let ...
0
votes
1
answer
41
views
Updating a kuzzle doc
I have a kuzzle document with a json like this:
j00:
{ '1': 'dsds',
'2': 'rer',
'5': 'yytyh hgvhg',
'8': 'koo kllkl vv'
}
currently i'am doing this to update a key :
kuzzle_doc = await ...
0
votes
0
answers
78
views
Error: Unable to connect to kuzzle server at 127.0.0.1:7512: Connection lost. (ws status=503)
i receive lot of :
[kuzzle networkError] : Error: Unable to connect to kuzzle server at 127.0.0.1:7512: Connection lost. (ws status=503)
since i start using apikey from createApikey, may it be ...
3
votes
1
answer
52
views
What's the best practice of kuzzle.auth.createApiKey usage?
What's the best practice of kuzzle.auth.createApiKey usage ?
Call it outside the app to generate a token then put the token in env variable and use it (kuzzle.jwt = <get(env.token_variable>) ...
2
votes
2
answers
46
views
Kuzzle create index with mapping when importing CSV date fields
I have a CSV file with:
fname,lname,age,phone,address,dob
chris,jack,51,656-724-7821,aaaaa,03/01/2016 12:00:01 AM
joe,freds,44,545-724-7821,fsdfds sdfsdfsf sdfsdf,03/01/2015 12:00:01 AM
and a mapping ...
2
votes
2
answers
58
views
Kuzzle create collection mapping not working
Using the kuzzle.collection.create('abc123', 'yellow-taxi', {definition});
to create a collection on an index. The collection gets created but the mappings arent applied.
Here is the code im using
...
2
votes
1
answer
42
views
How to create an enum on kuzzle admin console
I'm trying to create an enum field from the admin console but I can't achieve it right
I went through Elasticsearch's documentation but I don't really understand everything.
"ville": {
&...
0
votes
1
answer
36
views
Kuzzle JS SDK how to use the S3 Plugin
I'm looking for help in using the Kuzzle JS SDK (node JS)
Websocket protocol to upload a file to the S3 Plugin. I see the HTTP JS example here https://github.com/kuzzleio/kuzzle-plugin-s3/blob/master/...
2
votes
1
answer
165
views
Kuzzle S3 plugin / Minio cant connect
I have the following Kuzzle S3 Plugin config:
"s3": {
// AWS S3 bucket
"bucketName": "chris", // this is a bucket i created in Minio
"endpoint": "...
2
votes
1
answer
61
views
Kuzzle : Insufficient permissions to execute this action
i am using js sdk of kuzzle,
sometimes (after few days of running) all request fails and i get:
"Insufficient permissions to execute this action"
what's the best method to avoid it ?
Should ...
2
votes
1
answer
80
views
Kuzzle: Using X-pack to connect with Elasticsearch
I'm trying to use Kuzzle with X-pack authentication enabled on Elasticsearch.
I've tried looking through the documentation of Kuzzle and I'm assuming the X-pack password should be stored in the ...
3
votes
1
answer
63
views
Which is better approach to send push notification in Kuzzle using hooks or subscription?
I’m using Kuzzle as backend for my realtime chat application.
What is the better approach to sending push notification when user is offline in a mobile chat app?
1. Using custom plugin hooks
// check ...
0
votes
1
answer
125
views
Running start-kuzzle-server fails with error
user1@DESKTOP-8FGN:~/kuzzle/kuzzle$ ./bin/start-kuzzle-server
internal/modules/cjs/loader.js:818
throw err;
^
Error: Cannot find module '../index'
Require stack:
- /home/user1/kuzzle/kuzzle/bin/...
0
votes
1
answer
64
views
Kuzzle V2 Realtime subscription on android sdk v23
We have kuzzle V2 as a broker, and as a data warehouse. Our android devices will subscribe to a collection record, and get updates in realtime.
but the android version we are supporting is <7, ...
2
votes
1
answer
44
views
How can I validate a user exists in the kuzzle database given only <kuid> and a <jwt> of that user?
I am using kuzzle (2.6) as a backend to my app. I'd like to encrypt data stored to Kuzzle by the users of the app, and organize encryption keys separate from the database. The key holding entity (...
0
votes
1
answer
54
views
Facing an issue with Java SDK 3 while performing the CRUD operations
I am facing an issue with Java SDK 3, after performing some operations i.e creating and deleting documents from kuzzle, it hangs and does not respond.
I investigated the issue and found that CPU ...
2
votes
1
answer
424
views
Kuzzle [FORBIDDEN/12/index read-only / allow delete (api)];
I am having an unusual error suddenly when trying to write documents in my index in Kuzzle
[X] Errorindex [&datasensor.config] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
...
1
vote
1
answer
44
views
Kuzzle: How to use "_kuzzle_info" to sort documents
I need to get the latest 100 documents from a specific collection so i used the search function and created from _kuzzle_info to sort documents by their date of creation but i think i have an issue ...
1
vote
0
answers
79
views
SSL handshake aborted when trying to connect to Kuzzle server
I'm using Kuzzle with his Android SDK (3.0.10) to receive notifications with the pub/sub system.
In Android 5 and 6, when I try to connect to the server an error callback is executed with the message: ...
-1
votes
1
answer
35
views
Share a service between two or more plugins [closed]
I need to share a payment service class between two (or more) plugins and am wondering if Kuzzle's Pipes are the best solution for that?
I made a poc which seems to work, nevertheless, I don't found ...
0
votes
1
answer
19
views
searchUsers: unable to set option properly
I need to get all users from my kuzzle so I tried that:
// Getting Users
const users = await kuzzle.security.searchUsers({
options: {
size: 25
}
});
console.log(...
0
votes
0
answers
41
views
Kuzzle: Is normal to receive undefined _kuzzle_info sometimes when subscribing with js sdk 7
Hey sometime i get undefined _kuzzle_info when i subscribe to a collection.
Here is the output:
undefined
undefined
undefined
{
author: 'Kadmin',
createdAt: 1591606660250,
updatedAt: ...
2
votes
1
answer
158
views
How to use Kuzzle & GraphQL & Apollo & Realtime
I'm developing a set of services / applications to allow to manage Archery Tournaments.
It consist on a web application that would manage the creation of different tournaments, and will handle the ...
-1
votes
1
answer
56
views
Kuzzle anonymous user to access to a plugin?
Hi i tried to give anonymous user to access to a plugin but it still does not work what you think i am doing wrong?
kuzzle-core-plugin-boilerplate/NewController:Object
actions:Object
getamount:true
...
2
votes
1
answer
241
views
How do I recover from an expired Kuzzle token server side?
I have a problem with the management of the jwt token from Kuzzle javascript SDK's auth controller. I'm a complete beginner in JS or Kuzzle, sorry for any bad assumptions.
I use a simple admin ...
2
votes
1
answer
115
views
Do I have to specify a mapping in order to use the document.search controller in Kuzzle?
I am using Kuzzle in order to build a simple slack-like application. I have a simple collection with documents only containing other documents ids.
I wanted to query a list of ids from this collection ...
1
vote
1
answer
35
views
Kuzzle - inter-plugins communication (via method calls)
Is there a way with Kuzzle, to make two plugins communicate with each other?
Let's say a plugin A wants to call a method of a plugin B at boot time, or even runtime for some use cases. How can I do ...
1
vote
1
answer
150
views
java.lang.RuntimeException: org.json.JSONException: JSONObject["_source"] not found. #Kuzzle
I am trying to update the document using java sdk, when I run my code kuzzle status is connected, it update the fields but neither comes in onSuccess() nor onError(). when I again request to ...
1
vote
1
answer
173
views
Get request Content-Length on kuzzle search javascript-sdk
i wondering how can i get the Content-Length size when i call kuzzle.document.search.
Any help?
Thanks
1
vote
1
answer
125
views
Kuzzle getUser by JWT Token generated early
I have Integrated kuzzle in ReactJS app using Kuzzle-SDK
Everything works Fine first. I Login using kuzzle.auth.login('local', credentials)
and save the JWT Token in localStorage and kuzzle.auth....
1
vote
1
answer
21
views
Is it possible to declare a pipe on an API action of another plugin?
Is it possible from a pipe of an A plugin to interfere with the response of a B plugin?
Use case: I want to use the status cluster route to check the number of nodes in the cluster. Problem is that ...
1
vote
1
answer
35
views
Issue with kuzzle custom strategy
I got a Unable to log in using the strategy "SSO" while building a custom authentication strategy, I used the create hook to create my user when required.
Everything went well including my hook:
...
1
vote
1
answer
59
views
How to send pdf file from Kuzzle plugin response?
I'm using Kuzzle as a backend for all my business logic for a mobile application and multiple websites.
On one website, I need to download a PDF containing multiple reports. To stay in the same ...
1
vote
1
answer
67
views
kuzzle / react native - Cannot inherits class from BaseController
I'm trying to extends the KUZZLE JavaScript SDK in order to call some controllers on kuzzle servers, implemented via plugins.
I'm following that guide: add controller
Here is my controller which ...
1
vote
1
answer
103
views
How to attach extra data to user (for password reset) with Kuzzle
I want to make a reset password feature on a Kuzzle stack but I don't know where to put extra data (like a token for reset password) in the user document.
Furthermore, the user should not be able to ...
1
vote
1
answer
318
views
Connexion object singleton in react native
I'm trying to create a singleton service class in which I instanciate a connection object, which connect to the backend, in order to reuse the connection object in every component, so I've done that:
...
2
votes
1
answer
138
views
Integrating OAuth with Kuzzle
I want use an OAuth provider to authenticate requests to my kuzzle instance.
What is the standard or preferred way to do this?
1
vote
1
answer
389
views
How to use file upload with Kuzzle
I use Kuzzle as a backend for my progressive web app and I wanted to do some file upload.
As far I can see, Kuzzle does not support server side file storage.
How can I upload images from my ...