Open sblack4 opened 4 years ago
Thanks for submitting this issue!
Being able to follow 3xx redirects sounds like a good idea for this library, since the FEC might some day migrate their URLs.
That said, I wasn't able to reproduce this issue. I think this may have been fixed in https://github.com/esonderegger/fecfile/commit/dc923ed0a688586070033e8115a709f9c60cfe1d
Could you please verify that you are running version 0.6.3 or the current master
branch. If so, what is a file number where you are seeing a redirect?
You might be right, I'm having trouble reproducing this locally. I have a few lambdas using this library and that error has been an intermittent problem. I'm using library version 0.6.3
but I'm hoping the extra error info from #25 helps elucidate the cause. 🤞
https://github.com/esonderegger/fecfile/blob/dc923ed0a688586070033e8115a709f9c60cfe1d/fecfile/__init__.py#L125
It looks like the code only allows for redirects on
404
s but doesn't have a condition for300
sIssue
I keep getting a
FilingUnavailableError
:But when I
curl
that filing I get a 307 and 200 so it seems the filing is available: