Comments (10)
I had the same and fixed by adding environment variable (in Web App Config) to set NEXTAUTH_URL to point to URL. For some reason mine was missing the https at the start.
from azurechat.
@Nettitude-MS , your error is due to a COSMOS DB variable not being set properly.
as for the OPs issue, @mroyster provided the right answer - the NEXTAUTH_URL must contain
https://
.
Thanks for pointing into the right direction @oliverlabs.
The One Click Azure Deployment actually creates the App Settings AZURE_COSMOSEDB_KEY
and AZURE_COSMOSEDB_URI
(notice the extra E letter), and the code appears to refer the env vars AZURE_COSMOSDB_KEY
and AZURE_COSMOSDB_URI
as seen here: https://github.com/microsoft/azurechatgpt/blob/6c76fb9b3239ddd751905755267115f5e9e5b0dd/src/features/common/cosmos.ts#L8C32-L8C50
Might be worth revising the ARM Template and the env var reference here as well:
https://github.com/microsoft/azurechatgpt/blob/6c76fb9b3239ddd751905755267115f5e9e5b0dd/README.md?plain=1#L240
https://github.com/microsoft/azurechatgpt/blob/6c76fb9b3239ddd751905755267115f5e9e5b0dd/README.md?plain=1#L239
from azurechat.
I get the exact same issue as @Nettitude-MS
from azurechat.
@Nettitude-MS , your error is due to a COSMOS DB variable not being set properly.
as for the OPs issue, @mroyster provided the right answer - the NEXTAUTH_URL must contain https://
.
from azurechat.
Please updated the Azure App service application settings that matches the env.local
There were few typos and it's fixed
from azurechat.
I am also facing the same issue of Login loop when running on Azure. With local settings, it works fine using the same ADFS application.
I fixed the above issue by adding https:// as mentioned here #62 (comment)
from azurechat.
@DavidLee-Arinco Could you please check the .env.local file and remove the comment next to the NEXTAUTH_URL
It's seems to be causing the error. I will update the documentation to remove those comments
from azurechat.
Sorry, I cannot see how you have managed to fix the issue with just adding HTTPS into the App Setting for the NEXTAUTH_URL variable.
I've added this, as I am suffering with the same issue, and all I receive when browsing back to the site is a error such as the below:
If I remove the 'HTTPS://' from the variable, I get the login screen once again but the loop still occurs.
I've checked my redirect URI and I am confident that the login attempts are completing as I can see the application successfully authenticating into my tenancy via my UPN so I think this must be a configuration setting somewhere.
from azurechat.
I am also facing the same issue of Login loop when running on Azure. With local settings, it works fine using the same ADFS application.
from azurechat.
Hi All,
There were few issues due to typos in the env.local file. We've fixed and merged to main branch.
Could you please check?
- All your local env.local names matches env.example
- All your app settings matches env.example
- As mentioned above Ensure the NEXTAUTH_URL has https:// at the start. We've also updated the ARM and Bicep template to fix this.
from azurechat.
Related Issues (20)
- Support multi photo uploaded in single message
- Microphone button not stopping
- Use GPT4o new model HOT 4
- Unable to create prompt templates HOT 2
- TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined HOT 3
- Is there an Azurechat roadmap available
- Load Test
- Getting api/auth/error after deployment
- Compatibility Issue with Azure GovCloud HOT 1
- (x) Failed: Packaging service frontend
- Dockerfile RUN yarn build fails related to @azure/storage-blob package
- index HOT 2
- 400 Invalid image (base64) data
- Access Control with Security Groups for Extensions
- Disable AI search when upload document
- Sample up to date
- Access Control for Extensions
- Cannot go past login page when accessed via Microsoft Teams's website tab
- Azure AI Search - unauthorized errors
- Extensions with delegated permissions scope / Graph APIs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azurechat.