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

curl_cffi.requests.errors.RequestsError: impersonate chrome is not supported #1

Open
Florianvo opened this issue Apr 3, 2024 · 2 comments

Comments

@Florianvo
Copy link

I'm trying to get this to run but I get this error:

File "/opt/homebrew/lib/python3.11/site-packages/suno/suno.py", line 27, in init
self._sid = self._get_sid()
^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/suno/suno.py", line 32, in _get_sid
response = super().request("GET", url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/suno/suno.py", line 20, in request
return self._session.request(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/curl_cffi/requests/session.py", line 618, in request
req, buffer, header_buffer, q, header_recved, quit_now = self._set_curl_options(
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/curl_cffi/requests/session.py", line 382, in _set_curl_options
raise RequestsError(f"impersonate {impersonate} is not supported")
curl_cffi.requests.errors.RequestsError: impersonate chrome is not supported.

I am running curl_cffi at 0.6.0.

@iSte94
Copy link

iSte94 commented Apr 3, 2024

same problem

@iSte94
Copy link

iSte94 commented Apr 3, 2024

I'm trying to get this to run but I get this error:

File "/opt/homebrew/lib/python3.11/site-packages/suno/suno.py", line 27, in init self._sid = self._get_sid() ^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/suno/suno.py", line 32, in _get_sid response = super().request("GET", url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/suno/suno.py", line 20, in request return self._session.request(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/curl_cffi/requests/session.py", line 618, in request req, buffer, header_buffer, q, header_recved, quit_now = self._set_curl_options( ^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/curl_cffi/requests/session.py", line 382, in _set_curl_options raise RequestsError(f"impersonate {impersonate} is not supported") curl_cffi.requests.errors.RequestsError: impersonate chrome is not supported.

I am running curl_cffi at 0.6.0.

I solved removing " # kwargs["impersonate"] = kwargs.get("impersonate", "chrome")" from suno.py file

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

No branches or pull requests

2 participants