This was generally helpful thank you. In case I’m not the only one with this issue even after thinking I went through all the above steps correctly, pointing me to the “You might also be interested in” section and showing all led me to fix it.
My problem was I had the Bing Search APIs, but there is apparently a difference between the regular Bing Search API, and Bing Search APIs v7. Adding the v7 one fixed it for me. Adding screenshot below for clarity.
I don’t think Access Denied is the same as Permission Denied, need more info posted on what you are doing.
As the response code from the request is not actually seen in the stack trace it would need to be found using debug. A fault is anything other than the code 200
Searching through the response codes at HTTP Response Codes there are no direct matchings for ‘PermissionDenied’ and ‘Access Denied’. They are perhaps AZURE specific. A search of the AZURE python code in
Other than that take the advise given by the other posters in this post.
I believe Jeremy did not intend for AZURE to be the definitive image search but was left with it as a compromise. Also AZURE interface may be changed at any time, so expect new behaviour to occur.
It maybe that one relates to a good key value and some other security issue, or else a bad key and then a direct failure.
I have been having the same issue although I changed it in the utils.py file that is installed in my notebook. Still the same issue.
It appears though it is calling another the file from following path which I cannot find to alter the code:
I can confirm this works wonderfully and I’m grateful for the solution.
(In my case, I preferred to give this function a new name, not overwrite the initial one.)
Also, it’s very easy to forget to change content_url to contentUrl, this might first thing to look at if errors.
These instructions no longer work - the Bing images search is no longer in Cognitive Services - the new endpoint is https://api.bing.microsoft.com/ . I got the key by going to BingImages > Keys and Endpoint but can’t get it to work with the Fast Ai api; I get a Permission Denied error. When I try out the key using example code from Microsoft I don’t get an error.