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

    kian

    02/20/2023, 2:52 PM
    S3 and R2 still differ in V2
  • k

    kian

    02/20/2023, 2:54 PM
    Is this test case still in place? https://discord.com/channels/595317990191398933/940663374377783388/984897656851685476 R2's current behaviour should fail that.
  • k

    kian

    02/20/2023, 2:56 PM
    It's the exact same issue that broke Hyper Backup in June at a glance haha
  • k

    kaichao

    02/20/2023, 3:01 PM
    Hey I'm getting
    ECONNRESET
    when fetching cloudflare storage files with presigned URL with VPN (cloudflare is blocked, so VPN is necessary), the issue detail [here in github](https://github.com/perspect3vism/ad4m/issues/240). I have tried switch http client library in NodeJS, but still no lucky, anyone seeing similar issues or have any context?
  • j

    johtso

    02/20/2023, 3:09 PM
    does anyone know how to connect to r2 with cyberduck?
  • j

    johtso

    02/20/2023, 3:09 PM
    I've added the r2 profile, but whenever I select it it changes the address to amazon
  • s

    Sid | R2

    02/20/2023, 3:11 PM
    Huh, this test still does exist...
  • k

    kian

    02/20/2023, 3:12 PM
    Either that or the dashboard is silently ignoring an empty folder
  • k

    kian

    02/20/2023, 3:12 PM
  • k

    kian

    02/20/2023, 3:12 PM
    Lemme try with an SDK
  • s

    Sid | R2

    02/20/2023, 3:12 PM
    Ugh, it might actually be the dash, I'll wait to see what you find out
  • k

    kian

    02/20/2023, 3:13 PM
    If that is the case then I wouldn't expect it to be an issue (for Synology) - but it did break it before
  • k

    kian

    02/20/2023, 3:13 PM
    Let's see
  • i

    itsmatteomanf

    02/20/2023, 3:13 PM
    I honestly hoped it was this... sort of bad, but an easy fix.
  • k

    kian

    02/20/2023, 3:17 PM
    Seems to work fine with aws-sdk-js-v3
  • k

    kian

    02/20/2023, 3:18 PM
  • k

    kian

    02/20/2023, 3:18 PM
    Welp
  • s

    Sid | R2

    02/20/2023, 3:18 PM
    Are you selecting R2 as the connection type in the dropdown (I had to restart Cyberduck after installing the profile to get it to show up in that list) The URL you use should be
    <bucket>.<account>.r2.cloudflarestorage.com
    . I just tried it and it seems to be working
  • j

    johtso

    02/20/2023, 3:19 PM
    @Sid | R2 turned out it was doing some automatic detection based on the uri entered and I needed to paste it in without the
    https
    otherwise it would insist I was trying to add webdav
  • s

    Sid | R2

    02/20/2023, 3:19 PM
    Oh, so just to clarify, everything's cool but the dash just doesn't show the empty object, right?
  • j

    johtso

    02/20/2023, 3:19 PM
    unfortunately I'm still not able to connect though
  • k

    kian

    02/20/2023, 3:19 PM
    The dashboard doesn't seem to upload it at all
  • k

    kian

    02/20/2023, 3:19 PM
    which then of course means it won't show
  • s

    Sid | R2

    02/20/2023, 3:20 PM
    Well that's convenient because I'm already debugging issues with uploading objects on the dash
  • k

    kian

    02/20/2023, 3:20 PM
    S3
    Copy code
    js
      Contents: [
        {
          Key: 'folder/empty/',
          LastModified: 2023-02-20T15:19:14.000Z,
          ETag: '"d41d8cd98f00b204e9800998ecf8427e"',
          ChecksumAlgorithm: undefined,
          Size: 0,
          StorageClass: 'STANDARD',
          Owner: [Object]
        }
      ],
      Delimiter: '/',
      IsTruncated: false,
      Marker: '',
      MaxKeys: 1000,
      Name: 'sdk-example-kian',
      Prefix: 'folder/empty/'
    R2
    Copy code
    js
      Contents: [
        {
          Key: 'folder/empty/',
          LastModified: 2023-02-20T15:17:45.119Z,
          ETag: '"d41d8cd98f00b204e9800998ecf8427e"',
          ChecksumAlgorithm: undefined,
          Size: 0,
          StorageClass: 'STANDARD',
          Owner: [Object]
        }
      ],
      Delimiter: '/',
      IsTruncated: false,
      MaxKeys: 1000,
      Name: 'sdk-example',
      NextMarker: 'folder/empty/',
      Prefix: 'folder/empty/'
  • k

    kian

    02/20/2023, 3:21 PM
    Everything looks good to me - but R2 provides
    NextMarker
    when
    IsTruncated
    is
    false
  • j

    johtso

    02/20/2023, 3:21 PM
    @Sid | R2 aha, it's working now! the url wasn't supposed to have my bucket path at the end
  • k

    kian

    02/20/2023, 3:21 PM
    Oh
  • k

    kian

    02/20/2023, 3:21 PM
    Maybe this is it?
  • k

    kian

    02/20/2023, 3:22 PM
    Maybe it looks for
    NextMarker
    rather than checking
    IsTruncated
    & now loops infinitely waiting for that to be
    null
1...887888889...1050Latest