90 questions
Score of 0
0 answers
83 views
Sails: io.socket.get requests are throwing 401 Unauthorized
I recently upgraded the version of Sails from version 1.5.2 to 1.5.7 for Vulnerability Fix.
This is my first time working with sails and node. So, there are lots of gaps in my understanding.
After the ...
Score of -2
1 answer
76 views
Every time i create new sails project and try to log in this error will come help me with this plz
enter image description here
CloudError: Endpoint (`observeMySession`) responded with an error (or the request failed).
I need to fix this error this is my browser console error and those come while ...
Score of 0
1 answer
121 views
sails.io.js with Svelte3/4 SvelteKit
I've been trying to port my app from older Svelte3/Rollup to newer Vite based setup and am having trouble initializing sails.io.js client to work inside Svelte.
What used to work really well in the ...
Score of 0
1 answer
385 views
Listening to sails socket in react
I'm trying to listen to changes from Sails socket in the front-end using react.
Server listen to changes in a MongoDB Collection and blasts the changes:
// Setting up connection to MongoDB
const ...
Score of 0
1 answer
189 views
Use layout.ejs dynamic or how to edit a view-layout.js
Every Page which will be included in the layout.ejs has a view-pagename.js so I can use dynamic content in it.
How can I bring dynamic content a a default function to the layout page? There is no view-...
Score of 0
1 answer
73 views
Sails.js sails.io.js, blueprints not getting events from .publish(), how to subscribe to all events?
I don't know why I'm not getting notification events from sails models from model.publish().
In pre-1.x sailsjs, similar client-side code had worked and I would get every event when records are ...
Score of 1
0 answers
1063 views
Request payload not found in network tab in chrome devtools
In the https://github.com/pantsel/konga application, I created a connection, but not found the payload data in the network tab.
I saw the request to "/api/kongnode", the only request was ...
Score of 0
1 answer
737 views
How to connect socket from VueJs with Sails js built in socket with sails.io.js in vue js?
I am trying to connect VueJs with Sails js over socket connection through Sails.io.js package but got not success till now.
I have taken VuejS starter template and sails js starter template to make ...
Score of 0
1 answer
326 views
update data in state array on socket event
Here is my code:
import React, { useEffect, useState } from 'react';
import Loader from './Loader.jsx';
import Unit from './Unit.jsx';
import Comments from './Comments.jsx';
export default function ...
Score of 3
0 answers
156 views
sailsjs sockets and nginx proxy
i have a nodejs sails app proxied by nginx.Everything works fine but cant seem to connect to sails.io websocket.I get the error below in browser
Refused to connect to 'wss://youtmail.tk/socket.io/?...
Score of 1
0 answers
138 views
Why isn't the client receiving updates from socket that has been subscribed to the Sails.js model when I change the data?
I've been trying to figure out how to get realtime updates with a React Native client connected to a Sails.js socket for the last few hours.
I'm not seeing any error messages that I'm aware of.
In the ...
Score of 0
2 answers
145 views
How to prevent insert of data that is passed using query string in sails.js for post request?
I have created new table in mysql also created model and controller in sails.js. Now I am trying to insert data using sails. As we know when we create new modal in sails it will create new post, get ...
Score of 3
1 answer
1744 views
https not working in localhost in sailsjs
I am trying to setup ssl in my local system. I am using windows machine with sails js application.
here is the configuration that I did.
/**
* Production environment settings
* (sails.config.*)
*
...
Score of 0
0 answers
85 views
Sails.js socket broadcast from shell script
I have a Sails app and several Sails Shell scripts run by cron or other external triggers (mostly me typing in the shell). I would like to implement notifications in the browser via builtin Sails ...
Score of 0
0 answers
99 views
why does sails.js crash after I restart my computer
I am new when it comes to using sail.js.
I installed Sail.js and then using sails lift I started the app it went well.
after sometime, I switched of my laptop, just to turn it on back I then an ...