AgentGPT icon indicating copy to clipboard operation
AgentGPT copied to clipboard

NEXTAUTH_SECRET is not working

Open xiaosaaaa opened this issue 1 year ago • 7 comments

Why is the “NEXTAUTH_SECRET” I set in .env not working, but the “OPENAI_API_KEY” I set is working?

xiaosaaaa avatar Apr 15 '23 14:04 xiaosaaaa

Why not just run ./setup.sh? it should take care of setting those values.

Check the Getting Started section if you haven't already.

exil0867 avatar Apr 15 '23 14:04 exil0867

The problem still arises

xiaosaaaa avatar Apr 15 '23 16:04 xiaosaaaa

@xiaosaaaa, can you please be more specific on what's not working. Are you getting a specific error message? What steps are you taking to produce the issue?

APiTJLillo avatar Apr 15 '23 17:04 APiTJLillo

I am starting the project using either "npm run dev" or "./setup.sh". "NEXTAUTH_SECRET" is used to prevent the project API from being quickly consumed when it is placed on the public network. I have already set up "NEXTAUTH_SECRET" and "OPENAI_API_KEY", but now the project runs normally without the need for me to input the previously set "NEXTAUTH_SECRET",and there is no error message displayed. If I leave "OPENAI_API_KEY" empty by default, the project can't run normally .So I say "NEXTAUTH_SECRET" I set in .env is not working, but the "OPENAI_API_KEY" I set is working.

xiaosaaaa avatar Apr 15 '23 17:04 xiaosaaaa

error - RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: 0 at new NodeError (node:internal/errors:399:5)

seefelder avatar Apr 16 '23 05:04 seefelder

@seefelder I think #90 is related, seems like a regional issue.

APiTJLillo avatar Apr 16 '23 11:04 APiTJLillo

How to debug this ERR_HTTP_INVALID_STATUS_CODE error?

alorbach avatar Apr 18 '23 13:04 alorbach

Going to delete due to inactivity. Seems to be addressed in https://github.com/reworkd/AgentGPT/issues/90

asim-shrestha avatar Jun 05 '23 00:06 asim-shrestha