aj3163
aj3163
RRailway
Created by aj3163 on 5/15/2023 in #✋|help
Flask WebSockets Invalid session...
I modified my Python Flask server to use socket.io-client and am seeing errors logged after deploy. The service remains running but the server is not responding to requests properly... Any help is much appreciated! Invalid session 8nIFLl8Lm_WsCd_2AAAA (further occurrences of this error will be logged with level INFO) [2023-05-15 13:02:53 +0000] [10] [ERROR] Socket error processing request. Traceback (most recent call last): File "/opt/venv/lib/python3.8/site-packages/gunicorn/workers/sync.py", line 134, in handle self.handle_request(listener, req, client, addr) File "/opt/venv/lib/python3.8/site-packages/gunicorn/workers/sync.py", line 190, in handle_request util.reraise(*sys.exc_info()) File "/opt/venv/lib/python3.8/site-packages/gunicorn/util.py", line 625, in reraise raise value File "/opt/venv/lib/python3.8/site-packages/gunicorn/workers/sync.py", line 181, in handle_request resp.write(item) File "/opt/venv/lib/python3.8/site-packages/gunicorn/http/wsgi.py", line 326, in write self.send_headers() File "/opt/venv/lib/python3.8/site-packages/gunicorn/http/wsgi.py", line 322, in send_headers util.write(self.sock, util.to_bytestring(header_str, "latin-1")) File "/opt/venv/lib/python3.8/site-packages/gunicorn/util.py", line 286, in write sock.sendall(data) OSError: [Errno 9] Bad file descriptor
90 replies
RRailway
Created by aj3163 on 5/11/2023 in #✋|help
MongoDB authentication failed
I am trying to connect to my MongoDB hosted on Railway. I just created the MongoDB, so it only contains a 'test' db with no collection. When I do not append the URL with db name, I can use mongosh to connect and set to 'test' DB. But when I do append the db name, , 'MONGO_URL/test', I get: [DEBUG-ConnectionPool:12243] 1683846894064 connection attempt failed with error [{"ok":0,"code":18,"codeName":"AuthenticationFailed"}] { type: 'debug', message: 'connection attempt failed with error [{"ok":0,"code":18,"codeName":"AuthenticationFailed"}]', className: 'ConnectionPool', pid: 12243, date: 1683846894064 } I am new to this, any help is greatly appreciated!
30 replies
RRailway
Created by aj3163 on 5/6/2023 in #✋|help
Bulid command failed to cd into target directory
I have a React app located within a GitHub repo, like this Github repo |-----------react_app |-----------"other stuff" This is my build command cd react_app && npm install && npm run build for build command However, build failed with error #13 0.404 /bin/bash: line 1: cd: web_chat: No such file or directory On build settings, I have / as root directory I am new to Railway, would greatly appreciate any help
76 replies