Skip to content

getSession always returns null on server #1466

Answered by iaincollins
bratsos asked this question in Help
Discussion options

You must be logged in to vote

Things that may cause this include:

  1. Locally running firewall software that is preventing the server side route form connecting back to localhost (e.g. Windows Defender).
    In this case you should be able to address this in the firewall settings.

  2. Running inside a virtual machine / container where "localhost" is relative to the container.
    There is no quick solution for this one yet (but one is in progress), but if it does apply to you there are some old posts about how work around this.

The only other edge cases for this sort of thing I can think of are weird local DNS resolution problems caused by different resolvers for localhost in different contexts, but if that is the case then pro…

Replies: 8 comments 13 replies

Comment options

You must be logged in to vote
1 reply
@bratsos
Comment options

Comment options

You must be logged in to vote
10 replies
@poiintt
Comment options

@shirotamaki
Comment options

@abhaysharma3021
Comment options

@Bulletninja
Comment options

@jvmhonorato
Comment options

Answer selected by bratsos
Comment options

You must be logged in to vote
2 replies
@wowczarczyk
Comment options

@wowczarczyk
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet