Got blocked by Google Finance - google-chrome

I was trying to write come code for stock market predictions and everything was working fine until it suddenly stopped working and threw an error:
----> 1 get_price_data({'q': 'GOOG', 'i': 86400, 'x': 'NASDAQ', 'p': '1Y'})
/usr/local/lib/python3.6/dist-packages/googlefinance/client.py in get_price_data(query)
12 for price in lines:
13 cols = price.split(",")
---> 14 if cols[0][0] == 'a':
15 basetime = int(cols[0][1:])
16 index.append(datetime.fromtimestamp(basetime))
IndexError: string index out of range
I went to http://finance.google.com/finance/info?client=ig&q=NASDAQ:GOOG
and it said there " We're sorry... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now." ............
So i googled it and on the help page it said "
If you see a message that says "We're sorry, but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.":
Open this reCAPTCHA page.
If you see a normal CAPTCHA (letters or numbers) your computer and network are safe. The site you came from could have a configuration problem. Try to let them know about it.
If you still see the "We're sorry, but your computer..." message, then there may be something wrong. See the tips at our unusual traffic help page.
"
but clicking on "this reCAPTCHA" sends me to as error page "Not Found Error 404"
What do I do?
I tried asking on the Google forum, and immediately got a bunch of hacker responses asking to install remote desktop control :\ ...

Related

MediaWiki, trying to investigate VisualEditor "Error contacting the Parsoid/RESTBase server (HTTP 500)"

A lot of people have the same error for many different reasons, so, after trying a composer update, I've tried to investigate it starting from the browser and reconstructing step by step what is happening. It's really hard for me and I would really appreciate help from a PHP Developer!
From Chrome Developer Tools I could find the Ajax request in the background and the called url on the server
By playing with the url I realized that changing the action name returned a different error code, which let me understand that the current call is just a generic API in the middle between the browser and whatever is "apierror-visualeditor-docserver-http"
The Ajax call
{mysite}
/ api.php
? action=visualeditor
& paction=parse
&page=Cosa_c%27%C3%A8_da_fare%3F
Example
https://www.tematichedigenere.com/api.php?action=visualeditor&paction=parse&page=Cosa_c%27%C3%A8_da_fare%3F
The response from the Ajax call
The serverside call to rest api
Then I can see from the Apache server's log that the api page contacts the following url (returning 500)
GET
//rest.php/
{mywebsiteurl}
/v3/page/html/
Cosa_c%27%C3%A8_da_fare%3F/27246
?redirect=false
&stash=true
example
"GET //rest.php/www.tematichedigenere.com/v3/page/html/Cosa_c%27%C3%A8_da_fare%3F/27246?redirect=false&stash=true HTTP/1.0" 500 5621 "-" "VisualEditor-MediaWiki/1.38.2"
Another example of log (returning 404)
{an IP} - -
[04/Dec/2022:14:16:12 +0000]
"POST
/rest.php/
{mywebsiteurl}/v3
/transform/html/to/wikitext
/Riflessioni_sulla_sessualizz._femm._collegate_-_bozza%2Fprova
HTTP/1.0"
404
467
"-"
"VisualEditor-MediaWiki/1.38.2 X-Middleton/1"
Maybe the initial double / is wrong?
Anyway if I call the uri directly from my browser https://tematichedigenere.com/rest.php/www.tematichedigenere.com/v3/page/html/Cosa_c%27%C3%A8_da_fare%3F/27246?redirect=false&stash=true
The server does a antirobot check but I'm not sure that was the problem.
I've realized that the 500 error code hides a more complex real error which is returned by accessing directly the url from the log.
As you say, the visualeditor API is mostly just a proxy to the Parsoid API. The double / is wrong (check your $wgVirtualRestConfig settings maybe), I don't think it actually matters though. The error sounds like you are using incompatible library versions - make sure MediaWiki core and the VisualEditor extension are for the same release, and that the parsoid Composer library is up to date.
Update from OP:
the issue was solved. I simply had to delete the folder /vendor/wikimedia/parsoid and copy it from the fresh install. I couldn't see there were disalignment because of a problem in the compare tool. I got a lot of help in the IRC channel (not in Phabricator and not in Mediawiki forums, it seems IRC is really helpful for MW products).

HTTP Communication failure - 500 Native SSL error

We are using Google API to compute mileage for our travel. Everything was working fine for over 1 year, however we started having the below said issue in the last couple of months.
Our program is able to connect to the API, the API returning with the error message http_communication_failure. The exact error is Application Server
Error 500 Native SSL error
Error is logged with Tag: {0001fee7}Thu Jun
21 09:36:49 2018
When I pasted the URL in the browser, it is returning the mileage information. However through the API call (receive data) in the program, we are getting this error message.
No program changes or Certificate changes have been done in the last 1 year. Our Basis team looked in to the possible issues with SSL. Everything seems to be OK from our end. I looked through your troubleshooting page, and tried all the suggested solutions. Nothing seem to fix our problem. Please let us know what else we need to look at.
CONCATENATE 'https://maps.googleapis.com/maps/api/distancematrix/xml?origins=' lv_dep '&destinations=' lv_arr '&units=imperial'
'&key=' lv_key
INTO lv_http_url.
CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = lv_http_url
ssl_id = 'ANONYM'
IMPORTING
client = lo_http_client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
others = 4.
IF sy-subrc EQ 0.
lo_http_client->send( EXCEPTIONS http_communication_failure = 1
http_invalid_state = 2 ).
CALL METHOD lo_http_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
others = 4.
See if port 443 is create in Trns: smicm, if you can't see it, create it.
increase the trace in menu go to->trace level.
call Appi and see log.
if you see a error about SSL, export the certificate from your PC, I supose is "google trust service".
go trns: STRUST in SAP and inport the new certificate.

API.ai Google Home Web Simulator error: "Bot isn't responding now. Try again soon." Error: Failed to parse SDKResponse from http_response

I restored an agent (working agent), using Restore from Zip option in API.ai. I tested the agent in API.ai and it worked successfully.
But when I try to integrate it with Google Home, and test it with the Google Home Web Simulator, I get the error:
"Bot isn't responding now. Try again soon."
Here is the Response Json:
"Failed to parse SDKResponse from http_response: 'HTTP/1.1 200 OK\r\nContent-Type: application/json;charset=UTF-8\r\nContent-Length: 230\r\nConnection: keep-alive\r\nDate: Tue, 09 May 2017 07:13:04 GMT\r\nServer: nginx/1.11.2\r\nAccess-Control-Allow-Credentials: true\r\nAssistant-Interaction-Error-Code: 1\r\nAssistant-Interaction-Error-Message: Empty speech response\r\nCache-control: no-cache=\"set-cookie\"\r\nSet-Cookie: AWSELB=9D5B4D210CCFFAF1BE1E0CD7C7E6FCBD7B46140CAAB35B563903DCE43FCC26342E3F89041AE3FE415E45579D21DA955B71D82B5CBB83188E876559AECB9AFBA466D1A80189;PATH=/\r\nX-Cache: Miss from cloudfront\r\nVia: 1.1 3212ba6c9a2d0009095ca19f00206ff3.cloudfront.net (CloudFront)\r\nX-Amz-Cf-Id: LUDwKPkUCwQJuK1elUUy3ZUZXTz-qcegNKGMUJv5Hb4k2a_ea2tRqg==\r\n\r\n{\"message\":\"Empty speech response\",\"apiResponse\":{\"id\":\"cd783d0c-11ab-438a-91ac-167f7998d678\",\"timestamp\":\"2017-05-09T07:13:04.382Z\",\"lang\":\"en\",\"result\":{},\"status\":{\"code\":200,\"errorType\":\"success\"},\"sessionId\":\"1494313984341\"}}'"
I would appreciate any help.
Thank you.
EDIT : SOLUTION
Reading the Response JSON, I noticed: Empty speech response. I rechecked my API.ai code and noticed that one of the Intents (in my case the Default Welcome Intent) was giving output Empty speech response. While on the console of API.ai this is not an issue, when you try linking to Google Home Web Simulator, it doesn't work. So in case you have a similar issue, maybe the first step of troubleshooting is figuring out which Intent is giving Empty speech response.
Hope this helps anyone else who faced a similar problem.

Expected response code 250 but got code "451", with message "451 4.2.0 92AC1r00M3X6cxD012AChG Message can't be accepted "

i would like to send email from action symfony 1.4 but i have this Swift_TransportException:
Expected response code 250 but got code "451", with message "451 4.2.0 92AC1r00M3X6cxD012AChG Message can't be accepted
"
Have you got any further info on your apache error log ?
Your SMTP response code of 451 indicates that you're connecting ok to your server but this one is not being able to process your message. Are there any limitations with your account ?
The "4.2.0" bit could indicate a Timeout communication problem.
Are you having this problem consistently ? Or has it just stopped working ?
Try the following :
-> "Message can't be accepted" clue :
In case there's a problem with your message try with a simpler message (one liner, no attachements, just the simplest of messages)
-> account clue :
In case there's a problem with your account (spamfilter, or some other limitation) try with a different account.
-> network / infrastructure problems :
Try a different mail server. (You can use something like mailchimp, mailjet, sendgrid, or some other third party email provider. See a comparative list here.)

ssis send mail task: Error: An error occurred with the following error message: "The operation has timed out."

SSIS package in question runs a series of stored procedures and fills 13 different excel files with results and sends those excel files to 13 different users in attachments. Package run stops with the message in the title of this question, sometime right in the middle of sending or for example today, on the 4th user. The files get created because I can see them in their directories so only the send mail task is failing. When I go back to visual studio and execute each send task manually, send task works fine even though sometime it still gives me the error yet, still sends the right file to the right person but not thru SSIS package run in SQL server... I tried to delay SMTP processes thinking that might be in the way (to 660000 miliseconds) but did not help. Has this happened to anybody?.. Thanks for all your answers in advance.
Here is the full message for a task that sent the e-mail with attachment regardless the error when task was manually executed...
[Send Mail Task] Error: An error occurred with the following error message: "The operation has timed out.".
Progress: The SendMail task is completed. - 100 percent complete
Task Send Mail Task for Inventory Reports 038 failed
Finished, 12:03:03 PM, Elapsed time: 00:00:00.655
I think I figured it out why this was happening. In case somebody / anybody is interested, here is what I think has happened.
I was trying to expand the timeout period thru a script task, playing with Threading.Thread.Sleep value but I neglected to do the same in my SMTP connection properties. When I changed the timeout value in properties for SMTP connection, error messages stopped coming :)
I wish I could post a picture to show you where exactly that property is located but my reputation failed me!.. :( (less than 10 points yet)
I am in the process of completing all of my changes then I will post again with final result hoping that will resolve all of my problems.
Thanks to all who showed interest.