6,558 questions
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 ...
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 ...
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 ...
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 '...
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/...
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 ...
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 ...
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 ...
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 ...
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("...
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 ...
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 ...
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/...
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 ...
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 ...