Raven icon indicating copy to clipboard operation
Raven copied to clipboard

Realtime events are not working. Please try refreshing the page. In Local development

Open sambhusbabu opened this issue 1 month ago • 2 comments

Realtime events are not working. In Local Development setup. I am using socket io in 9001 port but the raven is sending request to 9000 port. I don't not its my config problem or not. frappe is working properly and getting realtime update. But the Raven is using different port. If this is my config issue please update me how to fix and close this issue.

Screenshot:

Image

sambhusbabu avatar Nov 21 '25 05:11 sambhusbabu

RAV-463

linear[bot] avatar Nov 21 '25 05:11 linear[bot]

Realtime events are not working. In Local Development setup. I am using socket io in 9001 port but the raven is sending request to 9000 port. I don't not its my config problem or not. frappe is working properly and getting realtime update. But the Raven is using different port. If this is my config issue please update me how to fix and close this issue.

Screenshot:

Image

@sambhusbabu can you confirm whether you have env.local in your src directory? with the following configuration - VITE_SOCKET_PORT=9001 VITE_SITE_NAME=raven.test VITE_BASE_NAME='' Ensure that the socket port and your site name are correctly updated here and try to restart your frontend server.

prathameshkurunkar7 avatar Nov 21 '25 14:11 prathameshkurunkar7

same issue,..

Image
ubuntu@development$ bench version
erpnext 16.0.0-dev version-16-beta (4bf4df0)
frappe 16.0.0-dev version-16-beta (4d57a05)
mint 1.0.1 main (00ce77d)
raven 2.6.5 main (2cdf429)

env.local :

VITE_BASE_NAME='' # This needs to be set as empty
VITE_SOCKET_PORT=9000 # This is the port on which socket.io is running. It's usually the main Frappe server port (8000) but in the 9000 series
VITE_SITE_NAME='development' # This is the same of the site

donnieferdian avatar Nov 25 '25 09:11 donnieferdian

Realtime events are not working. In Local Development setup. I am using socket io in 9001 port but the raven is sending request to 9000 port. I don't not its my config problem or not. frappe is working properly and getting realtime update. But the Raven is using different port. If this is my config issue please update me how to fix and close this issue. Screenshot: Image

@sambhusbabu can you confirm whether you have env.local in your src directory? with the following configuration - VITE_SOCKET_PORT=9001 VITE_SITE_NAME=raven.test VITE_BASE_NAME='' Ensure that the socket port and your site name are correctly updated here and try to restart your frontend server.

Still getting same error with env.local file

env.local file placed inside of frontend folder

sambhusbabu avatar Nov 28 '25 06:11 sambhusbabu

The file should be called ".env.local" - notice the period at the beginning, and it should be placed in the same folder as the ".env" file is. ".env.local" isn't checked into Git because it's for the local dev environment.

nikkothari22 avatar Nov 28 '25 06:11 nikkothari22