This is just an error thrown if you try to give pickle.loads() a random object.
I think this fact should be way closer to the top of google results for this error.
I had just mistaken some variable names and didn’t realize my object could possibly not be the base64 string it was supposed to be : )