Jigsaw-Code / outline-server

Outline Server, developed by Jigsaw. The Outline Server is a proxy server that runs a Shadowsocks instance and provides a REST API for access key management.
https://getoutline.org/
Apache License 2.0
5.85k stars 787 forks source link

An error occurs when creating an API request #1521

Open CookieSSH opened 8 months ago

CookieSSH commented 8 months ago

Hello! I create a chatbot for the messenger, I want a person to be able to get a VPN access key right in the bot. This is the first time I'm setting up an API and I don't know well about it. Therefore, I decided to start with a simple one and made a request for general information about my server. I did it through the URL request on the service where I create a chatbot. You can see what my request looks like in the screenshot (https://myserver/SecretPath/server).

As a result, I had this error:

(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)')))"}

Used this documentation: https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/shadowbox/server/api.yml#tag/Server

Screenshot

Снимок экрана 2024-03-15 в 21 10 37
daniellacosse commented 8 months ago

This is because you're requesting it from the browser - we use self-signed certificates on the server by default. If you want to be able to make requests from the browser, you'll need to use a tool like ngrok to get a valid ingress url.