Minio endpoint not accepting

Minio Client SDK doesn't accept the railway provided url as valid endpoint.
40 Replies
Percy
Percy11mo ago
Project ID: 16ada6d2-f78b-439f-aa61-584221dc6853
King Jahad
King JahadOP11mo ago
16ada6d2-f78b-439f-aa61-584221dc6853
Brody
Brody11mo ago
show code
King Jahad
King JahadOP11mo ago
from minio import Minio client = Minio(endpoint="bucket-production-e32d.up.railway.app/",access_key="ESchG0DUOOIsNQ7hhMq1",secret_key="zWKyb8E30uPq2qeLyuH64zuiA8kIYK27n9S6LPEx") found = client.bucket_exists("shyft") print(found)
King Jahad
King JahadOP11mo ago
No description
Brody
Brody11mo ago
maybe because of the trialing slash?
King Jahad
King JahadOP11mo ago
Nope I have tried with the console url and tried with creating tcp and http proxy for bucket service. None works
Brody
Brody11mo ago
remove the trailing slash
King Jahad
King JahadOP11mo ago
Same
Brody
Brody11mo ago
show me new code
King Jahad
King JahadOP11mo ago
from minio import Minio client = Minio(endpoint="https://bucket-production-e32d.up.railway.app",access_key="ESchG0DUOOIsNQ7hhMq1",secret_key="zWKyb8E30uPq2qeLyuH64zuiA8kIYK27n9S6LPEx") found = client.bucket_exists("shyft") print(found)
Brody
Brody11mo ago
show error
King Jahad
King JahadOP11mo ago
No description
King Jahad
King JahadOP11mo ago
you can try connecting I'll remove api later console-production-fb36.up.railway.app console url bucket-production-e32d.up.railway.app bucket proxy http url
Brody
Brody11mo ago
well you've gone and mucked about with the service again, I don't know if you've broke it
King Jahad
King JahadOP11mo ago
I didn't change a thing Aside from password
Brody
Brody11mo ago
my point stands
King Jahad
King JahadOP11mo ago
Dashboard works and I can upload Can't access it through client sdk
Brody
Brody11mo ago
I'll deploy a minio template for myself and see if I can get the client sdk to work, power is out so no computer, so I'll update you when I can get to this
King Jahad
King JahadOP11mo ago
cool I think I got something now the error says S3 API Requests must be made to API port. I tried changing port to 9090 but it doesn't work
Brody
Brody11mo ago
port would be 443
King Jahad
King JahadOP11mo ago
That is normal https port or is it ssh I can't connect using any
Brody
Brody11mo ago
S3 operates on http, railway only exposes https on port 443, thus you need to use that
King Jahad
King JahadOP11mo ago
Did you get a chance to check it out?
Brody
Brody11mo ago
power still off lol
King Jahad
King JahadOP11mo ago
Give me your electricity company;s number lol
Brody
Brody11mo ago
it's very windy
King Jahad
King JahadOP11mo ago
Just to be sure, I am using the url that connects to the console service
Brody
Brody11mo ago
that's still going to be port 443 and https
King Jahad
King JahadOP11mo ago
and it won't work because s3 operates on http?
Brody
Brody11mo ago
railway runs the http to https proxy
King Jahad
King JahadOP11mo ago
Bleh Solved it
Brody
Brody11mo ago
what was it
King Jahad
King JahadOP11mo ago
Why is this not included into the template PORT 9000
Brody
Brody11mo ago
its not?
King Jahad
King JahadOP11mo ago
You have to add a variable to bucket as well Nope
Brody
Brody11mo ago
interesting
King Jahad
King JahadOP11mo ago
When I read abou railways PORT injection Then it clicked For dashboard PORT is included 9090 but there's no port in bucket that's why it doesn't generate any domain either.
Brody
Brody11mo ago
gotcha, will tell jr about this
King Jahad
King JahadOP11mo ago
There are so many minio help threads.
Want results from more Discord servers?
Add your server