https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • r

    Ryder Cragie

    03/05/2023, 7:06 PM
    Sorry, I've got no clue where to start with the API. Is it a command you have to run?
  • r

    Ryder Cragie

    03/05/2023, 7:06 PM
    Can the billing team do it from their end if I contact them?
  • u

    Unsmart | Tech debt

    03/05/2023, 7:07 PM
    yes they can
  • r

    Ryder Cragie

    03/05/2023, 7:07 PM
    I'll ask them. Thanks.
  • r

    Ryder Cragie

    03/05/2023, 7:07 PM
    Going slightly off-topic for this channel, but what's the best channel to discuss what the "Cloudflare for SaaS" subscription does and what it would affect if I cancelled it?
  • z

    zegevlier

    03/05/2023, 7:08 PM
    #909458221419356210
  • r

    Ryder Cragie

    03/05/2023, 7:09 PM
    Thanks. Wasn't sure if that was a support channel or not. I did see #897916119782928394 but it's in the archive.
  • z

    zegevlier

    03/05/2023, 7:09 PM
    Yea, any product that doesn't have an active channel can go in #909458221419356210 😃
  • r

    Ryder Cragie

    03/05/2023, 7:10 PM
    Awesome. Cheers!
  • s

    Scheggia

    03/05/2023, 7:13 PM
    Ty
  • p

    paras

    03/06/2023, 12:21 AM
    I'm getting transient 404 errors for objects in my R2 bucket. I can view these objects in my browser and is not a 404. See one object which I highlighted which switches from 200 to 404 periodically.
  • p

    paras

    03/06/2023, 12:22 AM
    It's also concerning since R2 incorrectly reports this as a 404 instead of 500 or some other HTTP error, thereby hiding the issue from error reporting.
  • p

    paras

    03/06/2023, 12:22 AM
    This is the object in question:

    https://cdn.genmo.ai/results/text_to_video/clevxst990007j08v27gagq6v/sample.pngâ–¾

  • p

    paras

    03/06/2023, 12:23 AM
    any ideas what could be going on here?
  • z

    Zeblote

    03/06/2023, 12:24 AM
    this link is 404 for me in browser
  • z

    Zeblote

    03/06/2023, 12:24 AM
    the 404 appears to be cached
  • j

    James

    03/06/2023, 12:24 AM
    Same, I see a 404 as well, but a
    Cache-Control: max-age=7200
    . Is it possible you're seeing a cache of the 200, but that script isn't?
  • z

    Zeblote

    03/06/2023, 12:24 AM
    did something request the object, caching 404, before you uploaded it?
  • p

    paras

    03/06/2023, 12:27 AM
    Hm I see, I'm using boto3 to upload objects to the bucket which could have set a cache-control incorrectly
  • b

    bajosi

    03/06/2023, 9:30 AM
    i do multipart streaming each 5MB parts to R2, but while trying to upload the parts, i get the error;
    Expected hash not equal to calculated hash
    . I also tried to upload to local minio object storage, it works without any issue. only occurs on R2.
  • b

    bajosi

    03/06/2023, 9:39 AM
    disabling md5 stream fixed it. mhmm
  • x

    xetic

    03/06/2023, 1:27 PM
    Is there a Cloudflare API method to assign a domain / subdomain to an R2 bucket? Essentially, I'm trying to do this but via API: https://developers.cloudflare.com/r2/data-access/public-buckets/#connect-your-bucket-to-a-custom-domain
  • e

    Erisa | Support Engineer

    03/06/2023, 1:32 PM
    I don't think the API for that has been publicly documented yet
  • x

    xetic

    03/06/2023, 1:34 PM
    That's okay, I ran into another product design problem from lack of APIs so will have to go a completely different route
  • w

    wot

    03/06/2023, 1:37 PM
    Getting CORS errors trying to upload to a presigned url.
    Copy code
    [
      {
        "AllowedOrigins": [
          "*"
        ],
        "AllowedMethods": [
          "GET",
          "POST",
          "DELETE",
          "PUT",
          "HEAD"
        ],
        "AllowedHeaders": [
          "*"
        ],
        "ExposeHeaders": []
      }
    ]
    FWIW I'm using this snippet for generating the signed headers for the upload https://gist.github.com/chrismccord/37862f1f8b1f5148644b75d20d1cb073
    k
    n
    • 3
    • 6
  • f

    fieu

    03/06/2023, 3:23 PM
    What's the easiest way to browse and upload/download files to R2 on Windows?
  • f

    fieu

    03/06/2023, 3:23 PM
    In an FTP-like interface
  • x

    xetic

    03/06/2023, 3:28 PM
    I think WinSCP supports S3
  • x

    xetic

    03/06/2023, 3:28 PM
    https://winscp.net/eng/docs/guide_amazon_s3
  • f

    fieu

    03/06/2023, 3:29 PM
    got it working
1...931932933...1050Latest