newspaper article ArticleException - heroku

When I test the different requests of my API locally it works but when I host it on Heroku I get an error:
newspaper.article.ArticleException: Article `download()` failed with Exceeded 30 redirects. on URL

Related

What's the http status code if a site key exceeds 1000 QPS for recaptcha?

in recaptcha document, it says that if a site key exceeds 1000 QPS, then some requests may not be processed, I am wondering how I can identify this error if this happens? I assume a http code of 429 is thrown by google server?
The reCAPTCHA-specific quota page links to a more general Google API quota page that says
If you exceeded a quota with an HTTP/REST request, Google Cloud returns an HTTP 429 TOO MANY REQUESTS status code.
If you exceed a quota with an API request, Google Cloud returns an HTTP 413 REQUEST ENTITY TOO LARGE status code.
If you exceeded a quota using gRPC, Google Cloud returns a ResourceExhausted error. How this error appears to you depends on the service.
If you exceeded a quota using a Google Cloud CLI command, the gcloud CLI outputs a quota-exceeded error message and returns with the exit code 1.
Since you mention HTTP, I imagine you're in one of the first two categories. If you're going through their REST interface, you'll get 429. If you're going through the API, you'll get 413.

Google Translate works well on localhost but throws `429 Too Many Requests` error on the live server

I am using this Laravel google translate package to translate the website based on the user's locale. I configured everything well and the translation seems to work quite well on the localhost. However, when I upload the website to the server, google translate throws error 429 too many requests:
[2020-09-17 08:04:03] production.ERROR: Client error: `GET https://translate.google.com/translate_a/single?client=webapp&hl=en&dt=t&dt=bd&dt=at&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&sl=auto&tl=en&q=Canl%C4%B1+Bahisler&ie=UTF-8&oe=UTF-8&multires=1&otf=0&pc=1&trs=1&ssel=0&tsel=0&kc=1&tk=40965.430971` resulted in a `429 Too Many Requests` response:
I have tried searching for the cause of the error and found this post in google groups talking about exceeded quota but I don't think that applies to my case since I am only translating a few texts that can't get to that limit. Does someone have an idea on how to solve this?

getting error response in jmeter while testing google site

while during load testing for one site through j meter getting below
error:Response code: Non HTTP response code:
org.apache.http.conn.ConnectTimeoutException Response message: Non
HTTP response message: Connect to 172.17.4.213:80 timed out
You most probably didn't configure the proxy for JMeter as per:
http://jmeter.apache.org/usermanual/get-started.html#proxy_server
Look at your browser (where request works) proxy configuration for the settings.
I think you should check your URL/ip address is pointing to your code properly by some online ping tool. And If it is working, check if your network is not blocking site access.

woocommerce checkout ajax 500 error

I have updated the woocommerce plugin in my site to version 2.6.0 recently and now I am facing a 500 error during checkout and this error message changed as per the payment method.
I have couple of payment methods as Direct Bank Transfer and Cash On Delivery.
When I use Direct Bank Transfer I am getting an error message error Internal Server Errorand in browser console I am able to see the problem is with http://example.com/checkout-2/?wc-ajax=checkout Failed to load resource: the server responded with a status of 500 (Internal Server Error)
On the other hand when I user Cash On Delivery as payment method I am seeing an error String could not be parsed as XML.
Anyone facing similar issues with woocommerce? not sure if this is because of plugin update or any other function.
I figured it out myself finally. The problem is I messed up with the woocommerce email templates. When I undid all the changed in email templates the order slow started working normally.
During the debug process I noticed that though I get the Internal Server Error the order is getting posted successfully and is visible in woocommerce admin so I was getting the errors all this while due to changed email templates where I failed to pass the order data properly into emails.

Intermittent Http Error 403 When Invoking Google Custom Search API

I'm getting the following error intermittently when invoking the custom search api from a server side setup:
HttpError 403 when requesting https://www.googleapis.com/customsearch/v1?q=John+Doe+john%40simpler.com&alt=json&cx=&key= returned "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.
I'm using a server api key, and have confirmed that the configured server ip address is correct. And about 50% of the time my request come back fine, too. I'm issuing the request from the server like this:
service = build("customsearch", "v1",
developerKey=api_key)
custom_search_context = <my_context>
res = service.cse().list(
q=search_query_string,
cx=custom_search_context,
).execute()
My requests per sec are well with in the configured limit of 10/sec and daily purchased limit of 5000 requests.
One more thing I noticed is that Google counts a forbidden request towards the daily limit, too.
Any pointers on why I'm being presented with the error only intermittently would be very helpful
The error can be raised when you're exceeding a request/second limit. Can you confirm that your request rate is below your configured user rate limit? It might be worth noting that the limit is enforced even if you don't explicitly provide a user value in your requests.

Resources