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

    Zeblote

    02/19/2023, 7:58 PM
    it's definitely a different kind of feature than the public bucket
  • p

    protocol

    02/20/2023, 6:43 AM
    hi people!! cloudflare r2 cors issue it seems i have set my cors policy, but for some asinine reason CF doesn't actually send those awesome cors headers
  • p

    protocol

    02/20/2023, 6:43 AM
    is this a CF issue or a skill issue on my part
  • p

    protocol

    02/20/2023, 6:43 AM
    i have set it via the web ui and also have tried it via PUT request, both return 200 OK, but again - no cors headers
  • k

    Karew

    02/20/2023, 7:09 AM
    You must send an
    Origin:
    header with your outgoing request
  • k

    Karew

    02/20/2023, 7:10 AM
    Although I can't see your outgoing headers
  • e

    Erisa | Support Engineer

    02/20/2023, 7:19 AM
    wouldnt that be added automatically by browsers? 🤔
  • p

    protocol

    02/20/2023, 12:23 PM
    origin header is set
  • p

    protocol

    02/20/2023, 12:25 PM
    ill keep lookin about
  • k

    kian

    02/20/2023, 12:30 PM
    Check what the actual response body is to the preflight
  • p

    protocol

    02/20/2023, 12:33 PM
    weird. looks like the answer is to sleep for about 4 hours and when you wake up cloudflare will finally add the cors headers
  • p

    protocol

    02/20/2023, 12:34 PM
    consider answer solved, just had to wait
  • i

    itsmatteomanf

    02/20/2023, 1:30 PM
    Anyone from the R2 team is willing to try and investigate a weird issue with Synology? Hyper Backup fails with R2, with no apparent errors on either part, but I have no way to get logs as the requests succeed according to Synology's software.
  • s

    Sid | R2

    02/20/2023, 2:20 PM
    Coincidentally, someone internally brought this up last week as well. It seems like they use ListObjectsV1 and gets stuck in an infinite loop/we send it something unexpected so it keeps retrying with the same page marker. I don’t think Hyper Backup is OSS, right? Without it, it’s hard to guess how our ListObjectsV1 differs from S3’s
  • k

    kian

    02/20/2023, 2:25 PM
    S3
    Copy code
    xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
        <Name>sdk-example-kian</Name>
        <Prefix></Prefix>
        <Marker></Marker>
        <MaxKeys>1000</MaxKeys>
        <IsTruncated>false</IsTruncated>
        <Contents>
            <Key>foo</Key>
            <LastModified>2022-06-13T18:52:29.000Z</LastModified>
            <ETag>"37370a6e77e19dd66f506bce2b62d128"</ETag>
            <Size>290</Size>
            <Owner>
                <ID>f94df3e5b54807469361f124fa426391ee142b500b07b3cc1113ff388e099f4c</ID>
            </Owner>
            <StorageClass>STANDARD</StorageClass>
        </Contents>
    </ListBucketResult>
  • k

    kian

    02/20/2023, 2:26 PM
    R2
    Copy code
    xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
        <Name>sdk-example</Name>
        <Contents>
            <Key>404.html</Key>
            <Size>7</Size>
            <LastModified>2022-09-12T16:48:28.074Z</LastModified>
            <Owner>
                <ID>134a5a2c0ba47b38eada4b9c8ead10b6</ID>
                <DisplayName>134a5a2c0ba47b38eada4b9c8ead10b6</DisplayName>
            </Owner>
            <ETag>"7a84b1f2df983498c1088c51d33477d5"</ETag>
            <StorageClass>STANDARD</StorageClass>
        </Contents>
        <IsTruncated>false</IsTruncated>
        <MaxKeys>1000</MaxKeys>
        <KeyCount>20</KeyCount>
    </ListBucketResult>
  • k

    kian

    02/20/2023, 2:26 PM
    KeyCount
    is a ListObjectsV2 thing so I don't think R2 should be sending that for V1
  • k

    kian

    02/20/2023, 2:27 PM
    S3 send empty
    Prefix
    and
    Marker
    if not present (or not applicable)
  • k

    kian

    02/20/2023, 2:27 PM
    The rest seems the same
  • i

    itsmatteomanf

    02/20/2023, 2:28 PM
    Oh, so there is hope 👀 Yeah, I kind of hoped you had some sort of tail of reqs so I can trigger it and you see what it's trying to do.
  • i

    itsmatteomanf

    02/20/2023, 2:28 PM
    Hyper Backup is very much not OSS, unfortunately.
  • i

    itsmatteomanf

    02/20/2023, 2:28 PM
    But we have a @kian, who needs software to be OSS.
  • k

    kian

    02/20/2023, 2:29 PM
  • k

    kian

    02/20/2023, 2:29 PM
    OSS is good
  • k

    kian

    02/20/2023, 2:33 PM
    S3 implement
    MaxKeys
    but R2 doesn't, but I'd expect that to be an error (to Synology) and appear in the logs
  • i

    itsmatteomanf

    02/20/2023, 2:34 PM
    Yeah, last time with Vitali when it did error out it showed in logs...
  • i

    itsmatteomanf

    02/20/2023, 2:35 PM
    It's in there, though
  • i

    Ishh

    02/20/2023, 2:35 PM
    Can someone help me in #930503753583435836 plz?
  • i

    itsmatteomanf

    02/20/2023, 2:35 PM
    Second to last line.
  • i

    itsmatteomanf

    02/20/2023, 2:35 PM
    This is another channel, please don't spam.
1...885886887...1050Latest