Minio endpoint not accepting
Minio Client SDK doesn't accept the railway provided url as valid endpoint.
40 Replies
Project ID:
16ada6d2-f78b-439f-aa61-584221dc6853
16ada6d2-f78b-439f-aa61-584221dc6853
show code
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)
maybe because of the trialing slash?
Nope
I have tried with the console url and tried with creating tcp and http proxy for bucket service.
None works
remove the trailing slash
Same
show me new code
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)
show error
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
well you've gone and mucked about with the service again, I don't know if you've broke it
I didn't change a thing
Aside from password
my point stands
Dashboard works and I can upload
Can't access it through client sdk
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
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
port would be 443
That is normal https port
or is it ssh
I can't connect using any
S3 operates on http, railway only exposes https on port 443, thus you need to use that
Did you get a chance to check it out?
power still off lol
Give me your electricity company;s number lol
it's very windy
Just to be sure, I am using the url that connects to the console service
that's still going to be port 443 and https
and it won't work because s3 operates on http?
railway runs the http to https proxy
Bleh
Solved it
what was it
Why is this not included into the template
PORT 9000
its not?
You have to add a variable to bucket as well
Nope
interesting
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.
gotcha, will tell jr about this
There are so many minio help threads.