GET request to Brightcove returns 200 OK
using requests but 404 NOT FOUND
in httpx
#3416
Replies: 3 comments
-
Thanks. Yep that’d be my next step here too. Could be possible they’ve been spammed by a different user of httpx and are using digital fingerprinting to prevent misuse? |
Beta Was this translation helpful? Give feedback.
-
Going to convert this into a discussion since it’s not a reproducible issue, presumably something being done server side? Please do follow up the convo tho. |
Beta Was this translation helpful? Give feedback.
-
Yes, absolutely. Meant to reply, sorry. I'll be sure to follow up once I work with Brightcove. We use this module elsewhere in our codebase without issue and this just started happening out of the blue, which suggests that it's coming from the server. |
Beta Was this translation helpful? Give feedback.
-
Hello! We've been using
httpx
. when fetching videos from Brightcove. Last week we noticed a large spike of 404s coming back and we couldn't figure out why. Running out of ideas, we swapped to using therequests
module and lo and behold we started getting 200s again! The good news was that we resolved the issue; the bad news is that it's about as unsatisfactory a resolution as you can imagine.We were using 0.27.0 in production, but for testing purposes prior to creating this issue, I used 0.27.2.
In the course of trying to figure it out, I can't discern anything different between the two modules. I also can't really provide steps to reproduce this due to needing authentication to execute the request. But basically, I tried the following (including the script with redacted information):
httpx
andrequests
. The former gave me a 404, the latter gave me a 200.curlify2
to translate the requests into CURL commands. The output looks identical; the only difference is that inrequests
there is a literal"None"
in-d
whilehttpx
has'b'''
.We're planning to speak with Brightcove to see if they have logs that give us more information, but I wanted to flag this to the project to see if there's something else going on. Thank you!
Here is the output of
curlify2
:Beta Was this translation helpful? Give feedback.
All reactions