yohasebe / openai-chat-api-workflow

🎩 An Alfred 5 Workflow for using OpenAI Chat API to interact with GPT-4o 🤖💬 It also allows image generation 🖼️, image understanding 👀, speech-to-text conversion 🎤, and text-to-speech synthesis 🔈
https://github.com/yohasebe/openai-text-completion-workflow
MIT License
300 stars 8 forks source link

After a 502 bad gateway error the server is not responding #28

Open lazywei opened 9 months ago

lazywei commented 9 months ago

After I got a 502 bad gateway error, I then closed the browser tab and try to trigger the alfred workflow again, but it seems the server won't be opened, here is the debug log. There is an out of bound index error, is this because I close the browser tab?

[16:26:59.687] OpenAI[Fallback Search] Processing complete
[16:26:59.691] OpenAI[Fallback Search] Passing output 'nonetheless' to Arg and Vars
[16:26:59.691] OpenAI[Arg and Vars] Processing complete
[16:26:59.692] OpenAI[Arg and Vars] Passing output '' to Arg and Vars
[16:26:59.692] OpenAI[Arg and Vars] Processing complete
[16:26:59.693] OpenAI[Arg and Vars] Passing output '' to List Filter
[16:27:00.937] OpenAI[List Filter] Processing complete
[16:27:00.939] OpenAI[List Filter] Passing output 'translate_l1_to_l2' to Conditional
[16:27:00.940] OpenAI[Conditional] Processing complete
[16:27:00.941] OpenAI[Conditional] Passing output 'translate_l1_to_l2' to Arg and Vars
[16:27:00.942] OpenAI[Arg and Vars] Processing complete
[16:27:00.943] OpenAI[Arg and Vars] Passing output 'nonetheless' to Junction
[16:27:00.943] OpenAI[Junction] Processing complete
[16:27:00.947] OpenAI[Junction] Passing output 'nonetheless' to Conditional
[16:27:00.948] OpenAI[Conditional] Processing complete
[16:27:00.948] OpenAI[Conditional] Passing output 'nonetheless' to Run Script
[16:27:00.949] OpenAI[Junction] Passing output 'nonetheless' to Run Script
[16:27:01.011] OpenAI[Run Script] Processing complete
[16:27:01.017] OpenAI[Run Script] Passing output 'true
' to Conditional
[16:27:01.018] OpenAI[Conditional] Processing complete
[16:27:01.018] OpenAI[Conditional] Passing output 'true
' to Conditional
[16:27:01.018] OpenAI[Conditional] Processing complete
[16:27:01.019] OpenAI[Conditional] Passing output 'true
' to Run Script
[16:27:01.082] OpenAI[Run Script] Processing complete
[16:27:01.088] OpenAI[Run Script] Passing output '/Users/cwchang/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.yohasebe.openai/webui.html' to Arg and Vars
[16:27:01.089] OpenAI[Arg and Vars] Processing complete
[16:27:01.089] OpenAI[Arg and Vars] Passing output 'nonetheless' to Run Script
[16:27:01.092] OpenAI[Run Script] Processing complete
[16:27:01.092] OpenAI[Run Script] Passing output '' to Conditional
[16:27:01.821] OpenAI[Run Script] Processing complete
[16:27:01.824] OpenAI[Run Script] Passing output 'true' to Call External Trigger
[16:27:01.825] OpenAI[Run Script] Running directly with argument ''
[16:27:01.977] OpenAI[Run Script] Processing complete
[16:27:01.984] OpenAI[Run Script] Passing output 'yes' to Conditional
[16:27:01.985] OpenAI[Conditional] Processing complete
[16:27:01.986] OpenAI[Conditional] Passing output 'yes' to Arg and Vars
[16:27:01.987] OpenAI[Arg and Vars] Processing complete
[16:27:01.988] OpenAI[Arg and Vars] Passing output '' to Run Script
[16:27:02.047] OpenAI[Run Script] Processing complete
[16:27:02.052] OpenAI[Run Script] Passing output 'false' to Transform
[16:27:02.053] OpenAI[Transform] Processing complete
[16:27:02.054] OpenAI[Transform] Passing output 'false' to Arg and Vars
[16:27:02.055] OpenAI[Arg and Vars] Processing complete
[16:27:02.055] OpenAI[Arg and Vars] Passing output 'false' to Conditional
[16:27:02.056] OpenAI[Conditional] Processing complete
[16:27:02.057] OpenAI[Conditional] Passing output 'false' to Arg and Vars
[16:27:02.057] OpenAI[Arg and Vars] Processing complete
[16:27:02.058] OpenAI[Arg and Vars] Passing output 'http://localhost:80/openai/' to Run Script
[16:27:02.179] ERROR: OpenAI[Run Script] execution error: Error: Error: Invalid index. (-1719)
[16:27:02.182] OpenAI[Run Script] Processing complete
[16:27:02.189] OpenAI[Run Script] Passing output '' to Conditional
yohasebe commented 9 months ago

I suspect the 502 bad gateway error could be related to the recent OpenAI API incident I received. If you're still facing issues while using the OpenAI workflow, you can restart the local server by executing "Restart Server" as shown in the image below:

restart-server

On a side note, I have uploaded a new version (2.9.3) of the workflow, which has resolved an issue that was introduced when I recently added screen capture features. Please try it out.

lazywei commented 9 months ago

Got it thanks! Yeah I noticed they have a few outage earlier today. I will give it a try. Thanks!