Closed carloangeletti closed 10 months ago
You did not include the full error with attack trace...
Hi @HDVinnie, i have only this in error in laravel log:
cURL error 60: SSL: no alternative certificate subject name matches target host name 'api.themoviedb.org' (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.themoviedb.org/3/movie/884452?api_key=REDACTED&language=it_IT&append_to_response=videos%2Cimages%2Ccredits%2Cexternal_ids%2Ckeywords%2Crecommendations%2Calternative_titles
I noticed that initially it works correctly, after a few minutes it starts to give error 500 when you open the torrent details
the only error in the log is the one written above
1) This just looks like TMDB had a SSL beret issue which is now resolved. Im not able to replicate this. 2) You have leaked your TMDB API KEY twice in this issue. Please change it.
Hi, yes changing it is not a problem. Can I try to update again, if I encounter the error again could you help me?
I just updated and I get the same error again
if you want I can give you access to the tracker admin to control what happens I'll write to you privately on discord
cURL error 60: SSL: no alternative certificate subject name matches target host name 'api.themoviedb.org' (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.themoviedb.org/3/movie/585083?api_key=XXXXXXXXXXXXXX&language=it&append_to_response=videos%2Cimages%2Ccredits%2Cexternal_ids%2Ckeywords%2Crecommendations%2Calternative_titles
GuzzleHttp\Exception\RequestException
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
The stack trace indicates where the error happens, not just what it is. Only sending the error itself is not helpful. Please send the full stack trace (with redacted credentials).
Hi @Roardom thanks for the fetch meta, I understand what you are saying but in the logs there is only this one that I sent. There is nothing more.
In the meantime, I restored a dump of version 7.1.2 because users were no longer receiving downloads and every torrent details have error 500.
I also asked HDVinnie directly for a quote to optimize these things (I have another error due to the fact that it doesn't get the meta from TMDB correctly and every time we have to clear the cache and edit the torrents).
If someone is willing to give us support we will be happy.
I'm glad your database restore when smoothly. I'm sure HDVinnie will be able to help you out with that. But just to be sure since none of your other previous bug reports have stack traces, you are aware that you have to click the error in Staff Dashboard / Laravel Logs, and it will expand showing more detailed information including the full stacktrace, correct?
Yes I know, thanks. He will make some more attempts these days to recover the complete error.
Thanks in the meantime for the support.
Hi, I'll come back to you, hopefully, with all the information necessary to understand the bug.
cURL error 60: SSL: no alternative certificate subject name matches target host name 'api.themoviedb.org' (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.themoviedb.org/3/movie/11329?api_key=XXXX&language=it&append_to_response=videos%2Cimages%2Ccredits%2Cexternal_ids%2Ckeywords%2Crecommendations%2Calternative_titles
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
`cURL error 60: SSL: no alternative certificate subject name matches target host name 'api.themoviedb.org' (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.themoviedb.org/3/movie/9687?api_key=XXXX&language=it&append_to_response=videos%2Cimages%2Ccredits%2Cexternal_ids%2Ckeywords%2Crecommendations%2Calternative_titles {"userId":3,"exception":"[object] (GuzzleHttp\Exception\RequestException(code: 0): cURL error 60: SSL: no alternative certificate subject name matches target host name 'api.themoviedb.org' (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.themoviedb.org/3/movie/9687?api_key=XXXX&language=it&append_to_response=videos%2Cimages%2Ccredits%2Cexternal_ids%2Ckeywords%2Crecommendations%2Calternative_titles at /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:211) [stacktrace]
"} `
Hi @Roardom and @HDVinnie . Have you had the opportunity to analyze the error? Thanks in advance.
I randomly triggered it the other day and haven't managed to trigger it since. The only thing I can think of is that tmdb is blocked in some countries (such as Russia) and could be causing the error. I haven't been able to reproduce it since.
Hi @Roardom thanks for the reply.
The server is in Europe, in Amsterdam. I don't think it depends on that otherwise I would have had the problem even with the foreseen versions.
What if you try to force the curl call by not validating the ssl certificate? I know it's not safe to do this but it might be an idea.
This issue is most likely beyond unit3d. Upon a quick google I found https://www.themoviedb.org/talk/6531b98e9ac535087755c46a which mentions that the user fixed it by using a different DNS provider. Have you tried curl'ing tmdb directly to see if you can connect? I haven't been able to replicate the issue since that one struck of luck so I'm unable to find a solution as of right now.
Hi @Roardom , you're right. Thank you for your suggestion. I changed the DNS configuration to Google ones and now everything seems to work correctly.
I'll update you in the next few days if everything is actually ok.
UNIT3D Version
7.2.0
PHP & Platform
8.3.1 - ubuntu 22.04
Laravel verion
10.37.3
Have you done this?
Expectation
After upgrade to 7.2.0 and open Torrent details, receive "error 500"
Description
This in laravel log
cURL error 60: SSL: no alternative certificate subject name matches target host name 'api.themoviedb.org' (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.themoviedb.org/3/movie/884452?api_key= REDACTED&language=it_IT&append_to_response=videos%2Cimages%2Ccredits%2Cexternal_ids%2Ckeywords%2Crecommendations%2Calternative_titles
Stack trace & logs
No response
Are you a UNIT3D sponsor?
No, don't give priority to this
Upvote & Fund