Skip to content

Error on startup if running on custom port #5

@pcrosthwaite

Description

@pcrosthwaite

When running calendso on a port other than 3000, the console reports an issue with the auth API
https://next-auth.js.org/errors#client_fetch_error csrf FetchError: request to http://localhost:3000/api/auth/csrf failed, reason: connect ECONNREFUSED 127.0.0.1:3000 at ClientRequest.<anonymous> (C:\opt\calendso\node_modules\node-fetch\lib\index.js:1461:11) at ClientRequest.emit (events.js:223:5) at Socket.socketErrorListener (_http_client.js:406:9) at Socket.emit (events.js:223:5) at emitErrorNT (internal/streams/destroy.js:92:8) at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) at processTicksAndRejections (internal/process/task_queues.js:81:21) { message: 'request to http://localhost:3000/api/auth/csrf failed, reason: connect ECONNREFUSED 127.0.0.1:3000', type: 'system', errno: 'ECONNREFUSED', code: 'ECONNREFUSED' }

I believe this is due to the code expecting the server to be on port 3000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions