N
Novu15mo ago
lukasz_f

Network error while registering

Hello. I have problem with self-hosted service. When I'm trying to register UI shows Network Error. I use docker. Changed env to: JWT_SECRET and STORE_ENCRYPTION_KEY REACT_APP_WS_URL=http://my.service.address:3002 API_ROOT_URL=http://my.service.address:3000 DISABLE_USER_REGISTRATION=false FRONT_BASE_URL=http://client:4200 WIDGET_EMBED_PATH=http://my.service.address:4701/embed.umd.min.js WIDGET_URL=http://my.service.address:4500 but when trying to register I have error/ At first I got this: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://my.service.address3000/v1/auth/register. (Reason: CORS request did not succeed). Status code: (null). After use plugin Allow CORS to Chrome error was as following: service.address.....v1/auth/register net::ERR_CONNECTION_REFUSED Any idea what's wrong here? I spent some time on debugging but don't know what's going on. Thanks.
No description
3 Replies
Pawan Jain
Pawan Jain15mo ago
change NODE_ENV to production
lukasz_f
lukasz_fOP15mo ago
Changed. Tried to register again but still same error. Also tried build docker with --force-recreate. Here is rest of my .env (same as in example) General NODE_ENV=production MONGO_URL=mongodb://mongodb:27017/novu-db MONGO_MAX_POOL_SIZE=500 REDIS_HOST=redis REDIS_PASSWORD= REDIS_CACHE_SERVICE_HOST= AWS S3_LOCAL_STACK=http://localhost:4566 S3_BUCKET_NAME=novu-local S3_REGION=us-east-1 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test Ports API_PORT=3000 REDIS_PORT=6379 REDIS_CACHE_SERVICE_PORT=6379 WS_PORT=3002
ghost
ghost13mo ago
I have the same issue, the problem is that despite setting my domain name in the .env file in all the relevant variables, the React app insists on trying to access the /v1/register on localhost:3000/v1/register instead of my domain.com/v1/register. I do have NODE_ENV=production
Want results from more Discord servers?
Add your server