https://github.com/altryne/chatGPT-telegram-bot/issues/48 #60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
tôi đã cài đặt các gói môi trường nhưng khi tôi chạy thì nhận được lỗi này
Please log in to OpenAI Chat
Press enter when you're done
Traceback (most recent call last):
File "/home/ai_car/chatbot/chatGPT-telegram-bot-altryne/server.py", line 307, in
start_browser()
File "/home/ai_car/chatbot/chatGPT-telegram-bot-altryne/server.py", line 272, in start_browser
PAGE.locator("button", has_text="Log in").click(timeout = 20000)
File "/home/ai_car/anaconda3/envs/chat/lib/python3.10/site-packages/playwright/sync_api/_generated.py", line 13670, in click
self._sync(
File "/home/ai_car/anaconda3/envs/chat/lib/python3.10/site-packages/playwright/_impl/_sync_base.py", line 104, in _sync
return task.result()
File "/home/ai_car/anaconda3/envs/chat/lib/python3.10/asyncio/futures.py", line 201, in result
raise self._exception.with_traceback(self._exception_tb)
File "/home/ai_car/anaconda3/envs/chat/lib/python3.10/asyncio/tasks.py", line 232, in __step
result = coro.send(None)
File "/home/ai_car/anaconda3/envs/chat/lib/python3.10/site-packages/playwright/_impl/_locator.py", line 146, in click
return await self._frame.click(self._selector, strict=True, **params)
File "/home/ai_car/anaconda3/envs/chat/lib/python3.10/site-packages/playwright/_impl/_frame.py", line 489, in click
await self._channel.send("click", locals_to_params(locals()))
File "/home/ai_car/anaconda3/envs/chat/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 44, in send
return await self._connection.wrap_api_call(
File "/home/ai_car/anaconda3/envs/chat/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 419, in wrap_api_call
return await cb()
File "/home/ai_car/anaconda3/envs/chat/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 79, in inner_send
result = next(iter(done)).result()
File "/home/ai_car/anaconda3/envs/chat/lib/python3.10/asyncio/futures.py", line 201, in result
raise self._exception.with_traceback(self._exception_tb)
playwright._impl._api_types.TimeoutError: Timeout 20000ms exceeded.
=========================== logs ===========================
waiting for locator("button").filter(has_text="Log in")