Can't make it work for hours
jevticmarko012-design
HOBBYOP

2 months ago

I've been trying to connect that database to work for hours and cant make it happen. It's all live, but when i try to add email to subscription list or to make an admin account i cant. nothing gets written into database and i cant figure it out. Please help me.

Solved$10 Bounty

6 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


brody
EMPLOYEE

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody about 2 months ago


Hi,

Can you share the exact error you're getting? Is it locally? In another service?


jevticmarko012-design
HOBBYOP

2 months ago

This is part of last one:
2025-10-13T01:45:08.000000000Z [inf] Starting Container 2025-10-13T01:45:09.275791941Z [err] npm warn config production Use --omit=dev instead. 2025-10-13T01:45:09.275797636Z [inf] 2025-10-13T01:45:09.275805321Z [inf] > rest-express@1.0.0 start 2025-10-13T01:45:09.275811916Z [inf] > NODE_ENV=production node dist/index.js 2025-10-13T01:45:09.275817007Z [inf] 2025-10-13T01:45:09.570717933Z [err] Warning: connect.session() MemoryStore is not 2025-10-13T01:45:09.570726072Z [err] designed for a production environment, as it will leak 2025-10-13T01:45:09.570733446Z [err] memory, and will not scale past a single process. 2025-10-13T01:45:09.590333131Z [inf] 1:45:09 AM [express] serving on port 8080 2025-10-13T01:45:19.220052887Z [err] 2025-10-13T01:45:19.220060478Z [err] file:///app/node_modules/@neondatabase/serverless/index.mjs:1345 2025-10-13T01:45:19.220066387Z [err] o?t(o):n(u)},"cb"),s=new r(function(o,u){n=o,t=u}).catch(o=>{throw Error.captureStackTrace( 2025-10-13T01:45:19.220071101Z [err] ^ 2025-10-13T01:45:19.224624256Z [err] ErrorEvent { 2025-10-13T01:45:19.224634298Z [err] [Symbol(kTarget)]: WebSocket { 2025-10-13T01:45:19.224640857Z [err] _events: [Object: null prototype] { 2025-10-13T01:45:19.224647879Z [err] error: [Function: onError] { 2025-10-13T01:45:19.224654691Z [err] [Symbol(kIsForOnEventAttribute)]: false, 2025-10-13T01:45:19.224660476Z [err] [Symbol(kListener)]: [Function (anonymous)] 2025-10-13T01:45:19.224666210Z [err] }, 2025-10-13T01:45:19.224671875Z [err] message: [Function: onMessage] { 2025-10-13T01:45:19.224676409Z [err] [Symbol(kIsForOnEventAttribute)]: false, 2025-10-13T01:45:19.224681981Z [err] [Symbol(kListener)]: [Function (anonymous)] 2025-10-13T01:45:19.224686362Z [err] }, 2025-10-13T01:45:19.224691196Z [err] close: [Function: onClose] { 2025-10-13T01:45:19.224695417Z [err] [Symbol(kIsForOnEventAttribute)]: false, 2025-10-13T01:45:19.224699450Z [err] [Symbol(kListener)]: [Function (anonymous)] 2025-10-13T01:45:19.224703474Z [err] }, 2025-10-13T01:45:19.224708578Z [err] open: [Function: onOpen] { 2025-10-13T01:45:19.224720689Z [err] [Symbol(kIsForOnEventAttribute)]: false, 2025-10-13T01:45:19.224725015Z [err] [Symbol(kListener)]: [Function: handleWebSocketOpen] 2025-10-13T01:45:19.224729312Z [err] } 2025-10-13T01:45:19.224733557Z [err] }, 2025-10-13T01:45:19.224737731Z [err] _eventsCount: 4, 2025-10-13T01:45:19.224742818Z [err] _maxListeners: undefined, 2025-10-13T01:45:19.224746898Z [err] _binaryType: 'arraybuffer', 2025-10-13T01:45:19.224752291Z [err] _closeCode: 1006, 2025-10-13T01:45:19.224756507Z [err] _closeFrameReceived: false, 2025-10-13T01:45:19.224760027Z [err] _closeFrameSent: false, 2025-10-13T01:45:19.224764403Z [err] _closeMessage: Buffer(0) [Uint8Array] [], 2025-10-13T01:45:19.224770124Z [err] _closeTimer: null, 2025-10-13T01:45:19.224774412Z [err] _errorEmitted: true, 2025-10-13T01:45:19.224778566Z [err] _extensions: {}, 2025-10-13T01:45:19.224782690Z [err] _paused: false, 2025-10-13T01:45:19.224787759Z [err] _protocol: '', 2025-10-13T01:45:19.224792097Z [err] _readyState: 3, 2025-10-13T01:45:19.224795798Z [err] _receiver: null, 2025-10-13T01:45:19.224799793Z [err] _sender: null, 2025-10-13T01:45:19.224803366Z [err] _socket: null, 2025-10-13T01:45:19.224807730Z [err] _bufferedAmount: 0, 2025-10-13T01:45:19.224812422Z [err] _isServer: false, 2025-10-13T01:45:19.224816569Z [err] _redirects: 0, 2025-10-13T01:45:19.224820700Z [err] _autoPong: true, 2025-10-13T01:45:19.224824635Z [err] _url: 'wss://postgres.railway.internal/v2', 2025-10-13T01:45:19.224829749Z [err] _req: null, 2025-10-13T01:45:19.224834074Z [err] [Symbol(shapeMode)]: false, 2025-10-13T01:45:19.224838335Z [err] [Symbol(kCapture)]: false 2025-10-13T01:45:19.224843143Z [err] }, 2025-10-13T01:45:19.224847357Z [err] [Symbol(kType)]: 'error', 2025-10-13T01:45:19.224851382Z [err] [Symbol(kError)]: Error: connect ECONNREFUSED fd12:79d7:571f:0:1000:63:17fc:89ff:443 2025-10-13T01:45:19.224856393Z [err] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) { 2025-10-13T01:45:19.224861426Z [err] errno: -111, 2025-10-13T01:45:19.224865550Z [err] code: 'ECONNREFUSED', 2025-10-13T01:45:19.224869856Z [err] syscall: 'connect', 2025-10-13T01:45:19.224874047Z [err] address: 'fd12:79d7:571f:0:1000:63:17fc:89ff', 2025-10-13T01:45:19.224878874Z [err] port: 443 2025-10-13T01:45:19.224883779Z [err] }, 2025-10-13T01:45:19.224887718Z [err] [Symbol(kMessage)]: 'connect ECONNREFUSED fd12:79d7:571f:0:1000:63:17fc:89ff:443' 2025-10-13T01:45:19.224891617Z [err] } 2025-10-13T01:45:19.224895738Z [err] 2025-10-13T01:45:19.224899454Z [err] Node.js v20.18.1 2025-10-13T01:45:20.934094715Z [err] npm warn config production Use --omit=dev instead. 2025-10-13T01:45:20.934101352Z [inf] 2025-10-13T01:45:20.934107530Z [inf] > rest-express@1.0.0 start 2025-10-13T01:45:20.934112896Z [inf] > NODE_ENV=production node dist/index.js 2025-10-13T01:45:20.934118669Z [inf] 2025-10-13T01:45:21.580145028Z [err] Warnin


jevticmarko012-design
HOBBYOP

2 months ago

Its all local, app uses node.js and Postgres as db


What library are you using to add information to the database? I'm a little confused as to why it's trying to use a websocket.


jevticmarko012-design
HOBBYOP

2 months ago

Ive fixed it all, deleted everything and started new. It works like a charm now, thank you


Status changed to Solved samgordon about 1 month ago


Loading...