Closed martynasb closed 8 years ago
@goferito All mocha tests are failing for me.
Hi,
I've been trying to reproduce that error but it works perfectly fine to me. I have even tried with your access key and searching for facebook (just in case xD), and still works fine. All the tests pass. Btw, tests need you to create the secrets.js
from the secrets.js.example
file, and to add your access key.
So, if you are using the module properly (what I think you do if it was working before), I guess that the problem is a timeout problem, which could be caused by a connectivity problem between your machine and the bing server. The module is forming the request properly.
Regarding your access key, I'd advise you to change it since you have published it here.
@goferito thanks for looking into this. Yes, I have created the secrets.js file.
It's very odd: i'm getting the same problem on my heroku app, my localhost app, Microsoft Bing Search Interface and your the node-bing-api module when i run the tests...
@goferito ok i'm not the only one https://social.msdn.microsoft.com/Forums/azure/en-US/7f2c3522-b012-4c45-9223-f9c551d1af48/bing-search-api-error-502?forum=DataMarket
Ok, then it looks like a MS problem. Maybe it works fine for me because of my geo location, and I'm making the request to a mirror that is working fine. I have run the tests successfully from germany and florida though...
Maybe you can try to proxy from somewhere else until the problem is solved
403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied.
I got this error with several Bing API wrappers, does MS change their API policy?
My access key works fine.
They changed it when they switched to Azure. Therefore this module.
@goferito, my fault, I just did not sign up for the search API. Thank you for the help.
Hi,
As of 1PM today I started getting the following error in response.body: "The request resulted in a backend time out or backend error. The team is investigating the issue. We are sorry for the inconvenience". HOWEVER, sometimes (1 in 50 times) it works just fine.
Here's what Microsoft say about this kind of error: https://azure.microsoft.com/en-us/documentation/articles/machine-learning-marketplace-faq/ Your input parameter(s) may not conform to the required format for the specific web service. Please refer to the corresponding documentation link to find the correct format for input parameters and the limitations of this web service.
I checked my other app which is running on Django and does not use a plugin to connect to Bing Search and it's working fine. Any ideas?
Code (additional functions included just for reference):
Response: