TheFriendinYou
TheFriendinYou
RRailway
Created by TheFriendinYou on 12/20/2023 in #✋|help
Railway connection closing
its just that most of the other coding platform places are very inactive so im still looking for more places for help
24 replies
RRailway
Created by TheFriendinYou on 12/20/2023 in #✋|help
Railway connection closing
sorry
24 replies
RRailway
Created by TheFriendinYou on 12/20/2023 in #✋|help
Railway connection closing
i noticed in my code im using one instance of db.connect(), so maybe that causing issues?
24 replies
RRailway
Created by TheFriendinYou on 12/20/2023 in #✋|help
Railway connection closing
no
24 replies
RRailway
Created by TheFriendinYou on 12/20/2023 in #✋|help
Railway connection closing
maybe i should use createPool instead?
24 replies
RRailway
Created by TheFriendinYou on 12/20/2023 in #✋|help
Railway connection closing
no i am not
24 replies
RRailway
Created by TheFriendinYou on 12/20/2023 in #✋|help
Railway connection closing
oh mb, mysql2 npm package?
24 replies
RRailway
Created by TheFriendinYou on 12/20/2023 in #✋|help
Railway connection closing
axios
24 replies
RRailway
Created by TheFriendinYou on 12/20/2023 in #✋|help
Railway connection closing
i wonder if azure stops connections over a period of time
24 replies
RRailway
Created by TheFriendinYou on 12/20/2023 in #✋|help
Railway connection closing
an app that is connected to azure mysql from a node.js backend. I usually have to redeploy to make it work again.
24 replies
RRailway
Created by TheFriendinYou on 12/20/2023 in #✋|help
Railway connection closing
N/A
24 replies
RRailway
Created by TheFriendinYou on 12/17/2023 in #✋|help
timeout errors when trying to configure azure mysql to railway backend
ok thank you!
42 replies
RRailway
Created by TheFriendinYou on 12/17/2023 in #✋|help
timeout errors when trying to configure azure mysql to railway backend
this isnt railway related but I just wanted to know if youve had experience with uploading images to database. I was working with multer and was wondering how to display the images in a production setting(since it dosent have a file path in production that the images are saved onto). Im wondering if theres a possible way to avoid this
42 replies
RRailway
Created by TheFriendinYou on 12/17/2023 in #✋|help
timeout errors when trying to configure azure mysql to railway backend
ok thanks, just one more question since i was able solve all the issues except for one
42 replies
RRailway
Created by TheFriendinYou on 12/17/2023 in #✋|help
timeout errors when trying to configure azure mysql to railway backend
Here’s what it I’m doing whenever I’m trying to authenticate users,
const cookieOptions = {
httpOnly: false,
path: '/',
secure: true,
}


const token = jwt.sign(user, secretKey, { expiresIn: '2h' });

res.cookie('token', token, cookieOptions)
const cookieOptions = {
httpOnly: false,
path: '/',
secure: true,
}


const token = jwt.sign(user, secretKey, { expiresIn: '2h' });

res.cookie('token', token, cookieOptions)
42 replies
RRailway
Created by TheFriendinYou on 12/17/2023 in #✋|help
timeout errors when trying to configure azure mysql to railway backend
Alright gotcha
42 replies
RRailway
Created by TheFriendinYou on 12/17/2023 in #✋|help
timeout errors when trying to configure azure mysql to railway backend
I’m making a cookies request in the code do you think the it may cause conflict?
42 replies
RRailway
Created by TheFriendinYou on 12/17/2023 in #✋|help
timeout errors when trying to configure azure mysql to railway backend
Yes
42 replies
RRailway
Created by TheFriendinYou on 12/17/2023 in #✋|help
timeout errors when trying to configure azure mysql to railway backend
I deployed my frontend on netlify
42 replies
RRailway
Created by TheFriendinYou on 12/17/2023 in #✋|help
timeout errors when trying to configure azure mysql to railway backend
I’ll send my code once I get back but I am getting null when making them and getting no response as well as a blank screen. There’s probably something wrong in my frontend and post request
42 replies