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

[BUG] - playwright._impl._errors.TimeoutError: Timeout 30000ms exceeded. #1185

Open
wu5bocheng opened this issue Aug 14, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@wu5bocheng
Copy link
Contributor

Describe the bug
Sometimes cannot fetch user info with

  user = self.api.user(username=username)
  await user.info()

Error Trace (if any)

Put the error trace below if there's any error thrown.

  File "/code/app/platforms/tiktok/TikTokFetcher.py", line 69, in author_by_username_v2
    await user.info()
  File "/usr/local/lib/python3.10/site-packages/TikTokApi/api/user.py", line 76, in info
    resp = await self.parent.make_request(
  File "/usr/local/lib/python3.10/site-packages/TikTokApi/tiktok.py", line 438, in make_request
    signed_url = await self.sign_url(encoded_params, session_index=i)
  File "/usr/local/lib/python3.10/site-packages/TikTokApi/tiktok.py", line 375, in sign_url
    x_bogus = (await self.generate_x_bogus(url, session_index=i)).get("X-Bogus")
  File "/usr/local/lib/python3.10/site-packages/TikTokApi/tiktok.py", line 362, in generate_x_bogus
    await session.page.wait_for_function("window.byted_acrawler !== undefined")
  File "/usr/local/lib/python3.10/site-packages/playwright/async_api/_generated.py", line 11022, in wait_for_function
    await self._impl_obj.wait_for_function(
  File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_page.py", line 1008, in wait_for_function
    return await self._main_frame.wait_for_function(**locals_to_params(locals()))
  File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_frame.py", line 773, in wait_for_function
    return from_channel(await self._channel.send("waitForFunction", params))
  File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 59, in send
    return await self._connection.wrap_api_call(
  File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 509, in wrap_api_call
    return await cb()
  File "/usr/local/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 97, in inner_send
    result = next(iter(done)).result()
playwright._impl._errors.TimeoutError: Timeout 30000ms exceeded.

Desktop (please complete the following information):

  • OS: Windows 11
  • TikTokApi Version 6.4.0
@wu5bocheng wu5bocheng added the bug Something isn't working label Aug 14, 2024
@GhyathSAhmed
Copy link

same issue

@witherBattler
Copy link

Same issue, + it happens with the quickstart code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants