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

Haupteingang

360 readers
16 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 weeks 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
[–] d_k_bo 7 points 1 week ago (1 children)

Lass das www weg, Problem gelöst :D

[–] mettwurstkaninchen 3 points 1 week ago

In der Tat - das hat problemlos funktioniert. Vielen dank dir und @bjoern_tantau@swg-empire.de , ihr habt /c/die_reklame auf den Weg gebracht :)