i still don't understand how to use object storage
eyenalxai
PROOP

6 days ago

alright so i dropped presigned urls and now i'm trying to do uploads from my backend. works fine with s3 and digital ocean spaces. on railway i get this:

error: ERR_TLS_CERT_ALTNAME_INVALID fetching "https://durable-duffel-gkinoymjc3.ams.t3.storageapi.dev/f058bafb-b9cc-4714-872b-b7e4d1e6c9d8.webp?x-id=PutObject". For more information, pass `verbose: true` in the second argument to fetch()
      path: "https://durable-duffel-gkinoymjc3.ams.t3.storageapi.dev/f058bafb-b9cc-4714-872b-b7e4d1e6c9d8.webp?x-id=PutObject",
     errno: 0,
 $metadata: {
  attempts: 1,
  totalRetryDelay: 0,
},
      code: "ERR_TLS_CERT_ALTNAME_INVALID"
  totalRetryDelay: 0,
},
      code: "ERR_TLS_CERT_ALTNAME_INVALID"
Solved

12 Replies

eyenalxai
PROOP

6 days ago

oh, i was supposed to drop the region. got it. this still makes zero sense, though, because now i have to build different urls depending on whether i’m using s3 locally or railway buckets in production, since using railway buckets for local development isn’t possible.

what is this API 😭 😭 😭


6 days ago

Using Railway Buckets in local development is possible, all the credentials are in the credentials tab and can be easily added to your service by clicking the button

image.png

Attachments


eyenalxai
PROOP

5 days ago

is this ai response


5 days ago

No? <:kekw:788259314607325204>


eyenalxai
PROOP

5 days ago

i know where the credentials are. if i didn't i wouldn't have been able to upload anything at all.


5 days ago

But you said that it isn't possible to use it on local development and then I showed you where you can get those credentials to use on local development environments


eyenalxai
PROOP

5 days ago

but endpoint url is not publicly accessible


5 days ago

It is acessible

image.png

Attachments


5 days ago

For reference, the Railway buckets is a wrapper of Tigris Data (a s3-compatible provider), and thus even Railway reaches out to it via the internet.


eyenalxai
PROOP

5 days ago

oh wow i'm so stupid


eyenalxai
PROOP

5 days ago

thanks!


5 days ago

If you have any more problems, feel free to create another help thread!


Status changed to Solved passos 5 days ago


Loading...