Kellphy / Nodepay

Unofficial Nodepay Docker image for easy deployment and management.
https://hub.docker.com/r/kellphy/nodepay
GNU General Public License v3.0
4 stars 2 forks source link

Nodepay extension was updated to v2.2.7. Connection drops after 10 mins #14

Closed vstrong-info closed 1 month ago

vstrong-info commented 1 month ago

Following Nodepay Chrome extension update to v2.2.7, see the link below, connection drops after 10 mins. https://discord.com/channels/1216591320353603616/1230071904216551525/1273103120163012690

2024-08-14 08:44:02,570 - INFO - Starting the script 1.0.7...
2024-08-14 08:44:02,580 - INFO - Using ChromeDriver 126.0.6478.126 (d36ace6122e0a59570e258d82441395206d60e1c-refs/branch-heads/6478@{#1591})
2024-08-14 08:44:04,210 - INFO - Navigating to https://app.nodepay.ai/ website...
2024-08-14 08:44:06,676 - INFO - Added np_webapp_token with value eyJhbGci... to local storage.
2024-08-14 08:44:06,710 - INFO - Added np_token with value eyJhbGci... to local storage.
2024-08-14 08:44:06,710 - INFO - Reminder: Token lifetime is 7 days!
2024-08-14 08:44:16,730 - INFO - Refreshing page to check login information...
2024-08-14 08:44:22,195 - INFO - Logged in successfully!
2024-08-14 08:44:22,195 - INFO - Accessing extension settings page...
2024-08-14 08:44:32,515 - INFO - Extension is activated!
2024-08-14 08:44:32,688 - INFO - Status: Connected!
2024-08-14 08:54:53,363 - WARNING - Status: Unknown!
Kellphy commented 1 month ago

Hi, agreed, updated, looks stable for the past hour. Let me know how it goes.

I would love to switch from Selenium to another, friendlier and more lightweight, but I really don't have the time, and this Nodepay project might not yield results for years, so there's that. I'll try to keep it working though :)

vstrong-info commented 1 month ago

Thank you. v1.0.8 works well.

It would be great as, no doubt, there will be tons of projects of the same nature! It may be worth spending time on development.

BTW, can you add multiple "Chrome Extensions" to the same docker. Ie have ONE container for several projects as they really are only a chrome extension... I guess you are running a cut down version of chrome browser, similar to Chromium...

I am sceptical about Nodepay as well and recent announcement does not give me any confident... 10 devices per account limit - it is a joke!

Kellphy commented 1 month ago

Let me see at least 1 of these projects take off, and for sure I will spend more time on an upgraded version :))

You can add multiple extensions, yes, separating each login on its separate function/module, yes, BUT that makes it so any update on any extension from the container will trigger a restart for all of them.

I know that it is resource consuming to have a chromium for each extension, but they're highly unstable from what I've seen, since they're actively trying to shut down automations such as these.

I currently run one for GetGrass and another for Nodepay, the others that I use do not have chrome extensions / have dedicated Docker containers.

vstrong-info commented 1 month ago

I doubt it will be viable to develop and support these products in a longer run...

Could you send me the link to your GetGrass container please as I cannot see it in your public repositories? Thank you.

Kellphy commented 1 month ago

I am using MrColorr's https://github.com/MRColorR/get-grass

prognt commented 1 month ago
Nodepay: 2024-08-14 17:43:38,109 - INFO - Started the script 1.0.8
Nodepay: 2024-08-14 17:43:38,115 - INFO - Using ChromeDriver 127.0.6533.99 (f31af5097d90ef5ae5bd7b8700199bc6189ba34d-refs/branch-heads/6533@{#1910})
Nodepay: 2024-08-14 17:53:39,177 - ERROR - An error occurred: Message: timeout: Timed out receiving message from renderer: 600.000
Nodepay:   (Session info: chrome=127.0.6533.99)
Nodepay: Stacktrace:
Nodepay: #0 0x557079bef80e <unknown>

in docker on vps with 2 cpu, 4G mem, 1.0.7 worked fine on server with 64G mem 1.0.8 works fine

Kellphy commented 1 month ago

Ah, ok, so it is the ChromeDriver 127 that is bad ... I will look at a way to skip the 127.0.6533.99 version since it does not launch in headless mode, god knows why, it's on them, I can replicate this, so I'll try to work around it

Kellphy commented 1 month ago

Downgraded the OS to Debian 11, at least until Selenium (I guess) fixes their issue with Chrome Driver 127 Version 1.0.9

prognt commented 1 month ago
2024-08-15 12:05:24,172 - INFO - Started the script 1.0.9
2024-08-15T07:05:24.182653153Z 2024-08-15 12:05:24,182 - INFO - OS Info: {'System': 'Debian GNU/Linux 11 (bullseye)', 'Version': '11.10 (bullseye)'}
2024-08-15T07:05:24.227557747Z 2024-08-15 12:05:24,227 - INFO - Using ChromeDriver 120.0.6099.224 (3587067cafd6f5b1e567380acb485d96e623ef39-refs/branch-heads/6099@{#1761})
2024-08-15T07:05:28.037813876Z 2024-08-15 12:05:28,031 - INFO - Navigating to https://app.nodepay.ai/ website...
2024-08-15T07:05:39.046340833Z 2024-08-15 12:05:39,043 - INFO - Added np_webapp_token with value eyJhbGci...uGNp8uKg to local storage.
2024-08-15T07:05:39.075599567Z 2024-08-15 12:05:39,074 - INFO - Added np_token with value eyJhbGci...uGNp8uKg to local storage.
2024-08-15T07:05:39.076266760Z 2024-08-15 12:05:39,076 - INFO - !!!!! Your token can be used to login for 7 days !!!!!
2024-08-15T07:05:49.579547169Z 2024-08-15 12:05:49,578 - INFO - Refreshing in 60 seconds to check login (If stuck, verify your token)...
2024-08-15T07:06:01.459728177Z 2024-08-15 12:06:01,455 - INFO - Refreshing in 60 seconds to check login (If stuck, verify your token)...
2024-08-15T07:06:12.787943860Z 2024-08-15 12:06:12,786 - INFO - Refreshing in 60 seconds to check login (If stuck, verify your token)...
2024-08-15T07:06:19.291267812Z 2024-08-15 12:06:19,290 - INFO - Logged in successfully!
2024-08-15T07:06:34.297531801Z 2024-08-15 12:06:34,295 - INFO - Accessing extension settings page...
2024-08-15T07:06:52.481173568Z 2024-08-15 12:06:52,478 - INFO - Extension is activated!
2024-08-15T07:06:53.046401286Z 2024-08-15 12:06:53,045 - INFO - Status: Connected!

Good, Thank you.