Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
66 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 ...
Rachet's user avatar
  • 26
-2 votes
1 answer
70 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 ...
Ashen madalagama's user avatar
0 votes
1 answer
85 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 ...
Eximorp's user avatar
  • 311
0 votes
1 answer
371 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 ...
SM1312's user avatar
  • 588
0 votes
1 answer
182 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-...
Clément's user avatar
0 votes
1 answer
48 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 ...
eyn's user avatar
  • 798
1 vote
0 answers
1k 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 ...
niaomingjian's user avatar
  • 3,742
0 votes
1 answer
717 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 ...
Prem popatia's user avatar
0 votes
1 answer
317 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 ...
Martial's user avatar
  • 1,562
3 votes
0 answers
141 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/?...
Steve's user avatar
  • 31
1 vote
0 answers
136 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 ...
Jay's user avatar
  • 147
0 votes
2 answers
113 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 ...
baj9032's user avatar
  • 2,592
3 votes
1 answer
2k 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.*) * ...
baj9032's user avatar
  • 2,592
0 votes
0 answers
83 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 ...
Luca Faggianelli's user avatar
0 votes
0 answers
95 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 ...
EmmsDan's user avatar
  • 41

15 30 50 per page
1
2 3 4 5 6