-
Notifications
You must be signed in to change notification settings - Fork 52
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
commentThreads
with specific id
returns HTTP error 500
#303
Comments
The video you mentioned is private, hence a clean error message would be nice but there is no data to retrieve. |
It seems that the following comments should be in #301. https://discord.com/channels/933841502155706418/933841503103627316/1284625717359022162 curl https://yt.lemnoslife.com curl -k https://localhost curl http://localhost stall from the official instance. On my laptop: curl https://yt.lemnoslife.com
htop
sudo service apache2 restart seems to help but only temporarily. The issue does not happen when |
sudo service apache2 status | cat Output:
Note:
it directly follows |
Using FileZilla: diff -qr apache2-{official,private}-instance Output:
Both instances are up-to-date. |
Probably related to #165. |
find /etc/apache2/ -name 'mpm_prefork' Source: the Stack Overflow answer 46173001 does not return anything. find /etc/apache2/ -name 'mpm_prefork*'
Source: the Stack Overflow answer 37057176 ls -lh /etc/apache2/mods-enabled/mpm_prefork.{load,conf}
Private instance is set by default to:
Let us try:
Source: the Stack Overflow answer 46173001 sudo service apache2 restart sudo service apache2 status
Adding:
as mentioned in the Stack Overflow answer removes the warning. |
Maybe YouTube Data API v3 servers involve this latency. From the official instance: time curl -s 'https://www.googleapis.com/youtube/v3/videos?part=snippet&id=_ZPpU7774DQ&key=AIzaSyDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
with correct output. So YouTube servers do not seem to blame. |
The Server Fault question 383526 may help. find /etc/apache2/ -name *mpm*
|
a2dismod mpm_prefork
a2enmod mpm_worker
a2dismod php8.3
sudo a2dismod php8.3
a2enmod mpm_worker
a2dismod mpm_prefork
sudo service apache2 stop a2dismod mpm_prefork
sudo service apache2 start PHP files are returned as is. a2enmod php8.3
a2enmod mpm_prefork
|
apachectl -V | grep -i mpm
Source: the Ask Ubuntu answer 525035 No DuckDuckGo or Google result for |
The Stack Overflow answer 67538339: sudo a2dismod php8.3 mpm_prefork
does not help. |
DuckDuckGo and Google results for install apache2 mpm worker are not clear too. |
On Debian 12 temporary official instance: sudo apachectl -V | grep -i mpm
|
do-release-upgrade
|
sudo apt purge -y apache2 Output:
sudo apt autoremove -y Output:
sudo apt install -y apache2 Output:
|
The Ask Ubuntu answer 590912 may help. curl http://localhost
ls /etc/apache2/sites-{available,enabled}/
|
sudo a2ensite 000-default-le-ssl
sudo service apache2 restart
|
service apache2 status | cat Output:
Searching DuckDuckGo and Google for The Stack Overflow answer 62041173. ls /etc/apache2/mods-enabled/*mpm*
|
sudo a2dismod mpm_event
ls /etc/apache2/mods-enabled/*mpm*
sudo a2enmod mpm_worker
ls /etc/apache2/mods-enabled/*mpm*
sudo service apache2 restart
service apache2 status | cat
|
sudo apt install -y php-fpm Output:
sudo service apache2 restart
service apache2 status | cat
So it does not help. |
Maybe could give a try to NGINX, but I do not remember if it is supposed to work well with the no-key service, as have to pay attention to Well it seems to support no-key service, see wiki/Home/1c7139f68af217d41d0a201a97eaecf87c139a8b. I am just afraid for other websites that I have on this VPS. |
cd /etc/apache2; . envvar; apache2 -D DUMP_MODULES -t
The Ask Ubuntu comment 1366318 does not help. Following comment does not seem to help: sudo apt purge php8filter
a2enmod -l
|
Maybe reading |
sudo a2dismod mpm_worker
sudo service apache2 restart
service apache2 status | cat
|
sudo a2enmod mpm_prefork
sudo service apache2 restart does not return anything. |
As PHP is not interpreted: a2enmod php
a2enmod php8.3
No matter |
On a private instance: sudo a2dismod php8.3
diff -qr /etc/apache2{,_15_09_24}/
PHP is still interpreted. sudo service apache2 restart PHP is no more interpreted. diff -qr /etc/apache2{,_15_09_24}/
sudo a2enmod php8.3
diff -qr /etc/apache2{,_15_09_24}/ does not return anything. sudo service apache2 restart brings back PHP interpretation.
|
On the official instance: ls /etc/apache2/mods-enabled/php8.3.{conf,load}
Restoring Also proceeded again to YouTube-operational-API/README.md Line 17 in 8d4747e
sudo service apache2 status
wc -l /var/www/yt/ytPrivate/keys.txt
head /var/www/yt/ytPrivate/keys.txt
curl -s 'https://www.googleapis.com/youtube/v3/videos?part=snippet&id=_ZPpU7774DQ&key=AIzaSyDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' {
"error": {
"code": 403,
"message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e.",
"errors": [
{
"message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e.",
"domain": "youtube.quota",
"reason": "quotaExceeded"
}
]
}
} so let us order keys before restarting apache2. Would be nice to actually be the only one to run If I remember correctly I already worked towards this goal. |
Maybe the lock on the After using #18 (comment) on: ~/Desktop/bens_folder/dev/yt/youtube_data_api_v3_* | sort | uniq on my Linux Mint 22 Cinnamon Framework 13, sudo service apache2 start makes the no-key service works fine. |
Should try on Debian 12 it may help. Unclear how to proceed as it already use the whole disk. |
Maybe removing unit tests or similar possibly requiring a disk access would help. However, this is only about web-scraping endpoints. |
@MauroCSHPYP you have commented an inappropriate issue, I opened this one with your previous message that I removed:
As a follow-up of this Stack Overflow question, it seems like error 500 is also returned in this endpoint - commentThreads:
Example:
https://yt.lemnoslife.com/commentThreads?part=snippet,replies&id=UgwJSPbq_dQWcHA2cmB4AaABAg.9eJBArFtonn9eN4Aj6bGRG&videoId=8aoxPTJyW0Q
But, with other commentThreads, the endpoints returns 200 - OK:
Working:
https://yt.lemnoslife.com/commentThreads?part=snippet,replies&id=UgzEfRi4gKKHQiHPvex4AaABAg&videoId=ml7GWjIhYsw
Looking at the "Network" tab on the DevTools of the browser, the error 500 is due to
internal server error
- this could be an unhandled error (exception) or a timeout?The text was updated successfully, but these errors were encountered: