$e.bash-tian
$e.bash-tian
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
thanks for info @NDH ! I will make sure to try it out and let you know
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
UPDATE - I am pretty sure the issue is somewhere in the Deno Deploy not being set properly, I could be not handling as I should the websocket connection, when I checked with the data provider, they log the error as Client Disconnected, I have a console.error for the onerror and a console.log for the onclose...despite that I don't see anything in the deno deploy logs...I will probably simply run the deno server locally and spend time working on the UI
86 replies
DDeno
Created by AliceFox on 1/30/2025 in #help
Moving code to src/ caused VSCode errors about imports
There should probably be something about it in the docs
4 replies
DDeno
Created by AliceFox on 1/30/2025 in #help
Moving code to src/ caused VSCode errors about imports
I am not sure what the issue could be, my guess is that is looks for a particular entry point and by adding src/ you are adding an extra layer
4 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
Hi @NDH! im sorry I haven't had time to check the suggestions you made. Answering your questions, I go to Deno Deploy overview and open the site. You mean ping to keep it alive? Possibly with a similar approach to what you suggested, with the SSE
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
I appreciate all the help and the time you spent on this! Let me know if you want me to keep you posted, hope you have a great time!
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
ill add sending a ping with an interval and see if that does it
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
Isn't that the day to day of engineering? 😂
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
it stayed open for around 6 minutes
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
Probably need to ping every now and then to make sure the server or ws dont think they are sending info for no reason
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
ok...good news and bad news...deno ws is now working fine! bad news...for some reason, data stops being inserted to the database, idk if that is deno or vercel having a time limit
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
A good sign so far is that the server resolves the initial request to "/", it no longer stays loading
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
ill let it run for some time and see, usually i got the error in the first 5-10 mins
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
so far so good in prod
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
I think I just fixed it, let me deploy and check in prod
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
yep, but if it runs locally, it runs just fine. I did some reading and some people seem to send pings to keep to connection alive but in my case, its not that the ws goes silent and then it stops, as you can see in the video I sent earlier, the browser never fully loads, so I guess thats why the timeout
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
No description
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
Ill try to draw a diagram so its a bit more clear the high level architecture
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
Not on a supabase server
86 replies
DDeno
Created by $e.bash-tian on 1/28/2025 in #help
Deno application with just a Websocket connection gives 504 in Prod Deno Deploy
I am running a Deno Deploy server and Im connecting to the supabase client from the deno application to insert to the database
86 replies