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

    Farhian

    05/18/2023, 8:52 PM
    POST fails
  • f

    flayks

    05/18/2023, 8:53 PM
    I'm just getting a mp4 video 😅
  • CORS from Webworker?
    f

    flayks

    05/18/2023, 8:56 PM
    Actually it works using the direct URL but here I'm preloading a bunch of videos in a WebWorker:
    Copy code
    js
    const preloadVideo = async (url: string) => {
        const res = await fetch(url)
        const blob = await res.blob()
        return URL.createObjectURL(blob)
    }
    
    onmessage = async ({ data }: MessageEvent) => {
        for (const videoUrl of data.videos) {
            const url = await preloadVideo(videoUrl)
            preloadedMedia.videos.push(url)
            postMessage(preloadedMedia)
        }
    })
    so there is a
    .fetch()
    involved
    s
    • 2
    • 5
  • s

    Sid | R2

    05/18/2023, 9:02 PM
    Hm, I don’t really know what itty-router does, so you’d have to find that out to debug this. FWIW setting up CORS on a sever when the incoming request is known is really not that hard to do by hand, you could do that instead of using a library.
  • f

    Farhian

    05/18/2023, 9:22 PM
    ok, I will try that, thank you @Sid | R2
  • b

    brainstorm

    05/19/2023, 5:12 AM
    Is it possible to "pin" both workers and R2 buckets to, say, Australia "region"? We are evaluating sharing a sizeable amount of genomics data through Cf Workers+R2, but lawyers say that it really needs to be served within Australia... https://developers.cloudflare.com/r2/buckets/data-location/ says APAC, but we'd not want our (clinical) data to be replicated and/or served from Singapore, for instance.
  • u

    Unsmart | Tech debt

    05/19/2023, 5:17 AM
    Afaik Australia is not used for R2 data and there’s not really any way to only run workers in specific regions outside of maybe having an enterprise agreement and them localizing it for you but I have no idea how that works 🤷
  • trying to use the data migration between
    n

    nora

    05/19/2023, 8:49 AM
    trying to use the data migration between 2 R2 buckets

    https://cdn.discordapp.com/attachments/940663374377783388/1109040200925057024/image.pngâ–¾

    y
    • 2
    • 9
  • n

    nora

    05/19/2023, 8:50 AM

    https://cdn.discordapp.com/attachments/940663374377783388/1109040268172333136/image.pngâ–¾

  • k

    kimuyb

    05/19/2023, 8:59 AM
    Hello r2 users! Is r2.dev subdomain rate permanent? or is it updated daily?
  • k

    kimuyb

    05/19/2023, 8:59 AM

    https://cdn.discordapp.com/attachments/940663374377783388/1109042737048731658/2023-05-19_5.59.48.pngâ–¾

  • h

    HardAtWork

    05/19/2023, 9:08 AM
    It is permanent, though if you want to use it in a product, I would recommend using a custom domain, as the
    r2.dev
    subdomain may be rate-limited.
  • k

    kimuyb

    05/19/2023, 9:18 AM
    Thank you for your response 🙂 Are there any chance to update rates? We just configured custom domain, however, we already have customers who are using the url.
  • k

    kimuyb

    05/19/2023, 9:19 AM
    We just need to buy some time to send messages to our customers to update their bucket access url
  • k

    kimuyb

    05/19/2023, 9:19 AM
    🥺
  • e

    Erisa | Support Engineer

    05/19/2023, 10:12 AM
    Its not possible, sorry
  • e

    Erisa | Support Engineer

    05/19/2023, 10:13 AM
    The r2.dev urls are intended for development and testing use only
  • k

    KIKI1140

    05/19/2023, 1:51 PM
    The r2.dev domain does not appear to be functioning. Is it just me? T.T
  • s

    Skye

    05/19/2023, 1:51 PM
    Could you share more info?
  • k

    KIKI1140

    05/19/2023, 1:53 PM
    I think it worked out well until yesterday, but everything connected to r2.dev today is not working.

    https://cdn.discordapp.com/attachments/940663374377783388/1109116710444875896/Screen_Shot_2023-05-19_at_10.53.12_PM.pngâ–¾

  • s

    Skye

    05/19/2023, 1:54 PM
    That doesn't look like you're connecting to r2.dev

    https://cdn.discordapp.com/attachments/940663374377783388/1109116943186808932/image.pngâ–¾

  • s

    Skye

    05/19/2023, 1:54 PM
    That's a local IP address
  • k

    KIKI1140

    05/19/2023, 1:56 PM
    I don't understand it either. All r2.dev domains are not functioning. The same goes for other project buckets :( Isn't there a good solution? Only R2 and stream services are being used by cloudflare.

    https://cdn.discordapp.com/attachments/940663374377783388/1109117499208900698/Screen_Shot_2023-05-19_at_10.55.21_PM.pngâ–¾

  • m

    meowzilla

    05/19/2023, 2:30 PM
    have u tried in a browser instead of postman
  • m

    meowzilla

    05/19/2023, 2:30 PM
    what does the browser show
  • i

    Isaac McFadyen | YYZ01

    05/19/2023, 3:00 PM
    Check your /etc/hosts file
  • i

    Isaac McFadyen | YYZ01

    05/19/2023, 3:00 PM
    Sometimes I accidentally leave lines in there that mess with DNS resolution
  • l

    lootjes

    05/19/2023, 3:31 PM
    I have a question about R2 pricing, at https://developers.cloudflare.com/r2/pricing/ it uses the example of a 1GB object being stored for 30 days or a 2GB object being stored for 15 days being identical, does anyone know what the granularity on that is? is it a day? a week? less? more?.
  • k

    kian

    05/19/2023, 3:31 PM
    peak daily usage iirc
  • u

    Unsmart | Tech debt

    05/19/2023, 3:31 PM
    it is
1...103310341035...1050Latest