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

    kian

    03/07/2023, 4:19 PM
    You'll be able to see if it's being cached with the
    CF-Cache-Status
    response header
  • s

    Scheggia

    03/07/2023, 4:28 PM
    I tried to perform the same operation (identical transform rule) with another domain (same bucket) and it works perfectly (even in the browser), so I think it is a problem related to some setting in the domain. In both the SSL mode is Full (Strict), do you know any other setting that could cause this problem? To see the tests try:

    ▾

    (works) and

    ▾

    (doesn't work)
  • e

    Erisa | Support Engineer

    03/07/2023, 4:29 PM
    Automatic Signed Exchanges was the setting I found that caused the issue consistently, but keep in mind the issue itself is not overly consistently reproducible and only appears when the Accept header is just right
  • s

    Scheggia

    03/07/2023, 4:30 PM
    I thought about it too, but both domains are in the free plan and I saw that this feature is only for paid plans so I don't think that is the problem.
  • e

    Erisa | Support Engineer

    03/07/2023, 4:30 PM
    Exactly my thoughts too
  • s

    Scheggia

    03/07/2023, 4:33 PM
    Could it be caused by other speed-related functions? For example, I have Brotli active. Anyway now I try to compare the differences between the two domains and see what is different
  • s

    Scheggia

    03/07/2023, 4:37 PM
    I don't notice any differences
  • s

    Scheggia

    03/07/2023, 4:42 PM
    omg It was a very very old tool on zaraz that I don't know how it was causing the problem
  • e

    Erisa | Support Engineer

    03/07/2023, 4:43 PM
    Okay Zaraz impacting it also actually adds a lot of context to this issue
  • e

    Erisa | Support Engineer

    03/07/2023, 4:43 PM
    I will update them with that
  • e

    Erisa | Support Engineer

    03/07/2023, 4:44 PM
    so to be clear then, this issue isn't related to R2, its with a number of products not respecting Transform Rules
  • s

    Scheggia

    03/07/2023, 4:45 PM
    Exactly
  • e

    Erisa | Support Engineer

    03/07/2023, 4:45 PM
    Thanks for checking
  • s

    Scheggia

    03/07/2023, 4:45 PM
    The problem was related to Zaraz somehow interfering with the transformation rule
  • s

    storm

    03/07/2023, 5:52 PM
    is it possible to get any stats or analytics on the individual objects in a bucket? or can you only see per-bucket aggregate statistics?
  • u

    Unsmart | Tech debt

    03/07/2023, 6:01 PM
    Looks like it should be possible using the graphql api
    r2OperationsAdaptiveGroups
    havent tested yet but it does have object name in the dimensions
  • u

    Unsmart | Tech debt

    03/07/2023, 6:04 PM
  • r

    rvencu

    03/07/2023, 7:05 PM
    Hi, I need to use the location constraint but I do not understand the example give in the docs . I need to be able to create a bucket with rclone or aws cli so I need examples for these clients. Also, the console does not display any information about the location of a bucket. It should, in my opinion. Thanks.
  • e

    Erisa | Support Engineer

    03/07/2023, 7:28 PM
    Location constraints are in beta 🙂 Sid shared here before that them being in the UI is planned for future
  • s

    Sid | R2

    03/07/2023, 7:28 PM
    If you’re using the S3 API, then choosing a location is the same as S3, you have to provide a LocationConstraint in the CreateBucketConfiguration: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html#API_CreateBucket_RequestSyntax
  • e

    Erisa | Support Engineer

    03/07/2023, 7:29 PM
    on rclone you can use
    --s3-location-constraint
    in a command or
    location_constraint
    as part of the config
  • s

    Sid | R2

    03/07/2023, 7:29 PM
    Object-level stats aren’t recorded, so there’s no way to query them currently unfortunately
  • s

    Sid | R2

    03/07/2023, 7:31 PM
    If you have a public bucket, you may be able to get rough numbers from the Web Analytics dashboard i think, but otherwise, this sounds like a custom worker+Analytics Engine kind of project!
  • e

    Erisa | Support Engineer

    03/07/2023, 7:32 PM
    Traffic Analytics on Pro plans or higher will give you sampled numbers of hits, if youre trying to guess ops count you'll need to take care to exclude cache hits from those
  • s

    Sid | R2

    03/07/2023, 7:34 PM
    Hey you might get better suggestions asking in the Wrangler channel, I personally don’t use local dev as much so I’m not familiar with its nuances too much.
  • e

    Erisa | Support Engineer

    03/07/2023, 7:37 PM
    for AWS cli its quite a bit more annoying
    Copy code
    aws s3api create-bucket --create-bucket-configuration '{"LocationConstraint": "wnam"}' --bucket mywnambucket --endpoint https://ACCOUNT_ID.r2.cloudflarestorage.com
  • e

    Erisa | Support Engineer

    03/07/2023, 7:37 PM
    but does work
  • r

    rvencu

    03/07/2023, 7:46 PM
    Got it, it works. Thanks
  • w

    weide

    03/07/2023, 8:12 PM
    hi, if i want to list the files with a given common prefix in a r2 bucket. is it a good idea to use list api ? assuming the bucket contains large number of objects, will that be performance issues ?
  • c

    chientrm

    03/08/2023, 2:02 AM
    oh so every's using
    aws s3api
1...934935936...1050Latest