wkaisertexas / tiktok-uploader

Automatically ⬆️ upload TikTok videos
https://pypi.org/project/tiktok-uploader/
360 stars 84 forks source link

Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@type='file']"} #60

Closed alexlaverty closed 11 months ago

alexlaverty commented 12 months ago

Hello,

I am getting the following error :

PS D:\src\python-reddit-youtube-bot> python .\tkupload.py

[20:18:52] Posting D:\src\python-reddit-youtube-bot\videos\16ycbve_Who_abandoned_their_core_audience_and_paid_the_pri\final.mp4
[20:18:52] Navigating to upload page
[20:18:54] Uploading video file
[5044:10220:1003/201854.891:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
[5044:10220:1003/201855.129:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
[5044:10220:1003/201857.258:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
[5044:10220:1003/201857.531:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@type='file']"}
  (Session info: chrome=117.0.5938.132)
Stacktrace:
        GetHandleVerifier [0x0077CEB3+45171]
        (No symbol) [0x00709101]
        (No symbol) [0x005FBE1D]
        (No symbol) [0x0062ED40]
        (No symbol) [0x0062F20B]
        (No symbol) [0x0065F692]
        (No symbol) [0x0064B094]
        (No symbol) [0x0065DCFA]
        (No symbol) [0x0064AE46]
        (No symbol) [0x0062675E]
        (No symbol) [0x006278FD]
        GetHandleVerifier [0x00A354B9+2897529]
        GetHandleVerifier [0x00A7DC6B+3194411]
        GetHandleVerifier [0x00A77A41+3169281]
        GetHandleVerifier [0x00806130+606960]
        (No symbol) [0x00712E7C]
        (No symbol) [0x0070F008]
        (No symbol) [0x0070F12F]
        (No symbol) [0x00701827]
        BaseThreadInitThunk [0x75397BA9+25]
        RtlInitializeExceptionChain [0x772FB79B+107]
        RtlClearBits [0x772FB71F+191]

Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@type='file']"}
  (Session info: chrome=117.0.5938.132)
Stacktrace:
        GetHandleVerifier [0x0077CEB3+45171]
        (No symbol) [0x00709101]
        (No symbol) [0x005FBE1D]
        (No symbol) [0x0062ED40]
        (No symbol) [0x0062F20B]
        (No symbol) [0x0065F692]
        (No symbol) [0x0064B094]
        (No symbol) [0x0065DCFA]
        (No symbol) [0x0064AE46]
        (No symbol) [0x0062675E]
        (No symbol) [0x006278FD]
        GetHandleVerifier [0x00A354B9+2897529]
        GetHandleVerifier [0x00A7DC6B+3194411]
        GetHandleVerifier [0x00A77A41+3169281]
        GetHandleVerifier [0x00806130+606960]
        (No symbol) [0x00712E7C]
        (No symbol) [0x0070F008]
        (No symbol) [0x0070F12F]
        (No symbol) [0x00701827]
        BaseThreadInitThunk [0x75397BA9+25]
        RtlInitializeExceptionChain [0x772FB79B+107]
        RtlClearBits [0x772FB71F+191]

Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@type='file']"}
  (Session info: chrome=117.0.5938.132)
Stacktrace:
        GetHandleVerifier [0x0077CEB3+45171]
        (No symbol) [0x00709101]
        (No symbol) [0x005FBE1D]
        (No symbol) [0x0062ED40]
        (No symbol) [0x0062F20B]
        (No symbol) [0x0065F692]
        (No symbol) [0x0064B094]
        (No symbol) [0x0065DCFA]
        (No symbol) [0x0064AE46]
        (No symbol) [0x0062675E]
        (No symbol) [0x006278FD]
        GetHandleVerifier [0x00A354B9+2897529]
        GetHandleVerifier [0x00A7DC6B+3194411]
        GetHandleVerifier [0x00A77A41+3169281]
        GetHandleVerifier [0x00806130+606960]
        (No symbol) [0x00712E7C]
        (No symbol) [0x0070F008]
        (No symbol) [0x0070F12F]
        (No symbol) [0x00701827]
        BaseThreadInitThunk [0x75397BA9+25]
        RtlInitializeExceptionChain [0x772FB79B+107]
        RtlClearBits [0x772FB71F+191]

[20:19:04] Failed to upload D:\src\python-reddit-youtube-bot\videos\16ycbve_Who_abandoned_their_core_audience_and_paid_the_pri\final.mp4
[20:19:04]
    A video failed to upload

Screenshot of where it got to when it failed : image

Code I used to upload :

from tiktok_uploader.upload import upload_video, upload_videos
from tiktok_uploader.auth import AuthBackend

auth = AuthBackend(cookies='cookies.txt')

# single video
upload_video('D:\\src\\python-reddit-youtube-bot\\videos\\16ycbve_Who_abandoned_their_core_audience_and_paid_the_pri\\final.mp4', 
            description='', 
            cookies='cookies.txt')
andersonfelipev commented 12 months ago

the same problem here.

mainbotpy commented 11 months ago

same

nyalpin commented 11 months ago

same

mjacr commented 11 months ago

same

gabrielmayers commented 11 months ago

Same problem here, any updates? @wkaisertexas

Dr1mS commented 11 months ago

Got the same error but at this step : image

I resolve it by comment these line and adding a simple time.sleep(5) : image

ofc i hope it's a temp solution

wkaisertexas commented 11 months ago

When designing the library, I have tried to avoid explicit waits was people with different internet connection speeds can experience vastly different times required to upload videos.

mjacr commented 11 months ago

To avoid using this sleepers you can setup a proxy and check if the requests still alive, that way you will know exactly when it finishes.

Get Outlook for iOShttps://aka.ms/o0ukef


From: William Kaiser @.> Sent: Tuesday, October 24, 2023 4:57:18 PM To: wkaisertexas/tiktok-uploader @.> Cc: Marcos Rocha @.>; Comment @.> Subject: Re: [wkaisertexas/tiktok-uploader] Message: no such element: Unable to locate element: @.***='file']"} (Issue #60)

Closed #60https://github.com/wkaisertexas/tiktok-uploader/issues/60 as completed.

— Reply to this email directly, view it on GitHubhttps://github.com/wkaisertexas/tiktok-uploader/issues/60#event-10758724908, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA72FX5RDWRZ5VQECF2V5Y3YBAMR5AVCNFSM6AAAAAA5QVTSQWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQG42TQNZSGQ4TAOA. You are receiving this because you commented.Message ID: @.***>