Skip to content

openai.APITimeoutError: Request timed out. #156

Description

@nowangry

I am encountering
Traceback (most recent call last): File "/Data4T/Codes/DriveLM/challenge/evaluation.py", line 240, in <module> File "/Data4T/Codes/DriveLM/challenge/evaluation.py", line 197, in evaluation print("language score: ", output["language"]) File "/Data4T/Codes/DriveLM/challenge/evaluation.py", line 88, in eval_chatGPT """ File "/home/jqwu/anaconda3/envs/drivelm/lib/python3.8/multiprocessing/pool.py", line 364, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "/home/jqwu/anaconda3/envs/drivelm/lib/python3.8/multiprocessing/pool.py", line 771, in get raise self._value openai.APITimeoutError: Request timed out.
when running
python evaluation.py --root_path1 ./output.json --root_path2 ./test_eval.json

SOS!
ubuntu 22, python 3.8, openai==1.76.0

Activity

  1. ChonghaoSima commented on May 8, 2025

    @ChonghaoSima
    Contributor

    Seems like an openai api error. If you would like to run the provided code on your local machines, please make sure your openai key is working.

  2. nowangry commented on May 8, 2025

    @nowangry
    Author

    @ChonghaoSima Here is the UI of my OpenAI API keys:
    Image
    It shows that it was never used.
    Is it working?

    Seems like an openai api error. If you would like to run the provided code on your local machines, please make sure your openai key is working.

  3. nowangry commented on May 8, 2025

    @nowangry
    Author

    Is it a network issue? I tried to switch between different networks, but it did not help.

  4. ChonghaoSima commented on May 9, 2025

    @ChonghaoSima
    Contributor

    Please see if your network is within the openai available countries (https://platform.openai.com/docs/supported-countries)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions