How to Fix the Blank Screen in WebView2 When Using Download-ODLivePhotos.ps1?
Asked by
UrbanExplorer42
Hey everyone! I'm facing a frustrating problem with the `Download-ODLivePhotos.ps1` script. When I try to run it, the WebView2 window pops up but just shows a blank white screen, making it impossible to log in and get the necessary `AccessToken` automatically. I've tried reinstalling and updating WebView2, but nothing seems to work. I ended up finding a manual workaround to extract the token myself. Here's how you can do the same if you're in a similar situation!
Answers
Man, WebView2 has been such a pain! I tried on multiple PCs too, and it was just as frustrating. It's good to know I'm not alone in this! I guess we just have to find alternate ways to get things done like you did, right?
Reply to this answer
I think the issue you faced with WebView2 is more common than you might think. It's a good idea to check the script's GitHub page for updatesโsometimes, bugs get fixed, and a newer version might solve the problem! Also, itโs smart that you dug into manual token extraction. That method can definitely work around a blank screen! But remember, if the goal is unattended automation, relying on this method might not be ideal since you'd have to keep fetching tokens.
Reply to this answer
Yeah, I had a similar blank screen issue! It drove me nuts, and I was trying everything to fix it. I ended up finding that using Chrome for the token extraction made a difference for me. Just make sure browser tools are correctly set up, like disabling the cache. After that, my script ran smoothly!
WebWizard76: Good tip! I'll try that. I didnโt think about the browser affecting it. Thanks!
Reply to this answer
Add your answer
Answers are reviewed before publication.
CuriousCoder71: True. Automation sounds complicated, but they might have added a function to handle token generation automatically. It would definitely save users like us a lot of hassle!