#Weird Bug

1 messages · Page 1 of 1 (latest)

pure shoal
#

Hey!
I'm running into a thing that I think is a bug.
When a I run a request to my worker hosted in CF my service works correctly but when I try to do it in localhost I get the following error and in html

<html>

<head>
    <title>400 Bad Request</title>
</head>

<body>
    <center>
        <h1>400 Bad Request</h1>
    </center>
    <hr>
    <center>cloudflare</center>
</body>

</html>
#

also when I try to log something it doesn't even log

keen relic
#

Are you trying to do a GET with a body?

pure shoal
#

And its only with this request

#

its a DELETE

#

it cant have a body?

#

it used to work before

keen relic
#

It's not in the spec afaik

#

But I doubt it did - I know that's been happening with gets for at least a year

pure shoal
#

yep it used to work, I wouldn't have deployed it other wise

#

but let me try with a post

#

yep, that fixed it

#

weird, but thanks!

keen relic
#

You could make a wrangler issue for this if you wanted, but if anything prod is the one behaving incorrectly here 😅

pure shoal
#

I see, thanks!

upbeat cedar
#

There's two open issues on wrangler for it