[google-appengine] Re: "Request was aborted after waiting too long to attempt to service your request." sprees

2015-11-02 Thread Alexandra
Hi,

Did you find the reason of these errors?

I also see a lot of them. The time which is elapsed is about 10 min, so it 
seems that there are tasks that are stuck for some reason in the task queue.

Any insights on that?

Thanks
Alexandra

On Saturday, April 11, 2015 at 8:02:34 PM UTC+3, Kaan Soral wrote:
>
> "Request was aborted after waiting too long to attempt to service your 
> request."
>
> I've been seeing these messages a lot lately, momentarily many requests 
> log these errors, it floods the error logs
>
> Anyone else?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/aece30e7-9ee5-4f5b-95e2-775e91430eb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: "Request was aborted after waiting too long to attempt to service your request." sprees

2015-11-02 Thread Nick (Cloud Platform Support)
Hey Alexandra,

If you're experiencing an issue on the platform, the best way to report 
that issue and get help with it would either be to post on a Stack Exchange 
site (Stack Overflow  for example), in the case 
that you think the issue is related to your own code, or on the public 
issue tracker for App Engine 
, if, having 
followed all documentation and fully understanding the issue could not be 
in your code, you suspect that the issue might be on our side, which we can 
fix. 

Unfortunately, this thread contains next-to-zero useful debugging 
information other than some instance stats (F2 instance) and a vague 
indication that the error coincides with bursts of activity, so this thread 
can't really function as an issue report which is actionable.

So, I wish you or anybody else experiencing issues who reads this thread 
the best of luck in reporting your issue through one of the forms above, 
and hopefully with providing enough information, you can have someone help 
you out with a solution for your code or a tracking number for a solution 
to be patched, depending on the situation.

On Monday, November 2, 2015 at 10:48:57 AM UTC-5, Alexandra wrote:
>
> Hi,
>
> Did you find the reason of these errors?
>
> I also see a lot of them. The time which is elapsed is about 10 min, so it 
> seems that there are tasks that are stuck for some reason in the task queue.
>
> Any insights on that?
>
> Thanks
> Alexandra
>
> On Saturday, April 11, 2015 at 8:02:34 PM UTC+3, Kaan Soral wrote:
>>
>> "Request was aborted after waiting too long to attempt to service your 
>> request."
>>
>> I've been seeing these messages a lot lately, momentarily many requests 
>> log these errors, it floods the error logs
>>
>> Anyone else?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d54b3bd0-396b-48dc-a0f8-32b7168feca3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: remote_api/oauth2 to connect to remote_api of a locally runing dev server instance?

2015-11-02 Thread Nick (Cloud Platform Support)
To be as clear as possible, and since you might want to search this issue 
and land on previous similar issues, I should mention there are threads out 
there from past years where users had attempted and had limited success 
using "localhost" or "127.0.0.1" (with / without port suffixes), although 
given the age of such threads and the fact that such behaviour isn't 
documented anywhere, I wouldn't put much trust in these things. Your 
feature request could simply ask for a Development Server -oriented version 
of  "ConfigureRemoteApiForOAuth" which already exists in the python SDK for 
truly remote remote API use.

On Monday, November 2, 2015 at 12:52:52 PM UTC-5, Nick (Cloud Platform 
Support) wrote:
>
> You can connect to the Development Server's remote API in Java by following 
> the pattern used in the docs 
> 
>  
> (ctrl+f for "useDevelopmentServerCredential"). In the python docs 
> , 
> however, I don't see any such pattern. Checking into the source in the SDK 
> of remote_api_stub.py, there doesn't seem to be any methods similar to 
> useDevelopmentServerCredential() which would appear targeted at the 
> Development Server. I think you should make a feature request in the public 
> issue tracker  for 
> this.
>
> On Monday, November 2, 2015 at 12:58:23 AM UTC-5, A. Kong wrote:
>>
>> Hi,
>>
>> I have some client side scripts that use ClientLogin API to talk to 
>> google app engine backend remote_api.
>>
>> I am switching to use oauth2 in these scrips to connect to the remote_api 
>> of a google app engine instance. It is very straight forward so far.
>>
>> However this does not allow the local client to connect to a locally 
>> running dev server instance. It is because, first of all, dev_appserver.py 
>> does not support https.
>>
>> So how can I connect to a locally dev instance's remote_api with oauth2? 
>>
>> Cheers, Tony
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1e71ae41-f1e7-43e6-aa92-64db81aa315f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: remote_api/oauth2 to connect to remote_api of a locally runing dev server instance?

2015-11-02 Thread Nick (Cloud Platform Support)
You can connect to the Development Server's remote API in Java by following 
the pattern used in the docs 

 
(ctrl+f for "useDevelopmentServerCredential"). In the python docs 
, however, 
I don't see any such pattern. Checking into the source in the SDK of 
remote_api_stub.py, there doesn't seem to be any methods similar to 
useDevelopmentServerCredential() which would appear targeted at the 
Development Server. I think you should make a feature request in the public 
issue tracker  for 
this.

On Monday, November 2, 2015 at 12:58:23 AM UTC-5, A. Kong wrote:
>
> Hi,
>
> I have some client side scripts that use ClientLogin API to talk to google 
> app engine backend remote_api.
>
> I am switching to use oauth2 in these scrips to connect to the remote_api 
> of a google app engine instance. It is very straight forward so far.
>
> However this does not allow the local client to connect to a locally 
> running dev server instance. It is because, first of all, dev_appserver.py 
> does not support https.
>
> So how can I connect to a locally dev instance's remote_api with oauth2? 
>
> Cheers, Tony
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6cab5efb-f6de-48ed-8815-57d3e3009a28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: java.net.SocketException: Permission denied: Attempt to access a blocked recipient without permission. (mapped-IPv4)

2015-11-02 Thread Nick (Cloud Platform Support)
Ah, well that would be the problem then ;) Best of luck with your 
development!

