https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • e

    Erisa | Support Engineer

    04/15/2023, 5:07 PM
    i assume since its a PUT you dont have a reproduction that anyone can do?
  • d

    dave

    04/15/2023, 5:08 PM
    correct :/
  • e

    Erisa | Support Engineer

    04/15/2023, 5:08 PM
    const response = await fetch(whatever)` const server = response.headers.get('server') when you first asked i thought you meant cloudflare in general, not an outbound fetch
  • d

    dave

    04/15/2023, 5:09 PM
    is that different than this?
    Copy code
    console.debug(JSON.stringify([...response.headers], null, 2));
  • e

    Erisa | Support Engineer

    04/15/2023, 5:09 PM
    not really
  • e

    Erisa | Support Engineer

    04/15/2023, 5:10 PM
    let me check something
  • d

    dave

    04/15/2023, 5:10 PM
    Copy code
    (error) Account Connection Limited
      (error) 403
      (debug) [
      [
        "cf-cache-status",
        "DYNAMIC"
      ],
      [
        "cf-ray",
        "7b85c23cb3f082c2-IAD"
      ],
      [
        "connection",
        "keep-alive"
      ],
      [
        "content-length",
        "26"
      ],
      [
        "content-type",
        "plain/text"
      ],
      [
        "date",
        "Sat, 15 Apr 2023 17:02:56 GMT"
      ],
      [
        "server",
        "cloudflare"
      ]
    ]
  • d

    dave

    04/15/2023, 5:11 PM
    say you do this locally:
    Copy code
    curl -kv https://fake.s3.us-central-1.wasabisys.com/demo.json -X PUT -d "troubleshooting_test"
    I get this response:
    Copy code
    < HTTP/1.1 403 Forbidden
    < Connection: close
    < Content-Type: application/xml
    < Date: Sat, 15 Apr 2023 17:11:18 GMT
    < Server: WasabiS3/7.12.1004-2023-02-17-7ff2f5bdd9 (R506-U08)
    < x-amz-id-2: xzuHcbDhMOmX14lO1flhd/I4AesH+FumYli7O+FnMmjRHj8FOBid2mkByo441Vj2KohaHq+N09gT
    < x-amz-request-id: 4CA4B222961B8411:B
    < Transfer-Encoding: chunked
    <
    <?xml version="1.0" encoding="UTF-8"?>
    * Closing connection 0
    <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>4CA4B222961B8411:B</RequestId><HostId>xzuHcbDhMOmX14lO1flhd/I4AesH+FumYli7O+FnMmjRHj8FOBid2mkByo441Vj2KohaHq+N09gT</HostId></Error>
  • d

    dave

    04/15/2023, 5:12 PM
    the
    x-amz-id-2
    and
    x-amz-request-id
    field are missing in my Worker logs.
  • e

    Erisa | Support Engineer

    04/15/2023, 5:12 PM
    okay yeah, the cf-cache-status and other cf headers are added onto non-cf subreqs so that wont be any help
  • d

    dave

    04/15/2023, 5:13 PM
    you know what, lemme try uploading to
    https://fake.s3.us-central-1.wasabisys.com/demo.json
    in my Worker script to see what happens
  • d

    dave

    04/15/2023, 5:13 PM
    one sec
  • d

    dave

    04/15/2023, 5:14 PM
    @Erisa | Support Engineer yeah this looks like a CF side issue?
    Copy code
    (error) Failed to upload to https://teset.s3.us-central-1.wasabisys.com/0ee9126e847f51fa1987dc8ce17048bd04ce28cb6ddbf455e660288d1ca41296.json with status Forbidden and "Account Connection Limited"
      (error) Account Connection Limited
      (error) 403
      (debug) [
      [
        "cf-cache-status",
        "DYNAMIC"
      ],
      [
        "cf-ray",
        "7b85d217147f38a4-IAD"
      ],
      [
        "connection",
        "keep-alive"
      ],
      [
        "content-length",
        "26"
      ],
      [
        "content-type",
        "plain/text"
      ],
      [
        "date",
        "Sat, 15 Apr 2023 17:13:45 GMT"
      ],
      [
        "server",
        "cloudflare"
      ]
    ]
  • d

    dave

    04/15/2023, 5:15 PM
    Copy code
    dave@mbp ~ % curl -kv "https://teset.s3.us-central-1.wasabisys.com/0ee9126e847f51fa1987dc8ce17048bd04ce28cb6ddbf455e660288d1ca41296.json" -X PUT -d "test"
    > PUT /0ee9126e847f51fa1987dc8ce17048bd04ce28cb6ddbf455e660288d1ca41296.json HTTP/1.1
    > Host: teset.s3.us-central-1.wasabisys.com
    > User-Agent: curl/7.87.0
    > Accept: */*
    > Content-Length: 4
    > Content-Type: application/x-www-form-urlencoded
    >
    * Mark bundle as not supporting multiuse
    < HTTP/1.1 307 Temporary Redirect
    < Connection: close
    < Content-Type: application/xml
    < Date: Sat, 15 Apr 2023 17:14:55 GMT
    < Location: https://teset.s3.us-west-1.wasabisys.com/0ee9126e847f51fa1987dc8ce17048bd04ce28cb6ddbf455e660288d1ca41296.json
    < Server: WasabiS3/7.12.1004-2023-02-17-7ff2f5bdd9 (R506-U08)
    < x-amz-bucket-region: us-west-1
    < x-amz-id-2: dDLcTi6bFxHdvdYBfwHtVRjh6lx3BruUontykF+xLAIUUfSJglnw8UIJXen2Gz7CdvR9q24yp7By
    < x-amz-request-id: 237778539203A505:A
    < Transfer-Encoding: chunked
    <
    <?xml version="1.0" encoding="UTF-8"?>
    * Closing connection 0
    <Error><Code>TemporaryRedirect</Code><Message>Please re-send this request to the specified temporary endpoint. Continue to use the original request endpoint for future requests.</Message><Bucket>teset</Bucket><Endpoint>teset.s3.us-west-1.wasabisys.com</Endpoint><RequestId>237778539203A505:A</RequestId><HostId>dDLcTi6bFxHdvdYBfwHtVRjh6lx3BruUontykF+xLAIUUfSJglnw8UIJXen2Gz7CdvR9q24yp7By</HostId></Error>%
  • d

    dave

    04/15/2023, 5:15 PM
    the two are completely different 😛
  • e

    Erisa | Support Engineer

    04/15/2023, 5:17 PM
    Okay - if you have a paid plan with support, can you open a ticket with us as well? And tell me the number
  • d

    dave

    04/15/2023, 5:17 PM
    what's weird is that in the same function (in the same Worker), I am uploading to four other S3 API endpoints, and those always work.
  • d

    dave

    04/15/2023, 5:17 PM
    one sec
  • e

    Erisa | Support Engineer

    04/15/2023, 5:17 PM
    Cos I've like, never seen that before
  • e

    Erisa | Support Engineer

    04/15/2023, 5:17 PM
    Nor has it been mentioned by anyone except you before
  • d

    dave

    04/15/2023, 5:23 PM
    https://support.cloudflare.com/hc/en-us/requests/2764191
  • d

    dave

    04/15/2023, 5:23 PM
    afk BBQ time, but will have discord on my phone
  • e

    Erisa | Support Engineer

    04/15/2023, 5:24 PM
    Ta, I actually aren't able to look at it until working hours anyway 😅
  • e

    Erisa | Support Engineer

    04/15/2023, 5:25 PM
    Just looks very strange so something I wanted to look at when I'm next on the clock
  • e

    Erisa | Support Engineer

    04/15/2023, 5:26 PM
    Wait it's Saturday not Sunday
  • e

    Erisa | Support Engineer

    04/15/2023, 5:26 PM
    my time perception is screwed up
  • u

    0xMetas

    04/15/2023, 5:37 PM
    Is it possible for a worker to receive UDP packets on port 53? I saw a post about Socket Workers, but can't find any information in the docs or in the workers UI. Trying to create a serverless DNS proxy.
  • d

    dave

    04/15/2023, 5:38 PM
    Is doing DNS-over-HTTPS an option for you?
  • c

    Cyb3r-Jok3

    04/15/2023, 5:38 PM
    It is not. Socket workers are still being worked on
  • u

    0xMetas

    04/15/2023, 5:38 PM
    Ideally want to support both
1...239723982399...2509Latest