Failed to access GPT #74

Open
opened 2023-08-22 15:09:05 -04:00 by stonedswede · 4 comments
stonedswede commented 2023-08-22 15:09:05 -04:00 (Migrated from github.com)

Get this from both windows and Docker.

Error: Failed to access GPT, please check whether your network can connect to GPT and terminal proxy is running properly.

Some files failes to write or check.

Get this from both windows and Docker. Error: Failed to access GPT, please check whether your network can connect to GPT and terminal proxy is running properly. Some files failes to write or check.
booboosui commented 2023-08-22 22:31:38 -04:00 (Migrated from github.com)

Can your terminal access the openai web address normally?

To test the network connectivity, run the curl -v https://api.openai.com command

Can your terminal access the openai web address normally? To test the network connectivity, run the ```curl -v https://api.openai.com``` command
stonedswede commented 2023-08-23 06:03:47 -04:00 (Migrated from github.com)

VERBOSE: GET with 0-byte payload
curl : { "error": { "message": "Invalid URL (GET /)", "type": "invalid_request_error", "param": null, "code": null } }
At line:1 char:1

  • curl -v https://api.openai.com
  •   + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
      + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
    
VERBOSE: GET with 0-byte payload curl : { "error": { "message": "Invalid URL (GET /)", "type": "invalid_request_error", "param": null, "code": null } } At line:1 char:1 + curl -v https://api.openai.com + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
stonedswede commented 2023-08-23 08:36:55 -04:00 (Migrated from github.com)

Traceback (most recent call last):
File "C:\Users\johan\OneDrive\Skrivbord\DevOpsGPT-fix-win\backend\app\controllers\common.py", line 9, in decorated_function
result = func(*args, **kwargs)
File "C:\Users\johan\OneDrive\Skrivbord\DevOpsGPT-fix-win\backend\app\controllers\workspace.py", line 45, in create
success, msg = pullCode(ws_path, gitPath, base_branch, fature_branch)
File "C:\Users\johan\OneDrive\Skrivbord\DevOpsGPT-fix-win\backend\app\pkgs\devops\git_tools.py", line 13, in pullCode
result = subprocess.run(['git', 'clone', '-b', base_branch, gitUrl, repo_path], capture_output=True, text=True, cwd=ws_path)
File "C:\Users\johan\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\johan\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\johan\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Det går inte att hitta filen

Traceback (most recent call last): File "C:\Users\johan\OneDrive\Skrivbord\DevOpsGPT-fix-win\backend\app\controllers\common.py", line 9, in decorated_function result = func(*args, **kwargs) File "C:\Users\johan\OneDrive\Skrivbord\DevOpsGPT-fix-win\backend\app\controllers\workspace.py", line 45, in create success, msg = pullCode(ws_path, gitPath, base_branch, fature_branch) File "C:\Users\johan\OneDrive\Skrivbord\DevOpsGPT-fix-win\backend\app\pkgs\devops\git_tools.py", line 13, in pullCode result = subprocess.run(['git', 'clone', '-b', base_branch, gitUrl, repo_path], capture_output=True, text=True, cwd=ws_path) File "C:\Users\johan\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "C:\Users\johan\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\johan\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] Det går inte att hitta filen
av8dtop commented 2023-09-02 03:08:00 -04:00 (Migrated from github.com)

我猜測 有可能是設定檔編碼問題
我建議作者改成utf-8的模式
開發開源模式大致上都是用utf-8可以讓國際所有人都可以使用
而我有遇到類似問題就把註解全部刪除即可

看是不是這個問題

我猜測 有可能是設定檔編碼問題 我建議作者改成utf-8的模式 開發開源模式大致上都是用utf-8可以讓國際所有人都可以使用 而我有遇到類似問題就把註解全部刪除即可 看是不是這個問題
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kuafuai/DevOpsGPT#74
No description provided.