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

OpenaiChat: No proof_token found in .har files #2428

Open
phamxtien opened this issue Nov 26, 2024 · 6 comments
Open

OpenaiChat: No proof_token found in .har files #2428

phamxtien opened this issue Nov 26, 2024 · 6 comments
Assignees
Labels
bug Something isn't working stale

Comments

@phamxtien
Copy link

  • Ver 0.3.7.4: Provider OpenaiChat return error "No proof_token found in .har files"
  • Ver 0.3.3.3 is ok
@phamxtien phamxtien added the bug Something isn't working label Nov 26, 2024
@hlohaus
Copy link
Collaborator

hlohaus commented Nov 26, 2024

Good day. The OpenAI Chat provider requires a proof token. You can use Nodriver to generate one, or you can create one yourself. A guide for generating a .har file with a proof token is available in the readme.

@bejokun
Copy link

bejokun commented Dec 1, 2024

Good day. The OpenAI Chat provider requires a proof token. You can use Nodriver to generate one, or you can create one yourself. A guide for generating a .har file with a proof token is available in the readme.

when use nodrive then get this error


            Failed to connect to browser
            ---------------------
            One of the causes could be when you are running as root.
            In that case you need to pass no_sandbox=True

@hlohaus
Copy link
Collaborator

hlohaus commented Dec 1, 2024

@bejokun Hello,

I'm curious to know which operating system you are using. Do you have Google Chrome installed? Are you running g4f in your terminal or in a Docker container?

The error message indicates that it is unable to open or locate the browser. In a Docker container, the issue is frequently a lack of memory.

@bejokun
Copy link

bejokun commented Dec 2, 2024

@bejokun Hello,

I'm curious to know which operating system you are using. Do you have Google Chrome installed? Are you running g4f in your terminal or in a Docker container?

The error message indicates that it is unable to open or locate the browser. In a Docker container, the issue is frequently a lack of memory.

I am using ubuntu 22.04 using normal linux terminal not using docker, and I think nodriver need open default browser profile not create new profile or other method. so we can store any cookies service using default profile

@hlohaus
Copy link
Collaborator

hlohaus commented Dec 2, 2024

Nodriver employs a new profile by default. However, we assign a distinct user directory upon Nodriver creation to prevent profile sharing with the default browser.

Copy link

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

@github-actions github-actions bot added the stale label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

4 participants