Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

Unable to launch Sails DEV mode while using PostgreSQL as database due to long time to load orm hook

Hello fellow developers! Thanks in advance for reading this question. I am currently working on a program in which I've been unable to establish a successful launch of sails in DEV mode caused by a ...
Rodrigo Melara's user avatar
1 vote
0 answers
25 views

AdapterError: '1st argument must be a dictionary' when creating a record using Sails.js and MongoDB

I am encountering an error while creating a record in my Sails.js application using the UserTM.create() method with a MongoDB database. The error message states: Error [AdapterError]: Unexpected error ...
Sanket Kumbhare's user avatar
0 votes
1 answer
31 views

Using sails.log.crit() in Sails.js with and without Winston

I'm working on a Node.js application using the Sails framework. I've noticed that the sails.log.crit() function works without integrating Winston, but I can't find any documentation or records on this ...
ihsan's user avatar
  • 1
0 votes
0 answers
31 views

Handling changes in user permissions across multiple layers (persona and company) in Sails.js

I am currently in the process of adding another layer of permissioning to our application - where it was previously handled by persona only, we are now allowing for company filtering too. So as an '...
Skandog's user avatar
  • 315
0 votes
2 answers
15 views

SailsJS Does Not Invoke Controller Action When URL Ends With File Extension

SailsJS Does Not Invoke Controller Action When URL Ends With File Extension I have a route set up to handle requests to an image... ./config/routes.js module.exports.routes = { ..., '/api/v1/...
Cody's user avatar
  • 10k
0 votes
0 answers
73 views

Unable to set database URL dynamically in Sails.js

I am working on a Sails.js application where I need to dynamically set the database URL for my Mongodb database in the datastore configuration at runtime. The idea is to get the database URL with ...
Nabil Mohammed Nalakath's user avatar
1 vote
1 answer
71 views

Sails.js CSRF token always changing for POST request

I have enabled csrf protection for my sails.js app and am calling the route to get the token for my POST request. However I keep getting a mismatch error for the post request. This is my code to get ...
amad's user avatar
  • 11
0 votes
1 answer
19 views

how to call SailsJs controller function from ExpressJs router?

i want to call UserController from express js router when i try to do it i got Users.find is not a function is this possible? I want to integrations of express and sails same project within single ...
gaurav's user avatar
  • 1
0 votes
0 answers
73 views

Node.js server stops responding to requests

I have written a Node.js (14.17.1) web application using Sails.js (0.12.14) which internally uses Express.js (3.21.3). This application has been in production since more than 5 years (whith only minor ...
Ashish's user avatar
  • 620
0 votes
1 answer
102 views

Node js promise-ftp: Error uploading file: Error: Can't open that file: No such file or directory

Using node js server and promise-ftp library, i want to upload a file "inventory.txt" to the FTP Server. These are the imports: const fs = require("fs"); const path = require("...
m_dot_dev's user avatar
0 votes
2 answers
36 views

Why aren't models being imported in my Sails application?

I'm helping someone out who's got existing code written in JavaScript using the Sails framework. For context, I currently have zero experience with this framework. Why aren't the application's models ...
josephkibe's user avatar
  • 1,343
3 votes
0 answers
1k views

Sail npm run dev

I'm new to Laravel, My application is Laravel, Vue + InertiaJS. I start my docker in terminal with sail up -d This will start the docker container, then I navigate to the url of my application, when ...
pH Jhop's user avatar
  • 41
0 votes
1 answer
53 views

Can someone please give me guidence to resolve this error message?

[0] Unhandled rejection MongoError: (Unauthorized) not authorized on admin to execute command { listIndexes: "sessions", cursor: { } } [0] at MongoError.create (/Users/biggahd/Desktop/...
Dženis H.'s user avatar
  • 7,822
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
1 vote
1 answer
50 views

how to use i18next in sailsjs

we are using handlebar to render the view and now must use i18next lib to render the translated pages in our sailsjs backend but i could not find any example on how to integrate i18next in sailsjs and ...
MAK's user avatar
  • 333

15 30 50 per page
1
2 3 4 5
438