Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurs when creating an API request #1521

Open
CookieSSH opened this issue Mar 15, 2024 · 1 comment
Open

An error occurs when creating an API request #1521

CookieSSH opened this issue Mar 15, 2024 · 1 comment
Labels
api Related to the REST API

Comments

@CookieSSH
Copy link

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
@CookieSSH CookieSSH changed the title При создание запроса к API возникает ошибка An error occurs when creating an API request Mar 15, 2024
@daniellacosse
Copy link
Contributor

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.

@daniellacosse daniellacosse added customer support Customer support requests api Related to the REST API labels Mar 25, 2024
@sbruens sbruens removed the customer support Customer support requests label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to the REST API
Projects
None yet
Development

No branches or pull requests

3 participants