Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

HTTP 401 on /register

Offen
#1,555 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
docker, gcp, javascript, nodejs

Rechercherichtung

Beginne mit der /register-Anfrage und dem Authentifizierungsprotokoll, das „Not allowed to access top-level APIs on accounts“ anzeigt, und prüfe dann, wie die Docker-Bereitstellung und die benutzerdefinierte Domain auf GCP konfiguriert sind. Die Aufgabe ist erledigt, wenn identifiziert wurde, warum /register 401 zurückgibt, und bestätigt wurde, dass der Registrierungsendpunkt für das gemeldete Setup korrekt funktioniert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Hi,

I'm currently trying to setup a solid server instance on GCP. The installation went smooth and the solid installation was successful. However, when I try to access the endpoint /register I get a 401. I've enabled multiuser support and I'm using docker.

The output when starting the service:
Output 1
server_1       | 2021-01-18T09:32:43.610Z solid:settings Strict origins: true
server_1       | 2021-01-18T09:32:43.610Z solid:settings Allowed origins: 
server_1       | 2021-01-18T09:32:43.611Z solid:settings Db path: ./.db
server_1       | 2021-01-18T09:32:43.611Z solid:settings Config path: ./config
server_1       | 2021-01-18T09:32:43.612Z solid:settings Suffix Acl: undefined
server_1       | 2021-01-18T09:32:43.612Z solid:settings Suffix Meta: undefined
letsencrypt    | 2021/01/18 09:32:43 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
server_1       | 2021-01-18T09:32:43.613Z solid:settings Allow WebID authentication: true
server_1       | 2021-01-18T09:32:43.615Z solid:settings Live-updates: true
server_1       | 2021-01-18T09:32:43.615Z solid:settings Multi-user: true
server_1       | 2021-01-18T09:32:43.616Z solid:settings Suppress default data browser app: undefined
server_1       | 2021-01-18T09:32:43.616Z solid:settings Default data browser app file path: default
letsencrypt    | 2021/01/18 09:32:43 [notice] 63#63: signal process started
server_1       | 2021-01-18T09:32:43.636Z solid:settings CORS proxy listening at /xss?uri={uri}
server_1       | 2021-01-18T09:32:43.651Z solid:settings Base URL (--mount): /
server_1       | 2021-01-18T09:32:43.652Z solid:settings SSL Private Key path: /opt/solid/certs/solid-tmdei-isep.live/key.pem
server_1       | 2021-01-18T09:32:43.652Z solid:settings SSL Certificate path: /opt/solid/certs/solid-tmdei-isep.live/fullchain.pem
server_1       | Solid server (5.5.6) running on https://localhost:8443/
server_1       | Press <ctrl>+c to stop
server_1       | 2021-01-18T09:32:43.688Z solid:authentication Provider keys loaded from config
server_1       | 2021-01-18T09:32:43.727Z solid:authentication Provider keychain initialized
server_1       | 2021-01-18T09:32:43.733Z solid:authentication Not sleeping before client registration...
server_1       | 2021-01-18T09:32:43.750Z solid:authentication Client fetched for issuer https://solid-tmdei-isep.live/
server_1       | 2021-01-18T09:32:43.752Z solid:authentication Local RP client initialized
Partial output when requesting /register
Output 2
server_1       | 2021-01-18T09:35:55.353Z solid:get / on solid-tmdei-isep.live
server_1       | 2021-01-18T09:35:55.356Z solid:handlers GET -- Reading /opt/solid/data/solid-tmdei-isep.live/index.html
nginx          | nginx.1    | solid-tmdei-isep.live 149.90.179.207 - - [18/Jan/2021:09:35:55 +0000] "GET / HTTP/2.0" 200 1475 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
nginx          | nginx.1    | solid-tmdei-isep.live 149.90.179.207 - - [18/Jan/2021:09:35:55 +0000] "GET /common/css/bootstrap.min.css HTTP/2.0" 304 0 "https://solid-tmdei-isep.live/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
nginx          | nginx.1    | solid-tmdei-isep.live 149.90.179.207 - - [18/Jan/2021:09:35:55 +0000] "GET /common/css/solid.css HTTP/2.0" 304 0 "https://solid-tmdei-isep.live/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
nginx          | nginx.1    | solid-tmdei-isep.live 149.90.179.207 - - [18/Jan/2021:09:35:55 +0000] "GET /common/js/auth-buttons.js HTTP/2.0" 304 0 "https://solid-tmdei-isep.live/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
nginx          | nginx.1    | solid-tmdei-isep.live 149.90.179.207 - - [18/Jan/2021:09:35:55 +0000] "GET /common/js/solid-auth-client.bundle.js HTTP/2.0" 304 0 "https://solid-tmdei-isep.live/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
server_1       | 2021-01-18T09:35:59.458Z solid:server Error page because of: { [HTTPError: Not allowed to access top-level APIs on accounts]
server_1       |   name: 'HTTPError',
server_1       |   message: 'Not allowed to access top-level APIs on accounts',
server_1       |   status: 401 }
server_1       | 2021-01-18T09:35:59.462Z solid:server Display login-required for https://solid-tmdei-isep.live/register
nginx          | nginx.1    | solid-tmdei-isep.live 149.90.179.207 - - [18/Jan/2021:09:35:59 +0000] "GET /register HTTP/2.0" 401 1034 "https://solid-tmdei-isep.live/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
nginx          | nginx.1    | solid-tmdei-isep.live 149.90.179.207 - - [18/Jan/2021:09:35:59 +0000] "GET /common/css/solid.css HTTP/2.0" 304 0 "https://solid-tmdei-isep.live/register" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
nginx          | nginx.1    | solid-tmdei-isep.live 149.90.179.207 - - [18/Jan/2021:09:35:59 +0000] "GET /common/css/bootstrap.min.css HTTP/2.0" 304 0 "https://solid-tmdei-isep.live/register" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
nginx          | nginx.1    | solid-tmdei-isep.live 149.90.179.207 - - [18/Jan/2021:09:35:59 +0000] "GET /common/js/auth-buttons.js HTTP/2.0" 304 0 "https://solid-tmdei-isep.live/register" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
nginx          | nginx.1    | solid-tmdei-isep.live 149.90.179.207 - - [18/Jan/2021:09:35:59 +0000] "GET /common/js/solid-auth-client.bundle.js HTTP/2.0" 304 0 "https://solid-tmdei-isep.live/register" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
server_1       | 2021-01-18T09:36:05.261Z solid:cache Expunging from cache https://solid-tmdei-isep.live/.acl
server_1       | 2021-01-18T09:36:05.261Z solid:cache Cache is empty again

The service is hosted under a custom domain. Maybe this has something to do with it?

I'm fairly new to the solid concept so if this is something obvious to fix please be kind 🙏

Thank you.

Vorherrschende Sprache
JavaScript
Sterne
1.8k
Forks
308
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus nodeSolidServer/node-solid-server

Alle Issues in nodeSolidServer/node-solid-server

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.