Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

[Bug]: Exception(resp_json.get("error", "Unknown error")) Exception: unable to log requests #1477

Open
1 task done
Nadeus opened this issue Jul 22, 2023 · 2 comments
Open
1 task done

Comments

@Nadeus
Copy link

Nadeus commented Jul 22, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/llms/base.py", line 297, in __call__
    self.generate([prompt], stop=stop, callbacks=callbacks)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/llms/base.py", line 191, in generate
    raise e
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/llms/base.py", line 185, in generate
    self._generate(prompts, stop=stop, run_manager=run_manager)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/llms/base.py", line 438, in _generate
    else self._call(prompt, stop=stop)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gpt4_openai/__init__.py", line 35, in _call
    for data in self.chatbot.ask(prompt=prompt,
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 757, in ask
    yield from self.post_messages(
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 710, in post_messages
    yield from self.__send_request(
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 532, in __send_request
    raise e
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 524, in __send_request
    data["arkose_token"] = get_arkose_token(
                           ^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 222, in get_arkose_token
    return get_arkose_token(download_images=True, captcha_supported=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 181, in get_arkose_token
    raise Exception(resp_json.get("error", "Unknown 

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

Should have worked

Version where the problem happens

Last version (6.8.6)

What Python version are you running this with?

No response

What is your operating system ?

MacOS

Command Line Arguments

No

Console logs

File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/llms/base.py", line 297, in __call__
    self.generate([prompt], stop=stop, callbacks=callbacks)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/llms/base.py", line 191, in generate
    raise e
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/llms/base.py", line 185, in generate
    self._generate(prompts, stop=stop, run_manager=run_manager)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/llms/base.py", line 438, in _generate
    else self._call(prompt, stop=stop)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gpt4_openai/__init__.py", line 35, in _call
    for data in self.chatbot.ask(prompt=prompt,
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 757, in ask
    yield from self.post_messages(
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 710, in post_messages
    yield from self.__send_request(
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 532, in __send_request
    raise e
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 524, in __send_request
    data["arkose_token"] = get_arkose_token(
                           ^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 222, in get_arkose_token
    return get_arkose_token(download_images=True, captcha_supported=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/revChatGPT/V1.py", line 181, in get_arkose_token
    raise Exception(resp_json.get("error", "Unknown

Additional information

No response

@wangjiyang
Copy link

same issue here

1 similar comment
@QvQQ
Copy link

QvQQ commented Aug 4, 2023

same issue here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants