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

darkai.foundation SSL handshake failure #2678

Open
akhinaten opened this issue Feb 3, 2025 · 2 comments
Open

darkai.foundation SSL handshake failure #2678

akhinaten opened this issue Feb 3, 2025 · 2 comments
Assignees
Labels
bug Something isn't working stale

Comments

@akhinaten
Copy link

I am using this to generate a script but it is showing error
Traceback (most recent call last):
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1081, in create_connection
transport, protocol = await self._create_connection_transport(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1111, in _create_connection_transport
await waiter
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/sslproto.py", line 528, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/sslproto.py", line 188, in feed_ssldata
self._sslobj.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 944, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1122)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/ritikdiwedi/MoneyPrinterV2/src/main.py", line 212, in
main()
File "/Users/ritikdiwedi/MoneyPrinterV2/src/main.py", line 42, in main
start_youtube_short_automater()
File "/Users/ritikdiwedi/MoneyPrinterV2/src/main.py", line 63, in start_youtube_short_automater
display_account_selection_menu(cached_accounts)
File "/Users/ritikdiwedi/MoneyPrinterV2/src/main.py", line 115, in display_account_selection_menu
interact_with_youtube_account(selected_account)
File "/Users/ritikdiwedi/MoneyPrinterV2/src/main.py", line 140, in interact_with_youtube_account
youtube.generate_video(tts)
File "/Users/ritikdiwedi/MoneyPrinterV2/src/classes/YouTube.py", line 551, in generate_video
self.generate_prompts()
File "/Users/ritikdiwedi/MoneyPrinterV2/src/classes/YouTube.py", line 258, in generate_prompts
completion = str(self.generate_response(prompt, model=parse_model(get_image_prompt_llm())))
File "/Users/ritikdiwedi/MoneyPrinterV2/src/classes/YouTube.py", line 126, in generate_response
return g4f.ChatCompletion.create(
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/g4f/init.py", line 53, in create
return result if stream else concat_chunks(result)
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/g4f/providers/helper.py", line 99, in concat_chunks
return "".join([
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/g4f/providers/helper.py", line 99, in
return "".join([
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/g4f/providers/asyncio.py", line 45, in to_sync_generator
yield from asyncio.run(async_generator_to_list(generator))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/g4f/providers/asyncio.py", line 41, in async_generator_to_list
return [item async for item in generator]
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/g4f/providers/asyncio.py", line 41, in
return [item async for item in generator]
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/g4f/Provider/DarkAI.py", line 51, in create_async_generator
async with session.post(cls.api_endpoint, json=data, proxy=proxy) as response:
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/aiohttp/client.py", line 1167, in aenter
self._resp = await self._coro
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/aiohttp/client.py", line 562, in _request
conn = await self._connector.connect(
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 540, in connect
proto = await self._create_connection(req, traces, timeout)
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 901, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1209, in _create_direct_connection
raise last_exc
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1178, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/Users/ritikdiwedi/MoneyPrinterV2/venv/lib/python3.9/site-packages/aiohttp/connector.py", line 984, in _wrap_create_connection
raise ClientConnectorSSLError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host darkai.foundation:443 ssl:default [[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1122)]

@akhinaten akhinaten added the bug Something isn't working label Feb 3, 2025
@akhinaten akhinaten changed the title dark.foundation SSL handshake failure darkai.foundation SSL handshake failure Feb 3, 2025
@Gandi61
Copy link

Gandi61 commented Feb 3, 2025

I have the same problem, even when I just try to access the provider's website, nothing works - https://darkai.foundation/

When requesting via curl -v, it outputs the following:

Connected to darkai.foundation (216.24.57.1) port 443 (#0)
ALPN, offering h2
ALPN, offering http/1.1
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs

TLSv1.0 (OUT), TLS header, Certificate Status (22):
TLSv1.3 (OUT), TLS handshake, Client hello (1):
TLSv1.0 (IN), TLS header, Unknown (21):
TLSv1.3 (IN), TLS alert, handshake failure (552):

error:0A000410:SSL routines::sslv3 alert handshake failure

Closing connection 0
curl: (35) error:0A000410:SSL routines::sslv3 alert handshake failure

It seems like this provider can be removed from code as well, just like BlackBox.

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 Feb 11, 2025
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

3 participants