Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to access GPT #74

Open
stonedswede opened this issue Aug 22, 2023 · 4 comments
Open

Failed to access GPT #74

stonedswede opened this issue Aug 22, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@stonedswede
Copy link

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
Copy link
Collaborator

Can your terminal access the openai web address normally?

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

@stonedswede
Copy link
Author

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
Copy link
Author

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

@booboosui booboosui added the bug Something isn't working label Aug 23, 2023
@av8dtop
Copy link

av8dtop commented Sep 2, 2023

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

看是不是這個問題

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants
@av8dtop @stonedswede @booboosui and others