API setup | Failed to connect
-
Hello,
I have been following this guide to setup the API but having some difficulties to connect to the API.
I'm posting some screenshots, kindly check them.
-
write instead of 0.0.0.0 your public ip address.
-
You can only use 0.0.0.0 in the listen server, not when trying to reach it! You should use localhost (127.0.0.1) if running the admin panel on the same server or your public IP if on another machine.
-
I tried with my public ip and with 127.0.0.1 but i'm not able to get the test.loli into my configuration list.
What am i doing wrong?
When i click on refresh, i'm not getting any error but the group "test" vanishes away, then i have to re-add it again.
I have tried it like this:
http://1xx.xx.xx.xx:5000 (my public ip)
And
I'm using a windows VPS.
I'm somehow confused about this:
Should i be able to open the http://1xx.xx.xx.xx:5000 in my browser?
-
Please launch the program via
dotnet ./OpenBulletAPI.dll --urls "http://*:5000"
and try again. Also you should check if port 5000 is open on your server by using any online port check tool.
-
@Ruri said in API setup | Failed to connect:
dotnet ./OpenBullet.dll --urls "http://*:5000"
So, that is the result after running the command suggested by you, thanks.
I edited the command as you forgot to add the word API, however the result is:
The problem is the the port 5000 is closed, i just checked it. Let me try opening it and then i will be updating you.
-
Yeah I forgot, sorry, I edited my post now. Anyways, try to reach the server again now. An easy way to know if you can reach it is by typing
http://your-public-ip:5000/api/configs
in a browser on another machine and see if it downloads an empty configs.zip file.
-
-
I've opened the port 5000 now, i'm able to download a zip folder while visiting directly the api url:
http://1xx.xxx.xx.xx:5000/api/configs
But somehow, OB isn't able to get the test.loli in to the configurations when i click on rescan.
I have opened the ports for tcp/udp without allowing any other application to access via this port.
-
Are you sure you set up groups correctly? Are you sure you are using the public ip in the source URL in OB? Are you sure the API Key you are using belongs to a group with the same name as the config subfolder?
-
I rechecked everything, everything is fine.
-
If you close the admin panel and then open it again, do you still see the user you created?
-
No, i don't.
-
There's your problem, I strongly believe that the password is not configured correctly at this point. Open
appsettings.json
with any text editor and make sure the password in the file is EXACTLY as the one in your admin panel
-
You mean the secret key?It is the same.
-
Hmm. At this point the only thing I can do is jump on teamviewer to help you figure this thing out. Let me know if you want to do that.
-
yeah, we can, should i pm you?
-
@Ruri said in API setup | Failed to connect:
There's your problem, I strongly believe that the password is not configured correctly at this point. Open
appsettings.json
with any text editor and make sure the password in the file is EXACTLY as the one in your admin panelThis solved the problem, thanks @Ruri
-
Ruri boa noite eu nao consigo fazer a configuraçao remota no open pode me ajudar ?
-
I don't speak portuguese