New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure api change - image search Endpoint change in Azure - 'PermissionDenied' Error Lesson 2 #341
Comments
Potentially a hacky workaround, but looks like redefining the function search_images_bing to the following will work temporarily (at least to extract images, still working through the rest of content, will update with further issues)
|
This works! But is anyone looking into this? Kinda disappointing to get stuck in Ch. 2. |
So full list of changes to make to have this work for the grizzlys are the two below
It's also just been Thanksgiving and the old API is still supported so only people who were making new accounts from scratch would have caught this error - it's likely the CI test harness is still working with the current version! Hope this helps. |
@bkaCodes Can confirm this works, thank you! |
Fixed now |
Hi,
I can't complete lesson 2 - I have an API key for Bing Images search v7 but it seems this resource changed at the end of October 2020 and this change isn't yet incorporated into the code (Azure update). Azure does say that it will support the older Cognitive Services API for the next 3 years, but unfortunately it appears that is only for pre-existing users as I cannot find a way to subscribe as a new Azure user.
Fundamentally from a code perspective, it appears that the endpoint changed from that used in the code (fastbook/utils.py):
When I try to run this in the notebook I get a 'PermissionDenied' error which I think is due to this change in APIs from Azure - if so, my theory on the error is this will likely need to be refactored from using the older https://api.cognitive.microsoft.com endpoint to use the new endpoint - https://api.bing.microsoft.com/.. I did attempt a naïve endpoint replacement (wishful thinking I know!) but that unfortunately didn't work.
I've tried on Collab, Paperspace, attempted a local install (hit other issues there) and tried a million different ways to get a Bing search API key via Cognitive Services but it does appear the guidance included on the forum here (referenced on the main fast.ai course page here) is no longer applicable (or I've done something silly - hopefully!).
Unsure how to continue in this lesson without this resource - safe enough to move onto the next? Or perhaps I've done something very incorrect and feedback would be appreciated.
Thanks for any advice/guidance/fixes!
Rebecca
The text was updated successfully, but these errors were encountered: