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] - Error navigating to "https://www.tiktok.com/", waiting until "load" #1205

Open
vdivljak opened this issue Nov 16, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@vdivljak
Copy link

vdivljak commented Nov 16, 2024

Hi,

I get this error while running the example provided (user_example.py) with or without providing ms_token:

Traceback (most recent call last):
  File "C:\Users\vd\tik\user_example.py", line 26, in <module>
    asyncio.run(user_example())
  File "C:\Python312\Lib\asyncio\runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "C:\Users\vd\tik\user_example.py", line 12, in user_example
    await api.create_sessions(ms_tokens=[ms_token], num_sessions=1, sleep_after=3)
  File "C:\Users\vd\tik\venv\Lib\site-packages\TikTokApi\tiktok.py", line 275, in create_sessions
    await asyncio.gather(
  File "C:\Users\vd\tik\venv\Lib\site-packages\TikTokApi\tiktok.py", line 192, in __create_session
    await page.goto(url)
  File "C:\Users\vd\tik\venv\Lib\site-packages\playwright\async_api\_generated.py", line 8969, in goto
    await self._impl_obj.goto(
  File "C:\Users\vd\tik\venv\Lib\site-packages\playwright\_impl\_page.py", line 553, in goto
    return await self._main_frame.goto(**locals_to_params(locals()))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\vd\tik\venv\Lib\site-packages\playwright\_impl\_frame.py", line 145, in goto
    await self._channel.send("goto", locals_to_params(locals()))
  File "C:\Users\vd\tik\venv\Lib\site-packages\playwright\_impl\_connection.py", line 59, in send
    return await self._connection.wrap_api_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\vd\tik\venv\Lib\site-packages\playwright\_impl\_connection.py", line 520, in wrap_api_call
    raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.Error: Page.goto: net::ERR_ADDRESS_INVALID at https://www.tiktok.com/
Call log:
navigating to "https://www.tiktok.com/", waiting until "load"

Disabling timeout in page.goto() didn't help.

Using latest Tiktokapi 6.5.2 with Python 3.12 on Windows 11

@vdivljak vdivljak added the bug Something isn't working label Nov 16, 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
Projects
None yet
Development

No branches or pull requests

1 participant