On Saturday, October 31, 2015 at 8:58:55 AM UTC-4, FrEaKmAn wrote:
>
> Hello Nick
>
> I solved the problem. It was incorrect configuration (it was connecting to 
> 127.0.0.1 instead of the correct production IP).   
>
> On Friday, 30 October 2015 14:27:22 UTC+1, Nick (Cloud Platform Support) 
> wrote:
>>
>> Hey FrEaKmAn,
>>
>> Google Groups isn't the best place to post specific technical issues, as 
>> this forum is meant more for general discussion of the platform and 
>> services. 
>>
>> If you would like help with a technical issue on your end, you should 
>> post to stackoverflow [1] or serverfault [2]. 
>>
>> If you believe you've identified and can reproduce an issue with the 
>> platform itself (behaviour is different from documentation or error occurs 
>> during normal use), then you should proceed to open a public issue tracker 
>> [3] issue with enough detail to reproduce the issue on our side, or if 
>> possible, an attached app that can be used to directly observe the 
>> behaviour. 
>>
>> Your issue report contains not quite enough information to determine what 
>> is happening, even in the event that you did post it to one of those other 
>> locations, so I suggest adding more detail before doing so:
>>
>> * what connection code is responsible for triggering this stacktrace in 
>> your program? (You didn't post the full stacktrace)
>> * are there any special properties of the server you're connecting to?
>> * are there any other logs or information which is relevant?
>> * what's a brief description and history of what you've attempted in 
>> terms of fixing this?
>> * what kind of timeframe does this issue cover? has it always happened? 
>> just started? only during high load? etc.
>>
>> If you would like to open a thread in this forum discussing the platform 
>> or services in more broad terms, starting a discussion that would be useful 
>> for other users to join in to, feel free to do so.
>>
>> Have a great day!
>>
>> [1] http://www.stackoverflow.com/
>> [2] http://www.serverfault.com/
>> [3] http://code.google.com/p/google-appengine/issues/list
>>
>> On Thursday, October 29, 2015 at 5:02:01 PM UTC-4, FrEaKmAn wrote:
>>>
>>> Hi all
>>>
>>> I'm using RabbitMQ Java client to connect to external server. I'm 
>>> getting the following exception 
>>>
>>> java.net.SocketException: Permission denied: Attempt to access a 
>>> blocked recipient without permission. (mapped-IPv4)
>>>  at com.google.appengine.api.socket.SocketApiHelper.translateError(
>>> SocketApiHelper.java:108)
>>>  at com.google.appengine.api.socket.SocketApiHelper.translateError(
>>> SocketApiHelper.java:119)
>>>  at com.google.appengine.api.socket.SocketApiHelper.makeSyncCall(
>>> SocketApiHelper.java:85)
>>>  at com.google.appengine.api.socket.AppEngineSocketImpl.connectSocket(
>>> AppEngineSocketImpl.java:421)
>>>  at com.google.appengine.api.socket.AppEngineSocketImpl.connectToAddress
>>> (AppEngineSocketImpl.java:372)
>>>  at com.google.appengine.api.socket.AppEngineSocketImpl.connect(
>>> AppEngineSocketImpl.java:352)
>>>  at java.net.Socket.connect(Socket.java:612)
>>>  at com.rabbitmq.client.impl.FrameHandlerFactory.create(
>>> FrameHandlerFactory.java:32)
>>>  at com.rabbitmq.client.ConnectionFactory.newConnection(
>>> ConnectionFactory.java:619)
>>>  at com.rabbitmq.client.ConnectionFactory.newConnection(
>>> ConnectionFactory.java:648)
>>> ...
>>>
>>> Any ideas what this is happening? Should I enable something extra?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a6756953-dd18-4edf-82bf-4302629520ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Java SDK 1.9.28 - The Files API is disabled

2015-11-02 Thread Nick (Cloud Platform Support)
Hey Thomas,

Usually, a post like this should be made to the public issue tracker 
 with enough 
description of the issue that an engineer can locate the source of the 
problem (seems to be in the SDK from what I can tell just by looking at the 
code which you say triggers the stack-trace), or to Stack Overflow 
 in the event that you come upon not a clear 
platform issue but something which you think is a technical problem of your 
own system. 

This forum is more for general discussion of the platform and posting 
specific-issue technical support requests here doesn't generally work out 
very well.

However, in this case, I can be reasonably sure that I've identified the 
issue with even more specificity than indicated above:

If you're using version <0.5 of appengine-gcs-client, you should try to 
upgrade. In previous versions of the client library, the Files API was used 
by the library to interact with the Development Server. This has been fixed 
in 0.5 .

Feel free to respond with details if that fails to work for you, although 
be advised that the above qualifications still generally hold: this forum 
isn't for specific issue tech-support.

On Saturday, October 31, 2015 at 6:34:30 AM UTC-4, Thomas Wiradikusuma 
wrote:
>
>
> Hi guys,
>
> This code used to work, before upgrading to Java SDK 1.9.28:
>
> gcs.createOrReplace(
> new GcsFilename("myapp.appspot.com", "/gs/myapp.appspot.com/foo/bar.jpg"),
> new Builder().mimeType("image/jpeg").build())
>
> This is the exception:
>
> Oct 31, 2015 6:28:32 PM com.google.apphosting.utils.jetty.JettyLogger warn
> WARNING: /foo/bar
> com.google.appengine.tools.cloudstorage.NonRetriableException: 
> com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Files 
> API is disabled. Further information: 
> https://cloud.google.com/appengine/docs/deprecations/files_api
> at 
> com.google.appengine.tools.cloudstorage.RetryHelper.doRetry(RetryHelper.java:120)
> at 
> com.google.appengine.tools.cloudstorage.RetryHelper.runWithRetries(RetryHelper.java:166)
> at 
> com.google.appengine.tools.cloudstorage.RetryHelper.runWithRetries(RetryHelper.java:156)
> at 
> com.google.appengine.tools.cloudstorage.GcsServiceImpl.createOrReplace(GcsServiceImpl.java:70)
> at 
> com.hohero.servlet.AnnouncementImageUploadServlet.doPost(AnnouncementImageUploadServlet.scala:32)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> ...
> Caused by: com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: 
> The Files API is disabled. Further information: 
> https://cloud.google.com/appengine/docs/deprecations/files_api
> at 
> com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.callInternal(ApiProxyLocalImpl.java:515)
> at 
> com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:484)
> at 
> com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:461)
> at 
> java.util.concurrent.Executors$PrivilegedCallable$1.run(Executors.java:493)
>
> What needs to be changed? FYI I'm following 
> https://cloud.google.com/appengine/docs/java/googlecloudstorageclient/getstarted
>  
> - Writing a Byte Array to a Cloud Storage File.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4095dd94-30d8-4244-8e23-6f8e288725e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: ClassCastException for POST request via HttpsURLConnection in Java

2015-11-02 Thread Nick (Cloud Platform Support)
This post should be made at stackoverflow.com, rather than this forum. This 
forum is meant for more general discussion of the platform, not for 
specific-issue technical support.

When you make your post, be sure to include some more details which would 
help somebody to reason about your situation. This would include:

* any errors / stacktrace you see 
* whether the code is running in the development server or on production 
servers
* links to the old posts you found

