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

    Vitali

    04/29/2022, 10:40 PM
    I actually finished off the WebCrypto runtime implementation last year to be standard compliant. DigestStream is another coworker who's a beast and is getting our streams up to snuff (+ helping out R2 on the side)
  • v

    Vitali

    04/29/2022, 10:40 PM
    It's on the radar for standardization. We're pushing it
  • j

    john.spurlock

    04/29/2022, 10:45 PM
    i suspected you're using DO in the worker, tell-tale delay on cold start, feels exactly the same : ))))
  • v

    Vitali

    04/29/2022, 10:50 PM
    Didn't I say this before? We built R2 on top of Workers & Durable Objects. Albeit a version of Durable Objects that's only for R2 that has a turbo installed and the break lines cut
  • p

    Plotzes

    04/29/2022, 10:51 PM
    Durable Objects: Steroids Version
  • j

    john.spurlock

    04/29/2022, 10:56 PM
    doh, just got a chance to try r2 with Arq (excellent backup app for mac https://www.arqbackup.com/) which has a "s3-compatible" storage option. It gets through initial setup, but then fails trying to sync with
    GET https://<account>.r2.cloudflarestorage.com/<bucket>/?prefix=471A5A4F-3B84-4540-A052-BE8625FA5099/&delimiter=/&max-keys=500: The request signature we calculated does not match the signature you provided. Check your secret access key and signing method.
  • j

    john.spurlock

    04/29/2022, 10:56 PM
    seems like it ought to work since it's doing path-style
  • v

    Vitali

    04/29/2022, 10:58 PM
    Grr... maybe our signature algorithm is wrong. DM me your account tag again & redo the request?
  • v

    Vitali

    04/29/2022, 10:58 PM
    or either order really
  • v

    Vitali

    04/29/2022, 10:59 PM
    but the auth header is redacted
  • v

    Vitali

    04/29/2022, 10:59 PM
    Do other requests work?
  • v

    Vitali

    04/29/2022, 10:59 PM
    I'm wondering if it's an issue w/ the search params
  • j

    john.spurlock

    04/29/2022, 10:59 PM
    just the initial setup (lists/creates the bucket!)
  • v

    Vitali

    04/29/2022, 11:00 PM
    Lists buckets doesn't work?
  • v

    Vitali

    04/29/2022, 11:00 PM
    The request you showed is ListObjectsV2
  • j

    john.spurlock

    04/29/2022, 11:01 PM
    just the initial setup works, only the object-level stuff seems fail, i'll send you my info and try again
  • v

    Vitali

    04/29/2022, 11:01 PM
    PutObject?
  • j

    john.spurlock

    04/29/2022, 11:10 PM
    the list is failing, still trying to figure it out
  • v

    Vitali

    04/29/2022, 11:13 PM
    Yeah - it's on our side
  • v

    Vitali

    04/29/2022, 11:13 PM
    It might work if you do
    delimiter=/&max-keys=500
  • v

    Vitali

    04/29/2022, 11:13 PM
    But our code there is broken. I should have double-checked
  • j

    john.spurlock

    04/29/2022, 11:14 PM
    ok constructed essentially the same query as that UI error message, but using the aws cli:
    aws s3api list-objects-v2 --bucket <bucket> --profile <profile> --endpoint-url https://<account>.r2.cloudflarestorage.com --debug --prefix 471A5A4F-3B84-4540-A052-BE8625FA5099/ --delimiter / --max-keys 500
  • j

    john.spurlock

    04/29/2022, 11:14 PM
    and it works
  • j

    john.spurlock

    04/29/2022, 11:14 PM
    lists no objects (empty bucket)
  • j

    john.spurlock

    04/29/2022, 11:15 PM
    so yea something in the signature calc on the arq side, i'll see if i can find its local logs
  • v

    Vitali

    04/29/2022, 11:31 PM
    right - but I bet you that command sorts the search params before sending
  • j

    john.spurlock

    04/29/2022, 11:32 PM
    oh duh
  • j

    john.spurlock

    04/29/2022, 11:32 PM
    it's not v2
  • j

    john.spurlock

    04/29/2022, 11:32 PM
    it's list objects v1
  • j

    john.spurlock

    04/29/2022, 11:32 PM
    there's no list-type=2
1...818283...1050Latest