Closed davesenior9 closed 1 year ago
We see the same issue here. If you print out response.status and response.reason, it shows that 400 Bad Request. This seems mean the incorrect header/data is posted to server. But why it happened?? Not sure what's wrong???
Odd stuff! What OS are you on @davesenior9 and @EbonyHuang ? I'll have to spin up my macOS dockers to see if I can reproduce. Do both the request_reports.py
and FindMy_client.py
fail for you? (it might be related to the startDate
and endDate
fields, I've noticed some server-side changes in that area).
For both BigSur and Monterey OS, the request_report.py has the same failure. It all works couple days ago. Thank you.
Looks like it is the https body(search) contain the single quote ' in the "ids" list, when we replace that single quote to be double ". It seems work again. add this line before do the https post. data = data.replace("'",'"')
awesome work. thats fixed it for me. I would be interested to know what caused this. Some sort of change on the Apple gateway?
Well done @EbonyHuang ! The ids
list was a bit hacky indeed, I guess Apple updated a json parser somewhere, not allowing single quotes anymore. I'll put in a fix when I find the time.
Reopening because this definitely needs the fix by @EbonyHuang
got the same issue, response was 0 len i think it fails in
def do_OPTIONS(self):
self.send_response(200, "ok")
before
def do_POST(self):
is called
had to replace six with flask.
@mrx23dot the fix is already given in https://github.com/biemster/FindMy/issues/20#issuecomment-1490910909, I just need to push that to the repo. In the meantime you can just add that in your clone.
This should be fixed now in both the catalina and monterey branches. Also main of course but that is undergoing major overhaul at the moment, to abolish the requirement of a mac altogether.
Have you encountered this before? I have automated the polling of this script, and had it running for a few days. It abruptly stopped and generated this error. Restarting the script made no change. If i go back to vanilla OHS and use the GUI, it updates fine.
Thanks!
Additional Info drawn from response headers.