On Saturday, October 31, 2015 at 9:34:33 AM UTC-4, ભાવિન દોશી wrote:
>
> Hello,
>
> I am trying to POST to an https URL, and I am getting following exception. 
> Multiple old posts from 2009/10 suggest that this is not supported by 
> google. Can someone clarify about the same:
>
> HttpURLConnection urlConnection = null;
> try {
> urlConnection = (HttpURLConnection) url.openConnection();
>
> urlConnection.setRequestMethod("POST");
> urlConnection.setRequestProperty("Content-Type", 
> "application/x-www-form-urlencoded");
> urlConnection.setRequestProperty("Host", facebookGraphUrl);
>
> byte[] postDataBytes = postData.toString().getBytes("UTF-8");
> urlConnection.setRequestProperty("Content-Length", String.
> valueOf(postDataBytes.length));
> urlConnection.setDoOutput(true);
>
> urlConnection.setConnectTimeout(5000);
> urlConnection.setReadTimeout(15000);
>
> urlConnection.getOutputStream().write(postDataBytes);
>
> //InputStream inputStream = urlConnection.getInputStream();
> //BufferedReader br = new BufferedReader(new 
> InputStreamReader(inputStream));
> //String line = null;
> //System.out.println("Response:");
> //while ((line = br.readLine()) != null) {
> //System.out.println(line);
> //}
> }
>
> If I use HttpURLConnection, with a http://website:443, then it does not 
> do the required work on the target website.
>
> Can someone help here please!!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3051196d-dd11-4c48-bdb7-dd407138222a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Java SDK 1.9.28 - The Files API is disabled

2015-11-02 Thread Nick (Cloud Platform Support)
Hey Thomas,

A post like this should be made to the public issue tracker 
 with enough 
description of the issue that an engineer can locate the source of the 
problem (seems to be in the SDK from what I can tell just by looking at the 
code which you say triggers the stack-trace), or to Stack Overflow 
 in the event that you come upon not a clear 
platform issue but something which you think is a technical problem of your 
own system. This forum is more for general discussion of the platform and 
posting specific-issue technical support requests here doesn't generally 
work out very well.


On Saturday, October 31, 2015 at 6:34:30 AM UTC-4, Thomas Wiradikusuma 
wrote:
>
>
> Hi guys,
>
> This code used to work, before upgrading to Java SDK 1.9.28:
>
> gcs.createOrReplace(
> new GcsFilename("myapp.appspot.com", "/gs/myapp.appspot.com/foo/bar.jpg"),
> new Builder().mimeType("image/jpeg").build())
>
> This is the exception:
>
> Oct 31, 2015 6:28:32 PM com.google.apphosting.utils.jetty.JettyLogger warn
> WARNING: /foo/bar
> com.google.appengine.tools.cloudstorage.NonRetriableException: 
> com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Files 
> API is disabled. Further information: 
> https://cloud.google.com/appengine/docs/deprecations/files_api
> at 
> com.google.appengine.tools.cloudstorage.RetryHelper.doRetry(RetryHelper.java:120)
> at 
> com.google.appengine.tools.cloudstorage.RetryHelper.runWithRetries(RetryHelper.java:166)
> at 
> com.google.appengine.tools.cloudstorage.RetryHelper.runWithRetries(RetryHelper.java:156)
> at 
> com.google.appengine.tools.cloudstorage.GcsServiceImpl.createOrReplace(GcsServiceImpl.java:70)
> at 
> com.hohero.servlet.AnnouncementImageUploadServlet.doPost(AnnouncementImageUploadServlet.scala:32)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> ...
> Caused by: com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: 
> The Files API is disabled. Further information: 
> https://cloud.google.com/appengine/docs/deprecations/files_api
> at 
> com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.callInternal(ApiProxyLocalImpl.java:515)
> at 
> com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:484)
> at 
> com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:461)
> at 
> java.util.concurrent.Executors$PrivilegedCallable$1.run(Executors.java:493)
>
> What needs to be changed? FYI I'm following 
> https://cloud.google.com/appengine/docs/java/googlecloudstorageclient/getstarted
>  
> - Writing a Byte Array to a Cloud Storage File.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/74bb4b4f-8c2a-403f-a940-0fc8d9700eda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: "Request was aborted after waiting too long to attempt to service your request." sprees

2015-11-02 Thread Kaan Soral
Yes, AppEngine can't handle bursts well, so the solution is to slow things 
down

Actually, there are speed limits on a lot of things that are usually not 
advertised well, if you are getting these kind of errors, try to slow 
things down and see how it goes

Slowing things down is also pretty challenging, much harder than building 
stuff that will scale

On Monday, November 2, 2015 at 6:48:57 PM UTC+3, Alexandra wrote:
>
> Hi,
>
> Did you find the reason of these errors?
>
> I also see a lot of them. The time which is elapsed is about 10 min, so it 
> seems that there are tasks that are stuck for some reason in the task queue.
>
> Any insights on that?
>
> Thanks
> Alexandra
>
> On Saturday, April 11, 2015 at 8:02:34 PM UTC+3, Kaan Soral wrote:
>>
>> "Request was aborted after waiting too long to attempt to service your 
>> request."
>>
>> I've been seeing these messages a lot lately, momentarily many requests 
>> log these errors, it floods the error logs
>>
>> Anyone else?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e5949fb2-50fd-41d2-b0f7-7ba5bd441b58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.