Description
Getting site cannot be reached message at chrome. After that the page is redirect to Azure AI page that load empty page with below console error
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
-
Cloned the app from github
-
Running the app using start.cmd
ChatGPT\sample-app-aoai-chatGPT>start.cmd
Restoring backend python packages
Collecting azure-identity==1.14.0b2 (from -r requirements.txt (line 1))
Using cached azure_identity-1.14.0b2-py3-none-any.whl (154 kB)
Requirement already satisfied: Flask==2.3.2 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from -r requirements.txt (line 2)) (2.3.2)
Requirement already satisfied: openai==0.27.7 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from -r requirements.txt (line 3)) (0.27.7)
Requirement already satisfied: azure-search-documents==11.4.0b6 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from -r requirements.txt (line 4)) (11.4.0b6)
Requirement already satisfied: azure-storage-blob==12.17.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from -r requirements.txt (line 5)) (12.17.0)
Requirement already satisfied: python-dotenv==1.0.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from -r requirements.txt (line 6)) (1.0.0)
Requirement already satisfied: azure-core<2.0.0,>=1.11.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from azure-identity==1.14.0b2->-r requirements.txt (line 1)) (1.28.0)
Requirement already satisfied: cryptography>=2.5 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from azure-identity==1.14.0b2->-r requirements.txt (line 1)) (41.0.3)
Requirement already satisfied: msal<2.0.0,>=1.20.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from azure-identity==1.14.0b2->-r requirements.txt (line 1)) (1.23.0)
Requirement already satisfied: msal-extensions<2.0.0,>=0.3.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from azure-identity==1.14.0b2->-r requirements.txt (line 1)) (1.0.0)
Requirement already satisfied: Werkzeug>=2.3.3 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from Flask==2.3.2->-r requirements.txt (line 2)) (2.3.6)
Requirement already satisfied: Jinja2>=3.1.2 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from Flask==2.3.2->-r requirements.txt (line 2)) (3.1.2)
Requirement already satisfied: itsdangerous>=2.1.2 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from Flask==2.3.2->-r requirements.txt (line 2)) (2.1.2)
Requirement already satisfied: click>=8.1.3 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from Flask==2.3.2->-r requirements.txt (line 2)) (8.1.6)
Requirement already satisfied: blinker>=1.6.2 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from Flask==2.3.2->-r requirements.txt (line 2)) (1.6.2)
Requirement already satisfied: requests>=2.20 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from openai==0.27.7->-r requirements.txt (line 3)) (2.31.0)
Requirement already satisfied: tqdm in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from openai==0.27.7->-r requirements.txt (line 3)) (4.65.0)
Requirement already satisfied: aiohttp in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from openai==0.27.7->-r requirements.txt (line 3)) (3.8.5)
Requirement already satisfied: azure-common~=1.1 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from azure-search-documents==11.4.0b6->-r requirements.txt (line 4)) (1.1.28)
Requirement already satisfied: isodate>=0.6.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from azure-search-documents==11.4.0b6->-r requirements.txt (line 4)) (0.6.1)
Requirement already satisfied: typing-extensions>=4.3.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from azure-storage-blob==12.17.0->-r requirements.txt (line 5)) (4.7.1)
Requirement already satisfied: six>=1.11.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from azure-core<2.0.0,>=1.11.0->azure-identity==1.14.0b2->-r requirements.txt (line 1)) (1.16.0)
Requirement already satisfied: colorama in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from click>=8.1.3->Flask==2.3.2->-r requirements.txt (line 2)) (0.4.6)
Requirement already satisfied: cffi>=1.12 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cryptography>=2.5->azure-identity==1.14.0b2->-r requirements.txt (line 1)) (1.15.1)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from Jinja2>=3.1.2->Flask==2.3.2->-r requirements.txt (line 2)) (2.1.3)
Requirement already satisfied: PyJWT[crypto]<3,>=1.0.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from msal<2.0.0,>=1.20.0->azure-identity==1.14.0b2->-r requirements.txt (line 1)) (2.8.0)
Requirement already satisfied: portalocker<3,>=1.6 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from msal-extensions<2.0.0,>=0.3.0->azure-identity==1.14.0b2->-r requirements.txt (line 1)) (2.7.0)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from requests>=2.20->openai==0.27.7->-r requirements.txt (line 3)) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from requests>=2.20->openai==0.27.7->-r requirements.txt (line 3)) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from requests>=2.20->openai==0.27.7->-r requirements.txt (line 3)) (2.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from requests>=2.20->openai==0.27.7->-r requirements.txt (line 3)) (2023.7.22)
Requirement already satisfied: attrs>=17.3.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from aiohttp->openai==0.27.7->-r requirements.txt (line 3)) (23.1.0)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from aiohttp->openai==0.27.7->-r requirements.txt (line 3)) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from aiohttp->openai==0.27.7->-r requirements.txt (line 3)) (4.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from aiohttp->openai==0.27.7->-r requirements.txt (line 3)) (1.9.2)
Requirement already satisfied: frozenlist>=1.1.1 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from aiohttp->openai==0.27.7->-r requirements.txt (line 3)) (1.4.0)
Requirement already satisfied: aiosignal>=1.1.2 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from aiohttp->openai==0.27.7->-r requirements.txt (line 3)) (1.3.1)
Requirement already satisfied: pycparser in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from cffi>=1.12->cryptography>=2.5->azure-identity==1.14.0b2->-r requirements.txt (line 1)) (2.21)
Requirement already satisfied: pywin32>=226 in c:\users\appdata\local\packages\pythonsoftwarefoundation.python.3.11_qbz5n2kfra8p0\localcache\local-packages\python311\site-packages (from portalocker<3,>=1.6->msal-extensions<2.0.0,>=0.3.0->azure-identity==1.14.0b2->-r requirements.txt (line 1)) (306)
Installing collected packages: azure-identity
Attempting uninstall: azure-identity
Found existing installation: azure-identity 1.13.0b4
Uninstalling azure-identity-1.13.0b4:
Successfully uninstalled azure-identity-1.13.0b4
Successfully installed azure-identity-1.14.0b2
[notice] A new release of pip is available: 23.1.2 -> 23.2.1
[notice] To update, run: C:\Users\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip
Restoring frontend npm packages
added 218 packages in 37s
88 packages are looking for funding
run npm fund
for details
Building frontend
frontend@0.0.0 build
tsc && vite build
vite v4.1.5 building for production...
✓ 2128 modules transformed.
../static/index.html 0.45 kB
../static/assets/Send-d0601aaa.svg 0.92 kB
../static/assets/Azure-30d5e7c0.svg 2.04 kB
../static/assets/index-7096fc31.css 9.11 kB │ gzip: 2.16 kB
../static/assets/index-1e8ff4fd.js 803.44 kB │ gzip: 246.88 kB │ map: 5,483.40 kB
(!) Some chunks are larger than 500 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
Starting backend
- Serving Flask app 'app'
- Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. - Running on http://127.0.0.1:5000
Press CTRL+C to quit
127.0.0.1 - - [07/Aug/2023 11:26:12] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [07/Aug/2023 11:26:12] "GET /assets/index-7096fc31.css HTTP/1.1" 200 -
127.0.0.1 - - [07/Aug/2023 11:26:13] "GET /assets/index-1e8ff4fd.js HTTP/1.1" 200 -
127.0.0.1 - - [07/Aug/2023 11:26:13] "GET /favicon.ico HTTP/1.1" 200 -
127.0.0.1 - - [07/Aug/2023 11:26:21] "GET /assets/index-7096fc31.css HTTP/1.1" 304 -
127.0.0.1 - - [07/Aug/2023 11:26:53] "GET / HTTP/1.1" 304 -
127.0.0.1 - - [07/Aug/2023 11:26:53] "GET /assets/index-1e8ff4fd.js HTTP/1.1" 304 -
127.0.0.1 - - [07/Aug/2023 11:26:53] "GET /assets/index-7096fc31.css HTTP/1.1" 304 -
127.0.0.1 - - [07/Aug/2023 11:26:53] "GET /favicon.ico HTTP/1.1" 304 -