this post was submitted on 04 Jul 2024
9 points (100.0% liked)

Haupteingang

464 readers
1 users here now

Die Standard-Community von feddit.org

In dieser Community geht es ausschließlich um alles rund um die Instanz!

Regeln:

founded 3 months ago
MODERATORS
 

Wenn ich die API per Python und Pythorhead nutzen will, dann bekomme ich diesen wunderbaren Fehler:

Problem encountered retrieving Lemmy nodeinfo: HTTPSConnectionPool(host='www.feddit.org', port=443): Max retries exceeded with url: /nodeinfo/2.0.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1007)'))) Error encountered while Request.POST on endpoint /user/login: HTTPSConnectionPool(host='www.feddit.org', port=443): Max retries exceeded with url: /api/v3/user/login (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1007)'))) Error encountered while Request.GET on endpoint /community: HTTPSConnectionPool(host='www.feddit.org', port=443): Max retries exceeded with url: /api/v3/community?name=.... (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (ssl.c:1007)'))) Error encountered while Request.GET on endpoint /search: HTTPSConnectionPool(host='www.feddit.org', port=443): Max retries exceeded with url: /api/v3/search?q=die_reklame&type=Communities (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1007)')))

Der Gag: Das Skript funktioniert problemlos mit anderen Instanzen und nutzt keine fancy Features von pythorhead. Der Fehler dürfte auch wenig mit zu vielen Versuchen zu tun haben - denn der kam auch direkt beim ersten Mal ohne dass vorher irgendwas über den Account und die API lief.

Hat jemand anderes ähnliche Probleme oder kann mir hier weiterhelfen?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 3 months ago

Ist ein Zertifikatsfehler. Liegt vielleicht am www. Hast du mal nur feddit.org probiert?