Re: [google-appengine] Re: Hidden usage of frontend instance hours

2022-04-26 Thread Diego Crapper
Hello, Ernesto.

Thank you for your reply.

If I remember correctly, setting min_instances = 1 and max_instances = 1
created problems when I tried it. I assume it's a problem when Google needs
to move the app to a different server, update the underlying software and
such.

Regardless, I haven't made any changes since November 3, 2021, and the
billing issues only began last month. There hasn't been any noticeable
increase in traffic, so what changed?

This is my billing report chart:
[image: screenshot.1.png]

Thanks again.



On Tue, Apr 26, 2022 at 7:27 PM 'Ernesto Contreras Pinon' via Google App
Engine  wrote:

> The documentation 
> shows that when instances are increased, instance time is accrued for 15
> minutes after the last request to the instance. This could explain a
> possible accruing of cost that adds up per month. You could try setting an 
> upper
> limit
> of
> 1 instance, so that if an additional instance is created automatically by
> App Engine, it does not use up instance time
> . Do you see other
> costs that might be also adding up from related services? You can filter
> the billing report table
> 
> for your project to see detailed costs of your usage for App Engine.
>
> On Tuesday, April 26, 2022 at 6:55:28 AM UTC-5 di...@sinopsis.com wrote:
>
>> Hello.
>>
>> I have a single service running on App Engine. It's a very-low-traffic
>> website, so I've set it to always have 1 instance running, to avoid lengthy
>> cold starts when someone does visit. It's been running with no problems for
>> a couple of years or so. It always stayed within the free tier. I haven't
>> made changes to it in at least several months.
>>
>> However, since around mid-March, I've been getting charged for extra
>> instance hours. I've checked the console and everything seems normal. The
>> instances chart shows a straight line on 1, with occasional spikes to 2
>> which last for maybe five minutes every couple of hours or so, which is
>> normal due to restarts and such, and certainly doesn't seem enough to go
>> over the 28 free hours per day. Right now, for example, it says that I've
>> used 19 hours today, and that the quota will reset in 5 hours, so 24 hours
>> total.
>>
>> And yet, I keep getting charged. Not a lot, it adds up to maybe 3 or 4
>> dollars a month, but still, I don't know where it's coming from.
>>
>> Did App Engine change something about how hours are billed around
>> mid-March? Any ideas on how to check what's going on?
>>
>> Thanks!
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-appengine/VGJlSAlqbjk/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-appengine+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/df1d17f0-211f-443b-a803-cf8a53d78289n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAOVkKbgai8fUP2_V7KDz3Wq_1neP8OQObO3mNc3gNe5v0zXc1Q%40mail.gmail.com.


[google-appengine] Hidden usage of frontend instance hours

2022-04-26 Thread Diego C.
Hello.

I have a single service running on App Engine. It's a very-low-traffic 
website, so I've set it to always have 1 instance running, to avoid lengthy 
cold starts when someone does visit. It's been running with no problems for 
a couple of years or so. It always stayed within the free tier. I haven't 
made changes to it in at least several months.

However, since around mid-March, I've been getting charged for extra 
instance hours. I've checked the console and everything seems normal. The 
instances chart shows a straight line on 1, with occasional spikes to 2 
which last for maybe five minutes every couple of hours or so, which is 
normal due to restarts and such, and certainly doesn't seem enough to go 
over the 28 free hours per day. Right now, for example, it says that I've 
used 19 hours today, and that the quota will reset in 5 hours, so 24 hours 
total.

And yet, I keep getting charged. Not a lot, it adds up to maybe 3 or 4 
dollars a month, but still, I don't know where it's coming from.

Did App Engine change something about how hours are billed around 
mid-March? Any ideas on how to check what's going on?

Thanks!

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4e51c3af-1d88-4cc5-ba8e-a0267a5b6da0n%40googlegroups.com.


[google-appengine] Re: Doesn't the App Engine free tier include southamerica-east1?

2020-04-08 Thread Diego C.
OK, after more research, I think I know what happened.

When I first started this service, I deployed two versions with errors that 
crashed the app as soon as it started. As I said, I was just testing 
things. I deployed a properly working app within a few of minutes. However, 
judging by the logs, it seems like App Engine continuously tried (and 
failed due to the errors) to launch instances of the old versions, at a 
rate of around once per second per version, for days. These old versions 
had no traffic routed to them. I suppose that these 
fractions-of-a-second-per-second that the instances were running, 
eventually added up to several hours per day. The instances were up for 
such short times that they don't appear in the chart, except for the 
occasional spike.

I guess it's my fault for deploying apps with errors, but I think that 
this definitely could be handled better by App Engine. One doesn't expect 
non-functional, old versions to be kept running.

Diego



On Wednesday, April 8, 2020 at 9:08:28 AM UTC-3, Diego C. wrote:
>
> Hello, Mary.
>
> Thank you for your reply.
>
> I did some further research. I was in fact charged for more than 28 
> instance hours per day for 3 days, starting on April 4 (when the service 
> was started) and ending April 6. I shut down the project around noon on 
> April 7, so it didn't go over the quota that day. For example, on April 5, 
> it was 38.94 hours:
>
>
> [image: screenshot.4.png]
>
>
>
> However, I restored the project so I could take a look at the dashboard, 
> and this is the chart of instances used:
>
>
> [image: screenshot.3.png]
>
>
>
> You see that it spends most of the time running 1 instance (I set 
> min_instances to 1 in app.yaml) with a few spikes which were apparently 
> caused by old versions starting up an instance for a short time every once 
> in a while. However, that doesn't account for over 10 extra hours on April 
> 5 alone, and even more hours on April 4, which only had one spike.
>
>
> I had no other projects using App Engine.
>
>
> What am I missing?
>
>
> Thanks again!
>
>
> Diego
>
>
>
>
>
> On Wednesday, April 8, 2020 at 12:21:07 AM UTC-3, Mary (Google Cloud 
> Support) wrote:
>>
>> Hello Diego,
>>
>> The App Engine free tier usage is covered in[1], as you can see it covers 
>> 28 frontend hours and 9 backend instance hours per day as well as other 
>> services, however this only applies on App Engine Standard.  
>>
>> The instance hours begin when an instance starts and ends depending on 
>> the type of scaling you specify for the instance. Once the free limit has 
>> been reached, depending on your region you will be charged the rate for 
>> your instance type as seen here[2].
>>
>> [1] 
>> https://cloud.google.com/free/docs/gcp-free-tier#always-free-usage-limits
>> [2] https://cloud.google.com/appengine/pricing#standard_instance_pricing
>>
>> On Tuesday, April 7, 2020 at 2:03:30 PM UTC-4, Diego C. wrote:
>>>
>>>
>>> Hello,
>>>
>>> I had an App Engine service running on us-east1 for months. It was 
>>> always within the free tier, so I was never charged anything.
>>>
>>> A couple of days ago, I shut down that project, created a new project, 
>>> and started an App Engine service on southamerica-east1. Just a testing 
>>> app, very little traffic, never went over the free tier limits.
>>>
>>> Today I got a billing alert saying that I had reached my budget limit of 
>>> $2 that I set a while ago, precisely for cases of unexpected charges. The 
>>> billing details show that I was being charged for App Engine frontend 
>>> instance hours on southamerica-east1 (São Paulo). I shut down the project 
>>> to prevent any further charges.
>>>
>>>
>>> [image: screenshot.1.png]
>>>
>>> (Note that I never ran both services concurrently.)
>>>
>>>
>>> Why was I charged for the same thing in southamerica-east1 but not in 
>>> us-east1? I haven't found any mention of the App Engine free tier being 
>>> limited to certain regions, as it is for Compute Engine, for example.
>>>
>>> Thanks!
>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d427c4cd-3cc2-4664-990e-4624af5c9190%40googlegroups.com.


[google-appengine] Re: Doesn't the App Engine free tier include southamerica-east1?

2020-04-08 Thread Diego C.
Hello, Mary.

Thank you for your reply.

I did some further research. I was in fact charged for more than 28 
instance hours per day for 3 days, starting on April 4 (when the service 
was started) and ending April 6. I shut down the project around noon on 
April 7, so it didn't go over the quota that day. For example, on April 5, 
it was 38.94 hours:


[image: screenshot.4.png]



However, I restored the project so I could take a look at the dashboard, 
and this is the chart of instances used:


[image: screenshot.3.png]



You see that it spends most of the time running 1 instance (I set 
min_instances to 1 in app.yaml) with a few spikes which were apparently 
caused by old versions starting up an instance for a short time every once 
in a while. However, that doesn't account for over 10 extra hours on April 
5 alone, and even more hours on April 4, which only had one spike.


I had no other projects using App Engine.


What am I missing?


Thanks again!


Diego





On Wednesday, April 8, 2020 at 12:21:07 AM UTC-3, Mary (Google Cloud 
Support) wrote:
>
> Hello Diego,
>
> The App Engine free tier usage is covered in[1], as you can see it covers 
> 28 frontend hours and 9 backend instance hours per day as well as other 
> services, however this only applies on App Engine Standard.  
>
> The instance hours begin when an instance starts and ends depending on the 
> type of scaling you specify for the instance. Once the free limit has been 
> reached, depending on your region you will be charged the rate for your 
> instance type as seen here[2].
>
> [1] 
> https://cloud.google.com/free/docs/gcp-free-tier#always-free-usage-limits
> [2] https://cloud.google.com/appengine/pricing#standard_instance_pricing
>
> On Tuesday, April 7, 2020 at 2:03:30 PM UTC-4, Diego C. wrote:
>>
>>
>> Hello,
>>
>> I had an App Engine service running on us-east1 for months. It was always 
>> within the free tier, so I was never charged anything.
>>
>> A couple of days ago, I shut down that project, created a new project, 
>> and started an App Engine service on southamerica-east1. Just a testing 
>> app, very little traffic, never went over the free tier limits.
>>
>> Today I got a billing alert saying that I had reached my budget limit of 
>> $2 that I set a while ago, precisely for cases of unexpected charges. The 
>> billing details show that I was being charged for App Engine frontend 
>> instance hours on southamerica-east1 (São Paulo). I shut down the project 
>> to prevent any further charges.
>>
>>
>> [image: screenshot.1.png]
>>
>> (Note that I never ran both services concurrently.)
>>
>>
>> Why was I charged for the same thing in southamerica-east1 but not in 
>> us-east1? I haven't found any mention of the App Engine free tier being 
>> limited to certain regions, as it is for Compute Engine, for example.
>>
>> Thanks!
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/76a5d88c-0398-4931-8ed3-02e8c7af40e4%40googlegroups.com.


[google-appengine] Doesn't the App Engine free tier include southamerica-east1?

2020-04-07 Thread Diego C.

Hello,

I had an App Engine service running on us-east1 for months. It was always 
within the free tier, so I was never charged anything.

A couple of days ago, I shut down that project, created a new project, and 
started an App Engine service on southamerica-east1. Just a testing app, 
very little traffic, never went over the free tier limits.

Today I got a billing alert saying that I had reached my budget limit of $2 
that I set a while ago, precisely for cases of unexpected charges. The 
billing details show that I was being charged for App Engine frontend 
instance hours on southamerica-east1 (São Paulo). I shut down the project 
to prevent any further charges.


[image: screenshot.1.png]

(Note that I never ran both services concurrently.)


Why was I charged for the same thing in southamerica-east1 but not in 
us-east1? I haven't found any mention of the App Engine free tier being 
limited to certain regions, as it is for Compute Engine, for example.

Thanks!

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d88acb37-aac8-4661-9ea6-cb699ea60fd7%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-02-03 Thread 'DIEGO GARCIA TEBA' via Google App Engine
Thanks!

I'll share with the forum conclusions.

Regards,
Diego

On Monday, February 3, 2020 at 5:43:55 PM UTC+1, noverlyjoseph wrote:
>
> Hi Diogo,
>
> I can see the support case you’ve opened is already being investigated. If 
> you do have more general questions regarding this, you can follow up on 
> here, otherwise communication will continue on the support case you’ve 
> opened.
>
>
> On Friday, January 31, 2020 at 2:41:53 AM UTC-5, DIEGO GARCIA TEBA wrote:
>>
>> Thanks Olu!
>>
>> I'll do it.
>>
>> Regards,
>> Diego
>>
>> On Thursday, January 30, 2020 at 8:21:20 PM UTC+1, Olu wrote:
>>>
>>> Hi, Diego
>>>
>>> There are a number of reasons that could account for the change in the 
>>> Application size. In fact, there was a similar report in the past where the 
>>> size of the application version using the Maven CloudSDK plugin actually 
>>> was found to be lesser compared to the version from AppCfg. To evaluate 
>>> specifically your version, I suggest you open an issue[1], with which a 
>>> Support Engineer would be able to review your project and evaluate the 
>>> specific App Engine versions to determine exactly what may be causing the 
>>> difference in sizes for your application.
>>>
>>> [1]https://developers.google.com/issue-tracker/#public_users
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/811938a0-e22f-4c5d-9d18-700c2a86d65d%40googlegroups.com.


Re: [google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-02-02 Thread 'DIEGO GARCIA TEBA' via Google App Engine
Hi Ludo,

Thanks for your response. One of my project where you can see this 
behaviour is "dev-bbva-gnameindexer-sp".

 - Version "1-4-5" is deployed with AppCfg (12.9 MB)
 - Version "1-4-6" is deployed with Apache Maven Cloud SDK based plugin 
(30.5 MB)

I've opened a support case (22030568) in order to investigate this 
behaviour.

Thanks!

Regards,
Diego

On Friday, January 31, 2020 at 7:03:45 PM UTC+1, Ludovic Champenois wrote:
>
> There is only 1 staging logic, inside appcfg tooling, which is used (as 
> is) in the cloud SDK, so staging is technically the same.
>
> In appcfg, it uses a temporary directory (deleted at the end unless you 
> use a flag to retain the upload dir).
>
> In cloud SDK and new plugins, the default location is visible to the 
> customer (appengine-staging) and can be overwritten via a flag.
>
> There is no reason at all I understand about why app size would differ 
> based on the tooling. Maybe different default flags in compilers?
>
> If you have a specific project that shows this behavior, I am all ears.
>
> Ludo
> On 1/30/20 11:41 PM, 'DIEGO GARCIA TEBA' via Google App Engine wrote:
>
> Thanks Olu! 
>
> I'll do it.
>
> Regards,
> Diego
>
> On Thursday, January 30, 2020 at 8:21:20 PM UTC+1, Olu wrote: 
>>
>> Hi, Diego
>>
>> There are a number of reasons that could account for the change in the 
>> Application size. In fact, there was a similar report in the past where the 
>> size of the application version using the Maven CloudSDK plugin actually 
>> was found to be lesser compared to the version from AppCfg. To evaluate 
>> specifically your version, I suggest you open an issue[1], with which a 
>> Support Engineer would be able to review your project and evaluate the 
>> specific App Engine versions to determine exactly what may be causing the 
>> difference in sizes for your application.
>>
>> [1]https://developers.google.com/issue-tracker/#public_users
>>
> -- 
> 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-a...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/b1024ee7-3f1b-475c-b89f-6c0696467acd%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/google-appengine/b1024ee7-3f1b-475c-b89f-6c0696467acd%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8a3f4610-94a6-430a-ba99-3ec0bc53566e%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-01-30 Thread 'DIEGO GARCIA TEBA' via Google App Engine
Thanks Olu!

I'll do it.

Regards,
Diego

On Thursday, January 30, 2020 at 8:21:20 PM UTC+1, Olu wrote:
>
> Hi, Diego
>
> There are a number of reasons that could account for the change in the 
> Application size. In fact, there was a similar report in the past where the 
> size of the application version using the Maven CloudSDK plugin actually 
> was found to be lesser compared to the version from AppCfg. To evaluate 
> specifically your version, I suggest you open an issue[1], with which a 
> Support Engineer would be able to review your project and evaluate the 
> specific App Engine versions to determine exactly what may be causing the 
> difference in sizes for your application.
>
> [1]https://developers.google.com/issue-tracker/#public_users
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b1024ee7-3f1b-475c-b89f-6c0696467acd%40googlegroups.com.


[google-appengine] Re: Bigger app sizes with Cloud SDK than with AppCfg

2020-01-29 Thread 'DIEGO GARCIA TEBA' via Google App Engine
Hi George,

I've updated from the deprecated AppCfg to Apache Maven Cloud SDK based 
plugin. When I did it, the same app with the same dependencies have a 
different size. I'm attaching a screenshoot.

Any idea?

Regards,
Diego

On Wednesday, January 29, 2020 at 5:35:58 PM UTC+1, George (Cloud Platform 
Support) wrote:
>
> Hello Diego, 
>
> The directory called "appengine-staging" is required, and created by 
> default. You are able to modify its location using the stagingDirectory 
> parameter of the appengine:deploy goal. It is the directory to which to 
> stage the application. Default is 
> ${project.build.directory}/appengine-staging. Related details are to be 
> found on the "App Engine Maven Plugin Goals and Parameters" documentation 
> page 
> <https://cloud.google.com/appengine/docs/standard/java11/maven-reference>
> . 
>
> How did you determine that the Maven plugin generates bigger apps? 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/db61de65-d6c4-4004-9f45-befb7de6edb5%40googlegroups.com.


[google-appengine] Bigger app sizes with Cloud SDK than with AppCfg

2020-01-28 Thread 'DIEGO GARCIA TEBA' via Google App Engine
Hi,

I'm experiencing that deploying with Cloud SDK Maven Plugin 
<https://cloud.google.com/appengine/docs/standard/java/tools/maven-reference#appenginedeploy>
 
is generating bigger apps than deploying with AppCfg. I've seen that inside 
target directory, a folder named "appengine-staging" is generated. I don't 
know if this is the cause of the file increment. 

Anyone has the same behaviour?

Thanks in advance!

Regards,
Diego

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/72c77fa3-b9ef-492a-87b0-8f58d60e98de%40googlegroups.com.


[google-appengine] NonRetriableException: com.google.apphosting.api.ApiProxy$CancelledException: The API call urlfetch.Fetch() was explicitly cancelled.

2019-05-12 Thread Diego Barreiro
Hello,

This error has just appeared yesterday in my project, and I don't 
understand why:
NonRetriableException: 
com.google.apphosting.api.ApiProxy$CancelledException: The API call 
urlfetch.Fetch() was explicitly cancelled.

We haven't launched any update, changed anything. Everything was working 
fine until yesterday, when suddenly this error appeared.

[image: uzL9wc.jpg]


Any idea why this happens?

Thank you,

Diego

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ea764404-c006-43dc-b2e7-e6cd7e918b70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot view log-based metrics in stackdriver - missing resource type

2019-02-13 Thread Diego Marchi
ah I left the logs undisturbed overnight and tada, they appeared this 
morning! They were just shy and needed to load I presume..


On Tuesday, February 12, 2019 at 11:51:53 PM UTC-8, Diego Marchi wrote:
>
> Hi, 
> I am trying to create a log based metric on my instance of GAE. I create 
> the filter on the logs and try to visualize the metric I created but, in 
> the stackdriver screen, I do not see any data points. When prompted to 
> select a resource type, none is loaded, therefore I believe I cannot see 
> the data points.
>
> The query is the following - you can see the resource.type is in it:
> resource.type="gae_app" logName="projects//logs/
> appengine.googleapis.com%2Frequest_log" ("company: abra:cadabra" AND 
> "/task/capture/sf~")
>
>
> And this is what I see on Stackdriver, when I try to visualize the 
> log-metric:
>
> [image: 123.png]
>
> The funny thing is that I created a metric with somewhat similar 
> parameters before this and it worked like a charm. This is the one:
> resource.type="gae_app" resource.labels.module_id="default" resource.
> labels.version_id="live" logName="projects/hidden/logs/
> appengine.googleapis.com%2Frequest_log" "REQUEST_LIMIT_EXCEEDED"
>
>
> What am I missing?
>
>

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0839e2d4-7b70-4828-87e7-411270f58a5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] The ghs.googlehosted.com is downing

2019-01-10 Thread Diego Damasio
Hello.

Some IPs attributed for ghs.googlehosted.com 

 are 
down. I need all IPs  attributed for ghs.googlehosted.com 

 are 
working.

Make ping command at ghs.googlehosted.com 

 - 
See the image.

*Wrong IPs*: 


   - 172.217.29.115
   - 216.58.202.243
   - 172.217.30.19
   

Can you help me?


-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f9c30a63-dcc6-4818-842b-fa0a4e42591b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Migrate a project to a different region

2018-08-02 Thread Diego Sucaria
Hello!

When we started, the south american region was not available. now it is, 
and we would like to use it and see our app latency reduced from 170ms to 
50ms.

I know that it is not possible to move/change an *AppEngine* app to a 
different region.

So, the only option is to *create a new project*, then migrate the app...  
but we've encountered some problems:


   - *Cloud SQL migration*: I can create a new instance export/import 
   databases using the cloud storage bucket within the same project. but how 
   do we achieve this using a different project?
   - *Service Accounts* *migration*: we have several remote devices, which 
   uses service accounts to connect to Google PubSub. How can we move the 
   service accounts to the new project? Without needing to update the service 
   account on each device.

Is there an easier way to do this?

How can achieve this, what do you think?

thanks

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0f41ddbb-dd55-437b-9326-147d32ca3135%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Use GAE with GCE connected with Internal IP

2018-04-23 Thread Diego Barreiro Pérez
And why is not possible through the GAE Standard Environment? Because my
app is designed for Standard and I guess migrating to Flexible will require
a big rewrite on the code

On Mon, Apr 23, 2018, 22:38 'Kamran (Google Cloud Support)' via Google App
Engine <google-appengine@googlegroups.com> wrote:

>
> Hello Diego,
>
> Communication through internal IP addresses between *Google Compute
> Engine* and *App Engine Flexible Environment* (but not App Engine
> standard environment) is possible. Because VM instances in the flexible
> environment are Google Compute Engine virtual machines.
>
> In order to implement the local connectivity between GCE VMs and GAE Flex,
> if both are running on the same project deploy your GAE app on the same
> network as of the GCE VM instance. For this purpose, you can configure
> the network settings of your application on app.yaml file
> <https://cloud.google.com/appengine/docs/flexible/python/configuring-your-app-with-app-yaml#network_settings>
> .
>
> If the GAE Flex application and GCE VM instance are running on different
> projects, then you can take advantage of VPC Network Peering
> <https://cloud.google.com/vpc/docs/vpc-peering> to allows private
> connectivity across two VPC networks regardless of whether or not they
> belong to the same project or the same organization.
>
> I hope this helps.
>
>
> On Sunday, April 22, 2018 at 5:10:20 PM UTC-4, Diego Barreiro Pérez wrote:
>>
>> I've been searching on Google about this, but didn't found anything
>> "clear"
>> *Is possible to make a request from a Google App Engine project to a
>> Google Compute Engine instance via its Internal IP?*
>>
>> The idea is to make the network faster. AppEngine would make a request to
>> the Internal IP of the GCE Instance so it will use Google Intranet
>> Of course, GAE and GCE will be running on the same DataCenter: GAE on
>> europe-west and GCE on europe-west1
>>
>> Any CONCISE answer will be really appreciated
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-appengine/rm7tRGfdEWQ/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/c9768838-95bd-4ce7-b196-5253d0073afb%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/c9768838-95bd-4ce7-b196-5253d0073afb%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALKDkhH7WY4s0KS-0p0C6F_GucV-u%2BWAk7JHfy7NgOo5fEo7gQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Use GAE with GCE connected with Internal IP

2018-04-22 Thread Diego Barreiro Pérez
I've been searching on Google about this, but didn't found anything "clear"
*Is possible to make a request from a Google App Engine project to a Google 
Compute Engine instance via its Internal IP?*

The idea is to make the network faster. AppEngine would make a request to 
the Internal IP of the GCE Instance so it will use Google Intranet
Of course, GAE and GCE will be running on the same DataCenter: GAE on 
europe-west and GCE on europe-west1

Any CONCISE answer will be really appreciated

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/fb37ea8f-7d3a-42f7-95a0-2b554089ede8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Change Instance Scaling

2017-11-04 Thread Diego Barreiro Pérez
Is there a way to alter how instances are generated?
In my Java project, it sais that Instances are Autoscaled, but I would like 
to set that to manual

Is that possible?

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/27770688-03e9-4f46-8217-afa62e78fd1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Doubt about "Frontend Instance hours"

2017-09-07 Thread Diego Barreiro
Okey, thank you!

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8380a6fc-9346-4bde-abbe-f93e9dab582a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Doubt about "Frontend Instance hours"

2017-09-06 Thread Diego Barreiro
I have a small doubt about how the quota "Frontend Instance Hours" works

I have my application, with only one service ("default") and only one 
version reciving all traffic ("2-0-0"). If two users use my app for an 
hour, that quota increases by two hours or only one hour?

I hope I've explained myself

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4f8d6234-0a8c-43d2-9bac-ba75668c6bb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] create servcie account using google api

2017-08-03 Thread Diego Molteni
Hi all,
I was truing to create a service account using the google json api 
(https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/create)

when i execute the command:
curl -X POST 
https://iam.googleapis.com/v1/projects//serviceAccounts 
\
  -H 'authorization: Bearer ya29' \
  -H 'content-type: application/json' \
  -d '{
 "accountId": 
"@.iam.gserviceaccount.com"
}


I have this error and I can't really understand what's the problem:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT"
}
}


anybody can help me? (ps is not an authorization problem)

Diego

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/469e7b04-699e-4fbb-be04-293d4873fdc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google App Engine - Import Error no module named appengine.api

2017-04-07 Thread Diego Molteni
Hi All,

I have this problem and I really don't know how to fix it any help?


from oauth2client.contrib.appengine import AppAssertionCredentials
def generate_jwt():
credentials = AppAssertionCredentials(
'https://www.googleapis.com/auth/iam')

from google.appengine.api import app_identity
ImportError: No module named appengine.api


Thanks :)
Diego

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f73c6891-31e0-4e8a-9970-5db592c7cc23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google Appengine Python - ImportError No module named appengine.api

2017-04-07 Thread Diego Molteni
Hi All,

I have this problem and I really don't know how to fix it any help?


from oauth2client.contrib.appengine import AppAssertionCredentials
def generate_jwt():
credentials = AppAssertionCredentials(
'https://www.googleapis.com/auth/iam')

Enter code her
from google.appengine.api import app_identity
ImportError: No module named appengine.api
e...

Thanks :)
Diego

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7ead0afe-b0b1-44d4-93b5-81ec4e882223%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Deploy application :Error Response: [13] Timed out when starting VMs.

2016-10-03 Thread Diego Molteni
d.
08:56:18.000
npm ERR! Failed at the a2viewer@1.0.0 tsc script 'tsc'.
08:56:18.000
npm ERR!
08:56:18.000
npm ERR! spawn ENOENT
08:56:18.000
npm ERR! a2viewer@1.0.0 tsc: `tsc`
08:56:18.000
npm ERR! syscall spawn
08:56:18.000
npm ERR! errno ENOENT
08:56:18.000
npm ERR! code ELIFECYCLE
08:56:18.000
npm ERR! file sh
08:56:18.000
npm ERR! npm v3.10.3
08:56:18.000
npm ERR! node v6.7.0
08:56:18.000
npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "run" "tsc"
08:56:18.000
npm ERR! Linux 3.16.0-4-amd64
08:56:18.000
08:56:18.000
sh: 1: tsc: not found





On Thursday, September 29, 2016 at 6:17:40 PM UTC-5, Nick (Cloud Platform 
Support) wrote:
>
> Hey Diego,
>
> The details for why the deploy failed will be located in 'crash.log', 
> 'syslog' or 'stderr' in the Cloud Console Logs Viewer 
> <https://cloud.google.com/logging/docs/view/logs_viewer>. 
>
> You can access these by going to 'Logging' -> 'Logs' -> 'App Engine' -> 
> 'Default service' -> , and then selecting the log type from the 
> dropdown ('Any log level'). 
>
> Locate the error logs for the timestamp matching the most recent deploy 
> attempt. 
>
> If you can't make sense of the logs, feel free to post the error 
> information here and I'll be happy to assist!
>
> Cheers,
>
> Nick
> Cloud Platform Community Support
>
>
> On Monday, September 26, 2016 at 10:23:52 AM UTC-4, Diego Molteni wrote:
>>
>> Dear Expert,
>> I receive this error if i try to deploy my application on Google App 
>> Engine (gcloud preview app deploy).
>> I never had this problem and i can't find a solution.
>> any Idea on how to fix this problem?
>>
>> Thanks :)
>>
>>
>> --
>> Removing intermediate container 14c27f9e927f
>> Successfully built cd16b300dd47
>> PUSH
>> The push refers to a repository [
>> us.gcr.io/fatty-acid/appengine/a2viewer.20160926t090506] (len: 1)
>> cd16b300dd47: Preparing
>> cd16b300dd47: Pushing
>> cd16b300dd47: Pushed
>> bbcf7801e7ba: Preparing
>> bbcf7801e7ba: Pushing
>> bbcf7801e7ba: Pushed
>> 4284f4572084: Preparing
>> 4284f4572084: Pushing
>> 4284f4572084: Pushed
>> ef62c3a94308: Preparing
>> ef62c3a94308: Pushing
>> ef62c3a94308: Pushed
>> 9ff051f37ab2: Image already exists
>> 363507e00b22: Image already exists
>> 818131a74c7c: Image already exists
>> cc57a274adf5: Image already exists
>> c7c7a273971f: Image already exists
>> b21b3e3bc691: Image already exists
>> latest: digest: 
>> sha256:3a014c49ccd20ca9f4060599bf94f0e36a18232bba8907b4db7f20ecd71af9ec 
>> size: 33268
>> DONE
>>
>> --
>> Updating service [a2viewer]...failed.
>> ERROR: (gcloud.preview.app.deploy) Error Response: [13] Timed out when 
>> starting VMs.  It's possible that the application code is unhealthy.  (0/2 
>> ready, 2 still deploying).
>>
>> --
>>
>

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/52979371-1b42-4488-8885-ecb323b4a36e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Deploy application :Error Response: [13] Timed out when starting VMs.

2016-09-26 Thread Diego Molteni
Dear Expert,
I receive this error if i try to deploy my application on Google App Engine 
(gcloud preview app deploy).
I never had this problem and i can't find a solution.
any Idea on how to fix this problem?

Thanks :)

--
Removing intermediate container 14c27f9e927f
Successfully built cd16b300dd47
PUSH
The push refers to a repository 
[us.gcr.io/fatty-acid/appengine/a2viewer.20160926t090506] (len: 1)
cd16b300dd47: Preparing
cd16b300dd47: Pushing
cd16b300dd47: Pushed
bbcf7801e7ba: Preparing
bbcf7801e7ba: Pushing
bbcf7801e7ba: Pushed
4284f4572084: Preparing
4284f4572084: Pushing
4284f4572084: Pushed
ef62c3a94308: Preparing
ef62c3a94308: Pushing
ef62c3a94308: Pushed
9ff051f37ab2: Image already exists
363507e00b22: Image already exists
818131a74c7c: Image already exists
cc57a274adf5: Image already exists
c7c7a273971f: Image already exists
b21b3e3bc691: Image already exists
latest: digest: 
sha256:3a014c49ccd20ca9f4060599bf94f0e36a18232bba8907b4db7f20ecd71af9ec 
size: 33268
DONE
--
Updating service [a2viewer]...failed.
ERROR: (gcloud.preview.app.deploy) Error Response: [13] Timed out when 
starting VMs.  It's possible that the application code is unhealthy.  (0/2 
ready, 2 still deploying).
--

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4fc1cca1-91d6-4c91-a22b-384b05ef8e38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: urlfetch.fetch reporting inconsistent results?

2016-03-28 Thread Diego Marchi
Unfortunately this is not an option :(

On Wednesday, March 23, 2016 at 12:47:45 PM UTC-7, Kaan Soral wrote:
>
> As a very sincere suggestion, try not to build anything for fb at all, if 
> you can (and for instagram/twitter for that matter)
>
> It's basically a trap for developers, you waste your resources (i), there 
> is no positive outcome at all, even if you manage to get a positive 
> outcome, it will be terminated with various excuses and sometimes no 
> excuses at all
>
> More on topic, unexplainable fb api failures are pretty common, I just 
> ignore them at this point, try not to lose time on it, if it's not mission 
> critical, in some months, it may even fix itself, even if you report it to 
> fb and it gets accepted as a bug, don't expect a swift solution (because 
> (i))
>
> The only valid fb api usage at this point is b2b apps, where the 
> end-business is the ones that are trapped, like page owners etc., you might 
> profit from selling apps to them while their waste their times with their 
> fb pages, even in this case, if you are not at the point of no return, 
> return and do something useful :)
>

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/82b8a37e-1347-44f2-bd99-4bcccf8c7fc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: urlfetch.fetch reporting inconsistent results?

2016-03-28 Thread Diego Marchi
I don't think it's something that has to do with that kind of restrictions. 
I can get the response just fine using my local machine or any other 
machine.

If the graph api is the culprit then it's because it's limiting the access 
to GAE perhaps, but that would not explain why it works for most pages and 
not for others.

On Wednesday, March 23, 2016 at 12:21:23 PM UTC-7, Joshua Johnston wrote:
>
> See 
> http://stackoverflow.com/questions/6843796/graph-api-returns-false-or-unsupported-get-request-accessing-public-facebook
>  
> and 
> http://stackoverflow.com/questions/13739609/unsupported-get-request-in-facebook-graph-api
>  
> on stack overflow.
>
> It may be restrictions set on the page around Country / Age / Page 
> Visibility. It may also be because the page does not have enough likes yet 
> (< 25)
>
> On Wednesday, March 23, 2016 at 1:06:33 PM UTC-4, Diego Marchi wrote:
>>
>> Hello Luciano,
>>
>> thanks for your answer. As you suggested I've upgraded my local 
>> dev_appserver version to 1.9.34.
>>
>> *GraphMethodException* is related to a search that cannot be served by 
>> the Graph API since there is no handler for it. I don't think this is the 
>> case since, as mentioned, I can access the same url I query from the GAE 
>> instance, using CURL and in that case I obtain a valid result and not an 
>> exception. 
>> It works also on my local instance, when I use the interactive console 
>> and use urlfetch.fetch. It also works when I fetch the sm API url from 
>> inside my program on my local machine.
>>
>> Summarizing:
>> - from terminal: 
>> curl "
>> https://graph.facebook.com/v2.3/184277601936688?access_token=xxx; 
>> *WORKS*
>>
>> - from local instance:
>> from google.appengine.api import urlfetch
>>
>>
>> u = urlfetch.fetch("
>> https://graph.facebook.com/v2.3/184277601936688?access_token=xxx;
>> )
>> print u.content
>> *WORKS*
>>
>> *- *from local instance program runs and visits API endpoint: *WORKS*
>>
>> - from GAE remote instance
>> from google.appengine.api import urlfetch
>>
>> u = urlfetch.fetch("
>> https://graph.facebook.com/v2.3/184277601936688?access_token=x;)
>>
>> print u.content
>> *DOES NOT WORK*
>>
>> *- *from remote instance program runs and visits API endpoint: *DOES NOT 
>> WORK* 
>>
>> At the present time, I cannot find the problem. I thought it could be 
>> that facebook just cut off requests coming from GAE or certain ips... but 
>> it does NOT happen for all the facebook ids I try to query, only for some 
>> of them.
>>
>>
>> On Thursday, March 17, 2016 at 10:09:26 PM UTC-7, Luciano Pacheco wrote:
>>>
>>> Hello Diego,
>>>
>>> I'm Luciano from Google Cloud Support.
>>>
>>> The issue mentioned on the email you that received yesterday has been 
>>> fixed. So the error you're experiencing is unrelated.
>>>
>>> I searched online for "facebook graphapi GraphMethodException" and it 
>>> seems related to some permissions on the Facebook app or entity being 
>>> updated, see this stackoverflow question 
>>> <http://stackoverflow.com/questions/17209975/facebook-open-graph-graphmethodexception-error-code-100>
>>>  for 
>>> example.
>>>
>>> I also suggest you to upgrade your local environment from 1.9.20 to our 
>>> latest version 1.9.34 <https://cloud.google.com/appengine/downloads>.
>>>
>>> Cheers,
>>>
>>> Luciano Pacheco
>>>
>>> On Friday, March 18, 2016 at 5:26:13 AM UTC+11, Diego Marchi wrote:
>>>>
>>>>
>>>> urlfetch.fetch is reporting inconsistent results when querying the 
>>>> facebook graph api. If I curl the same URL from my terminal, it works 
>>>> fine. 
>>>> It works ok also using the local instance of the GAE with dev_appserver.py.
>>>>
>>>> I am using a mac and the dev_appserver version on my local is 1.9.20. I 
>>>> am using Python.
>>>>
>>>> I cannot share the access token, but the url I am trying to reach is "
>>>> https://graph.facebook.com/v2.3/184277601936688; - from the remote 
>>>> instance I saw the logs reporting this:
>>>> {
>>>>"error": {
>>>>   "message": "Unsupported get request. Please read the Graph API 
>>>> documentation at https://developers.facebook.com/docs/graph-api;,
>>>>

[google-appengine] Re: urlfetch.fetch reporting inconsistent results?

2016-03-23 Thread Diego Marchi
Hello Luciano,

thanks for your answer. As you suggested I've upgraded my local 
dev_appserver version to 1.9.34.

*GraphMethodException* is related to a search that cannot be served by the 
Graph API since there is no handler for it. I don't think this is the case 
since, as mentioned, I can access the same url I query from the GAE 
instance, using CURL and in that case I obtain a valid result and not an 
exception. 
It works also on my local instance, when I use the interactive console and 
use urlfetch.fetch. It also works when I fetch the sm API url from inside 
my program on my local machine.

Summarizing:
- from terminal: 
curl 
"https://graph.facebook.com/v2.3/184277601936688?access_token=xxx; 
*WORKS*

- from local instance:
from google.appengine.api import urlfetch


u = urlfetch.fetch(
"https://graph.facebook.com/v2.3/184277601936688?access_token=xxx;)
print u.content
*WORKS*

*- *from local instance program runs and visits API endpoint: *WORKS*

- from GAE remote instance
from google.appengine.api import urlfetch

u = urlfetch.fetch(
"https://graph.facebook.com/v2.3/184277601936688?access_token=x;)

print u.content
*DOES NOT WORK*

*- *from remote instance program runs and visits API endpoint: *DOES NOT 
WORK* 

At the present time, I cannot find the problem. I thought it could be that 
facebook just cut off requests coming from GAE or certain ips... but it 
does NOT happen for all the facebook ids I try to query, only for some of 
them.


On Thursday, March 17, 2016 at 10:09:26 PM UTC-7, Luciano Pacheco wrote:
>
> Hello Diego,
>
> I'm Luciano from Google Cloud Support.
>
> The issue mentioned on the email you that received yesterday has been 
> fixed. So the error you're experiencing is unrelated.
>
> I searched online for "facebook graphapi GraphMethodException" and it 
> seems related to some permissions on the Facebook app or entity being 
> updated, see this stackoverflow question 
> <http://stackoverflow.com/questions/17209975/facebook-open-graph-graphmethodexception-error-code-100>
>  for 
> example.
>
> I also suggest you to upgrade your local environment from 1.9.20 to our 
> latest version 1.9.34 <https://cloud.google.com/appengine/downloads>.
>
> Cheers,
>
> Luciano Pacheco
>
> On Friday, March 18, 2016 at 5:26:13 AM UTC+11, Diego Marchi wrote:
>>
>>
>> urlfetch.fetch is reporting inconsistent results when querying the 
>> facebook graph api. If I curl the same URL from my terminal, it works fine. 
>> It works ok also using the local instance of the GAE with dev_appserver.py.
>>
>> I am using a mac and the dev_appserver version on my local is 1.9.20. I 
>> am using Python.
>>
>> I cannot share the access token, but the url I am trying to reach is "
>> https://graph.facebook.com/v2.3/184277601936688; - from the remote 
>> instance I saw the logs reporting this:
>> {
>>"error": {
>>   "message": "Unsupported get request. Please read the Graph API 
>> documentation at https://developers.facebook.com/docs/graph-api;,
>>   "type": "GraphMethodException",
>>   "code": 100,
>>   "fbtrace_id": "He4bs+MI7Qs"
>>}
>> }
>>
>> but with curl and also on my local instance, I get a proper response and 
>> a JSON document.
>>
>> anybody has any advice on this? I received an email yesterday from 
>> google, stating that url_fetch has some inconsistend behaviour and I 
>> believe I stumbled in it. They say to contact their support in this case 
>> but where can I reach them?
>>
>> Thanks
>>
>

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b5887a02-b09b-4f44-81e1-48b45e768800%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] urlfetch.fetch reporting inconsistent results?

2016-03-19 Thread Diego Marchi

urlfetch.fetch is reporting inconsistent results when querying the facebook 
graph api. If I curl the same URL from my terminal, it works fine. It works 
ok also using the local instance of the GAE with dev_appserver.py.

I am using a mac and the dev_appserver version on my local is 1.9.20. I am 
using Python.

I cannot share the access token, but the url I am trying to reach is 
"https://graph.facebook.com/v2.3/184277601936688; - from the remote 
instance I saw the logs reporting this:
{
   "error": {
  "message": "Unsupported get request. Please read the Graph API 
documentation at https://developers.facebook.com/docs/graph-api;,
  "type": "GraphMethodException",
  "code": 100,
  "fbtrace_id": "He4bs+MI7Qs"
   }
}

but with curl and also on my local instance, I get a proper response and a 
JSON document.

anybody has any advice on this? I received an email yesterday from google, 
stating that url_fetch has some inconsistend behaviour and I believe I 
stumbled in it. They say to contact their support in this case but where 
can I reach them?

Thanks

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d4e99dfc-4980-4c51-b4d9-d024d712bce0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Unable to deply the application.

2016-03-02 Thread Diego Molteni
Hi Expert,

I'm was trying to deploy an application (first time for me) but i had this 
error message:

Copying certificates for secure access. You may be prompted to create an 
SSH keypair.
ERROR: gcloud crashed (DockerException): Error while fetching server API 
version: [Errno 1] _ssl.c:510: error:14090086:SSL 
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

I tried to figure out what's going on but I can't find a solution.\

Help please :)
Thanks
Diego


-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b0a55310-69f9-48aa-8cb3-cf1c5082a2ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] dev_appserver.py super slow

2015-09-17 Thread Diego Dominguez
I have another AppEngine project who is working fine. It's not a issue with 
the RAM or CPU the computer is very powerful and there is no big process 
running.

I guess have to be something with the watcher who detect the change in the 
code and look like restart the dev server. The admin dashboard work fine 
all the time.

On Thursday, September 17, 2015 at 8:34:16 PM UTC-4, PK wrote:
>
> What machine, how much ram, have you looked at the OS profiler who is 
> using the cpu and ram?
>
> Did it ever work better?
>
> PK
> http://www.gae123.com 
> 
>
> On Sep 17, 2015, at 5:00 PM, Elizabeth Cox  
> wrote:
>
>
> - Python last version, but i try also with others 1.9.22 to 1.9.26 
> installed with GoogleAppEngineLauncher
> - OS X 10.11
>
>
> On Thursday, September 17, 2015 at 7:55:12 PM UTC-4, PK wrote:
>>
>> You need to send some more info on your os/hardware. It has been 
>> performing very well for me. 
>>
>> PK
>> http://www.gae123.com
>>
>> On Sep 17, 2015, at 4:47 PM, Elizabeth Cox  wrote:
>>
>> Even with a silly app like HelloWorld, every time I make a change on the 
>> code, and make a new request, the server take like 1-2 minutes to response.
>>
>> Anybody know why? and how to resolve this?
>>
>>
>> -- 
>> 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-appengi...@googlegroups.com.
>> To post to this group, send email to google-a...@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/9130e9aa-2aae-488f-ad8a-1d6c483f5298%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>> -- 
> 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-appengi...@googlegroups.com .
> To post to this group, send email to google-a...@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/c1ae4c8e-9cda-4a61-aff1-2cbc1d713bc3%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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/179973db-9525-4cdd-9a4b-7c6c2327c110%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google App Engine inter module communication authorization (python)

2015-06-17 Thread Diego Fernandez
Hello,
citing 
*http://stackoverflow.com/questions/30237946/google-app-engine-inter-module-communication-authorization#comment49814138_30237946*
 
the problem I have is that in the Docs (communication between modules) 
https://cloud.google.com/appengine/docs/python/modules/#Python_Communication_between_modules
 it 
says:

*You can configure any manual or basic scaling module to accept requests 
 from other modules in your app by restricting its handler to only allow 
 administrator accounts, specifying login: admin for the appropriate handler 
 in the module's configuration file. With this restriction in place, any 
 URLFetch from any other module in the app will be automatically 
 authenticated by App Engine, and any request that is not from the 
 application will be rejected.*


And this is exactly the configuration I have for my module called api1. 
In my *app.yaml* file I have:

# can accept requests from other modules. with login: admin and they are 
authenticated automatically.
- url: /.*
  script: _go_app
  login: admin

I'm trying now, from a different module in the same app, to make a service 
call as suggested in the doc using *urfetch.fetch()* method, and my 
implementation is:

from google.appengine.api import urlfetch, modules, app_identity
from rest_framework.response import Response, status

@api_view(['POST'])
def validate_email(request):
url = http://%s/; % modules.get_hostname(module=api1)
payload = json.dumps({SOME_KEY:SOME_VALUE})

appid = app_identity.get_application_id()
result = urlfetch.fetch(url + emails/validate/document,
follow_redirects=False,
method=urlfetch.POST,
payload=payload,
headers={Content-Type:application/json)

return Response({
'status_code': result.status_code,
'content': result.content
}, status=status.HTTP_200_OK)

According to the documentation, having specified the 
*follow_redirects=False*, *fetch()* will automatically insert an header in 
my call (I've even tried to add it explicitly) with the 
*X-Appengine-Inbound-Appid 
: MY-APP-ID*.
Unfortunately I get as result of the fetch call a 302 redirect, if I follow 
it, it's a redirect to the authentication form. This occurs in Development 
server as well as in Production.

Can you please let me know how can I call my *api1* service inside my 
*validate_email* document (belonging to a different module in the same app)?
Is there another way to authenticate the call since it seems the way 
suggested inside the documentation is not working?

Thank you

-- 
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/d4c88649-5b86-47a6-a22c-0e01064a90db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] HR datastore is in readonly but there are no errors?

2015-04-10 Thread Diego Borges
We are seeing the same issue since about an hour ago :/

Just got in touch with the support team, they will dig into the problem and 
let us know ASAP what has happened.

On Friday, April 10, 2015 at 4:59:49 PM UTC-3, Thomas Schranz wrote:

 Same here, since about 10-15 minutes.
 Status page is all green though :/

 https://code.google.com/status/appengine

 On Friday, April 10, 2015 at 9:50:45 PM UTC+2, Andrew Greene wrote:

 I am seeing this too.

 On Friday, April 10, 2015 at 3:41:49 PM UTC-4, Joshua Smith wrote:

 I’m seeing something, too.

 It appears the entities are being updated but the indexes aren’t.

 That is, I updated a record but I’m not seeing the change. But if I 
 click through to the entity, I do see the change. So basically like what 
 would happen during the “inconsistent” phase of a HR database put. But it’s 
 not getting consistent.

 On Apr 10, 2015, at 3:38 PM, Matija matija@gmail.com wrote:

 Are we only one with this problem? For the last one hour it is like HR 
 datastore is in some kind read only state but datastore put statements 
 don't return any errors?

 We have noticed that they are testing 1.9.19 java GAE version on some 
 instances.

 Anybody??? What to do? Where to report? Koju posluku porati?

 -- 
 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-appengi...@googlegroups.com.
 To post to this group, send email to google-a...@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/42a9ecd3-3ee4-4c8b-a64b-d01ab9b519d8%40googlegroups.com
  
 https://groups.google.com/d/msgid/google-appengine/42a9ecd3-3ee4-4c8b-a64b-d01ab9b519d8%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 
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/0038f6a0-bd23-489a-beb5-fa29647a95f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: HR datastore is in readonly but there are no errors?

2015-04-10 Thread Diego Borges
Our app is back up, anyone else?

On Friday, April 10, 2015 at 5:31:56 PM UTC-3, Henry Liu wrote:

 Something switched over and I've been getting 500 responses for stuff too. 
 Seems like the best thing to do right now is to not cause any additional 
 damage and let them sort it out.

 On Friday, April 10, 2015 at 1:27:28 PM UTC-7, Gilberto Torrezan Filho 
 wrote:

 I'm having problems with my Datastore as well. I tried to rebuild my 
 index with vacuum_indexes (didn't know it was a general problem) and got:

 Apr 10, 2015 5:17:53 PM 
 com.google.appengine.tools.admin.AbstractServerConnection send1
 WARNING: Error posting to URL: 
 https://appengine.google.com/api/datastore/index/delete?app_id=myid;
 500 Internal Server Error
 htmlheadmeta http-equiv=content-type 
 content=text/html;charset=utf-8title500 Server 
 Error/title/headbody text=#00 bgcolor=#ffh1Error: Server 
 Error/h1h2The server encountered an error and could not complete your 
 request.pPlease try again in 30 seconds./h2h2/h2/body/html
 This is try #0


 On Friday, April 10, 2015 at 4:38:09 PM UTC-3, Matija wrote:

 Are we only one with this problem? For the last one hour it is like HR 
 datastore is in some kind read only state but datastore put statements 
 don't return any errors?

 We have noticed that they are testing 1.9.19 java GAE version on some 
 instances.

 Anybody??? What to do? Where to report? Koju posluku porati?



-- 
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/bcdc9598-5cfa-4f5b-a2a6-83b0d12518da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Confused about pricing for SSL

2014-06-08 Thread Diego Duclos
Where can the free SNI certs be added ? When I consult the cloud console,
it says they're 5$ a month


On Sun, Jun 8, 2014 at 10:17 AM, Vinny P vinny...@gmail.com wrote:

 On Tue, Jun 3, 2014 at 2:16 AM, Harald Humml hhu...@gmail.com wrote:

 I´m a little bit confused about the pricing model for SSL on GAE.
 So my question is: what cost information is right? And: is it correct
 that I also need to an official certificate from verisign (just for an
 example), or can I use my own certificates generated with openssl when I
 use VIP?



 You're looking at outdated information. SNI SSL is free (you just need to
 supply the certificates provided by a third party, which may cost money).
 If you want a virtual IP (VIP) to go along with SSL, you need to pay
 $39/per VIP/month. The major difference between the two is that some older
 clients (such as Android 2.x units) don't support SNI and require VIP SSL.

 You can use a self-signed cert if you want (
 https://developers.google.com/appengine/docs/ssl#certificate_requirements),
 but it's better to get a certificate from a trusted company such as
 Verisign. If price is a factor, there are occasional sales on certificates
 that you can wait for.


 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com


 --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Confused about pricing for SSL

2014-06-08 Thread Diego Duclos
How do I access that menu ? I'm not very familiar with the old console12


On Sun, Jun 8, 2014 at 10:40 AM, Vinny P vinny...@gmail.com wrote:

 On Sun, Jun 8, 2014 at 3:23 AM, Diego Duclos 
 diego.duc...@palmstonegames.com wrote:

 Where can the free SNI certs be added ? When I consult the cloud console,
 it says they're 5$ a month



 I see $0 for 5 certificate slots here: http://imgur.com/ojsW1lY


 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com

  --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Why are cloud endpoints so slow ?

2014-06-07 Thread Diego Duclos
Hello Jun,

The endpoint is sitting at
https://login-dot-psg-delta.appspot.com/_ah/api/version/v1/info

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: OpenID Connect support

2014-06-06 Thread Diego Duclos
Done

https://code.google.com/p/googleappengine/issues/detail?id=10997thanks=10997ts=1402082477


On Fri, Jun 6, 2014 at 8:25 PM, Peter McKenzie peter...@google.com wrote:

 Please create a feature request on the issue tracker.


 On Tuesday, May 27, 2014 12:22:45 PM UTC-7, Ronoaldo José de Lana Pereira
 wrote:

 +1 for this feature.

 Em terça-feira, 27 de maio de 2014 14h32min19s UTC-3, Diego Duclos
 escreveu:

 With registrations for using the old OpenID 2.0 endpoints now closed,
 and the appengine users API not supporting openID connect at all,
 Would it be possible to get a timeline for openID connect support in the
 users API (In my case, with Go, but I assume this is largely language
 agnostic)

  --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Python and java modules in the same app

2014-06-04 Thread Diego Duclos
I would strongly discourage using versions for this, using different
modules for the same appengine project is much a MUCH more sane way to do
this.


On Wed, Jun 4, 2014 at 8:07 PM, Vinny P vinny...@gmail.com wrote:

 On Sat, May 24, 2014 at 7:38 AM, LPryor louise.pr...@gmail.com wrote:

 - How do you manage the configuration?  The Java xml-based configuration
 expects the app to list all the modules, whereas the Python yaml-based
 configuration doesn't. So is the Java yaml-based configuration the way to
 go?



 You would upload the Java and Python applications as separate versions, then
 route requests using a dispatch file
 https://developers.google.com/appengine/docs/python/modules/routing.
 Where did you expect to list the modules?


 On Sat, May 24, 2014 at 7:38 AM, LPryor louise.pr...@gmail.com wrote:

 - Should I develop a whole Java app, essentially a stub default module
 alongside the module I actually want, or can I do just the module I want?



 Just the module you want. There's no need to add in other modules you
 don't want. Although it should be noted that a module itself is a Java app,
 so adding another module doesn't make it a whole Java app.


 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com


 --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] dev_appserver.py cannot connect to some HTTP endpoint

2014-05-29 Thread Diego Duclos
A more realistic alternative would perhaps be to configure your browser not
to send localhost traffic to the proxy at all.



On Thu, May 29, 2014 at 7:10 AM, Vinny P vinny...@gmail.com wrote:

 On Mon, May 26, 2014 at 7:40 AM, Marco Lovato maglov...@gmail.com wrote:

 Now the app loads. BUT inside the app, I still didnt managed to make
 python Requests to run with Proxy :-)
 Will left my appengine_rpc.py hacked, but this is a problem, isnt?



 Yes, this is a problem. But it's not a problem with the dev appserver as
 far as I can see. The problem is the proxy; as you noted in your previous
 email it's rewriting even localhost requests.

 Sorry to say this, but right now it looks like your only choice is to
 complain to your company's IT department and make them fix the proxy. As a
 short term measure, you could try using an online IDE such as codenvy:
 http://docs.codenvy.com/user/paas/google-app-engine/


 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com

  --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] OpenID Connect support

2014-05-27 Thread Diego Duclos
With registrations for using the old OpenID 2.0 endpoints now closed, and
the appengine users API not supporting openID connect at all,
Would it be possible to get a timeline for openID connect support in the
users API (In my case, with Go, but I assume this is largely language
agnostic)

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Why are cloud endpoints so slow ?

2014-05-25 Thread Diego Duclos
These are not loading requests unfortunatly, The first request was ignored
here, that one usually takes around 10 seconds (That's with Go, funnily
enough)


On Sun, May 25, 2014 at 7:51 PM, Jeff Schnitzer j...@infohazard.org wrote:

 The long delays sound like loading requests. Are they not specifically
 marked as such in the logs? Check the old legacy log system too.

 Loading requests are the achilles heel of appengine, especially for
 low-traffic apps. The only solution so far seems to be use Go.

 Jeff


 On Sun, May 25, 2014 at 2:00 AM, Robert King kingrobertk...@gmail.comwrote:

 also might be worth noting I'm using CORS on multiple app engine modules
 etc. perhaps it's something to do with preflight requests?
 http://monsur.hossa.in/2012/09/07/thoughts-on-the-cors-preflight-cache.html


 On Sunday, 25 May 2014 20:53:15 UTC+12, Robert King wrote:

 Don't get me wrong - I absolutely love cloud endpoints - they speed up
 my development time and simplify my code significantly.
 Having said that, I'd really like to see some clarification from google.
 Are endpoints intended to be high performance? I haven't once seen
 mentioned in any google documentation that endpoints are low latency?  I've
 often been waiting 5-20 seconds for calls such as /_ah/api/discovery/
 v1/apis/archivedash/v1/rpc?fields=methods%2F*%2Fidpp=0.
 even on apps that have little traffic, tiny payloads and no rpc calls.
 One of the new systems i'm building is using endpoints but i'll have to
 switch away from endpoints ASAP if I can't get some reassurance. Also I
 don't have time to wait a couple of months to see if they get faster. I'd
 also be interested to know how efficient python / go / java / php endpoints
 are at encoding  decoding different sized payloads with json or protobuff
 protocols. (Will probably have to generate these statistics myself 
 present some graphs etc - although I'm assuming google would have already
 performance tested their own product?)
 cheers

 On Sunday, 25 May 2014 08:29:48 UTC+12, Diego Duclos wrote:

 I've done some (non extensive) tests on google appengine,
 and my response times vary from anywhere between 100ms and 5000ms when
 directly sending http requests to a cloud endpoints.

 Regardless of the actual response time, the google cloud console always
 shows a processing time of around 50ms, which, while also somewhat
 long-ish, is much more reasonable.

 For the 100ms requests, I can safely know that the other 50ms are just
 regular latency, but I have no idea where the cloud endpoint could be
 spending 4.5 seconds at, and the logs show nothing useful at all.

 Does anyone have some guidance for me regarding to this ? 5 seconds is
 unacceptable slow and makes them completely unusable.

  --
 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.
 For more options, visit https://groups.google.com/d/optout.


  --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Why are cloud endpoints so slow ?

2014-05-24 Thread Diego Duclos
I've done some (non extensive) tests on google appengine,
and my response times vary from anywhere between 100ms and 5000ms when
directly sending http requests to a cloud endpoints.

Regardless of the actual response time, the google cloud console always
shows a processing time of around 50ms, which, while also somewhat
long-ish, is much more reasonable.

For the 100ms requests, I can safely know that the other 50ms are just
regular latency, but I have no idea where the cloud endpoint could be
spending 4.5 seconds at, and the logs show nothing useful at all.

Does anyone have some guidance for me regarding to this ? 5 seconds is
unacceptable slow and makes them completely unusable.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Connect to GMail using JavaMail

2014-05-16 Thread diego
Hello,

I want to connect to GMail using JavaMail 
1.5.2https://java.net/projects/javamail/downloads. 
I have two kind of clients: for one hand, there're clients who use OAuth 
2.0 2-legged (service account) and they connect to GMail and they can get 
the messages fine. For another hand, there're clients who use OAuth 2.0 
3-legged (normal identification). I can't connect with them to GMail. 


The Java code that I'm using to connect is:

 Properties props = new Properties();
 props.put(mail.imap.ssl.enable, true); 
 props.put(mail.imap.sasl.enable, true);
 props.put(mail.imap.sasl.mechanisms, XOAUTH2);
 props.put(mail.imap.auth.login.disable, true);
 props.put(mail.imap.auth.plain.disable, true);
 Session session = Session.getInstance(props);
 Store store = session.getStore(imap);
 store.connect(imap.gmail.com, *email*, *access_token*);


When I try this code, my debug says:

DEBUG: setDebug: JavaMail version 1.5.2
DEBUG IMAPS: mail.imap.fetchsize: 16384
DEBUG IMAPS: mail.imap.ignorebodystructuresize: false
DEBUG IMAPS: mail.imap.statuscachetimeout: 1000
DEBUG IMAPS: mail.imap.appendbuffersize: -1
DEBUG IMAPS: mail.imap.minidletime: 10
DEBUG IMAPS: enable SASL
DEBUG IMAPS: SASL mechanisms allowed: XOAUTH2
DEBUG IMAPS: trying to connect to host imap.gmail.com, port 993, isSSL 
true
* OK Gimap ready for requests from XX.XX.XX.XX pg7mb36974204wic
A0 CAPABILITY
* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN 
X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH AUTH=XOAUTH2 AUTH=PLAIN 
AUTH=PLAIN-CLIENTTOKEN
A0 OK Thats all she wrote! pg7mb36974204wic
DEBUG IMAPS: AUTH: XOAUTH
DEBUG IMAPS: AUTH: XOAUTH2
DEBUG IMAPS: AUTH: PLAIN
DEBUG IMAPS: AUTH: PLAIN-CLIENTTOKEN
DEBUG IMAPS: protocolConnect login, host=imap.gmail.com, user=MY_EMAILs, 
password=non-null
DEBUG IMAPS: SASL authentication command trace suppressed
DEBUG IMAPS: SASL Mechanisms:
DEBUG IMAPS:  XOAUTH2
DEBUG IMAPS: 
DEBUG IMAPS: SASL client XOAUTH2
DEBUG IMAPS: SASL callback length: 1
DEBUG IMAPS: SASL callback 0: 
javax.security.auth.callback.NameCallback@138bef5
*DEBUG IMAPS: SASL no response*

Well, I don't know what happens but it has to be because of OAuth 2.0 
because I have tried to connect to GMail without OAuth 2.0 (using email and 
password) and it works fine.

Any idea?

-- 

*___Nota:* Según la normativa vigente en materia de Protección de Datos de 
Carácter Personal, le informamos que sus datos han sido incorporados a un 
fichero denominado Clientes y/o Proveedores creado por resolución de la 
Agencia Española de Protección de Datos y del que es responsable *The 
Cloud Gate S.L.*, con CIF: B-18961433. La finalidad del tratamiento de sus 
datos es mantener la relación contractual existente o mantenerle informado 
de novedades y noticias que puedan resultar de su interés. Le informamos 
que usted puede ejercitar sus derechos de acceso, rectificación, 
cancelación y oposición, mediante escrito dirigido a: *The Cloud Gate S.L.*, 
Avda. Constitución 22, 1º 8 - 18012 Granada, o mediante email a la 
siguiente dirección de correo electrónico: i...@thecloud.es La información 
incluida en este e-mail es CONFIDENCIAL, siendo para uso exclusivo del 
destinatario arriba mencionado. Si usted lee este mensaje y no es el 
destinatario indicado, le informamos que está totalmente prohibida 
cualquier utilización, divulgación, distribución y/o reproducción de esta 
comunicación sin autorización expresa en virtud de la legislación vigente. 
Si ha recibido este mensaje por error, le rogamos nos lo notifique 
inmediatamente por esta misma vía y proceda a su eliminación. ***nubbius*es 
una marca registrada por The Cloud Gate S.L.

This information is private and confidential and intended for the recipient 
only. If you are not the intended recipient of this message you are hereby 
notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited. This communication is for information 
purposes only and should not be regarded as an official statement from *The 
Cloud Gate, S.L.* Email transmission cannot be guaranteed to be secure or 
error-free. Therefore, we do not represent that this information is 
complete or accurate and it should not be relied upon as such. All 
information is subject to change without notice. *nubbius* is a 
registered trademark of The Cloud Gate S.L.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Why is appengine so slow communicating with CloudSQL?

2014-05-09 Thread Diego Duclos
This might be me, but I can't see any attachment ?


On Thu, Apr 24, 2014 at 5:46 PM, Myles Bostwick cth...@gmail.com wrote:

 Hi All,

 I hope this is the right place for this question.

 I am seeing some drastic differences in speed between development and
 production on a service call that goes to a CloudSQL backend.

 I ran three tests for comparison, each test ran 2 things:
 1. Varied number of rows fetched from the database, 125, 250, 500, 1000
 and 2000, where a typical row size is on the order of 30 bytes
 2. Ran each row count 20 times to get a sampling

 The three test environments were:
 1. Hosted in appengine connecting to cloudSQL as production will be.
 2. Developer mode locally, but connecting to CloudSQL via a static IP.
 3. Developer mode locally and connecting to a local VM running MySQL.

 Now I would expect a little variance due to the interwebs, but I would
 expect closer to 50 or 100 ms, not 3-4 seconds.

 I've attached a graph of the results for anyone interested. (I mostly just
 want to show of my graph)

 If anyone has any suggestions on what could be causing such a drastic
 slowdown, I would be very appreciative.

 Cheers,

 Myles

 --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: too many appengine frontend instances

2014-05-09 Thread Diego Duclos
The following was posted on the forums:
https://groups.google.com/forum/#!topic/google-appengine-downtime-notify/VmH7s-Eeyso


On Fri, May 9, 2014 at 5:14 PM, Keith Mukai keith.mu...@essaytagger.comwrote:

 Same problem here. Crazy instance numbers since about 4hrs ago. Normally
 3-5 instances and then it grew to 60+. Dead in the water now at my billing
 limit.

 --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Modules vs Multiple Scripts?

2014-05-06 Thread Diego Duclos
Also important: each module is allowed to scale up / down seperatly, which
means you can configure the more important things to scale faster while
allowing slower scaling (and thus lower costs) on less important modules


On Tue, May 6, 2014 at 5:37 AM, Vinny P vinny...@gmail.com wrote:


 On Tue, Apr 29, 2014 at 5:18 PM, ZTNXiLUzVm sc4...@gmail.com wrote:

 I am developing in App Engine with Python and I understand what Modules
 are from reading the 
 documentationhttps://developers.google.com/appengine/docs/python/modules/converting,
 but I thought the process of splitting your code into multiple scripts and
 mapping them in the app.yaml file was supposed to accomplish the same
 thing. Does splitting the code into multiple scripts not actually do
 anything except make the code more organized?



 You may be getting a little confused from the terminology. A Python module
 ( https://docs.python.org/2/tutorial/modules.html ) is a file containing
 Python code. As you said, splitting up your app into different files helps
 with organization, code reuse, and so forth.

 An App Engine module is completely different and not related to the
 concept of Python modules except in the most generic way. It's true that
 GAE modules help with code organization, but it's much more than that. Each
 module tends to be a fully featured application or self-contained service:
 for example, one module is a web site, another module implements the API,
 yet another supplies the backend heavy-lifting logic, and so forth. GAE
 modules also supply other benefits: logs are separated and you can specify
 different instance sizes.


 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com


 --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Can I run an AppEngine app with mixed Java and Go runtimes?

2014-05-05 Thread Diego Duclos
Wouldn't having a module in java and the other in go be a much better
option then hacking this with versions ? This really isn't the intended
usage of versions


On Sat, May 3, 2014 at 7:21 AM, Vinny P vinny...@gmail.com wrote:

 On Thu, May 1, 2014 at 1:32 PM, Ronoaldo Pereira ronoa...@gmail.com
  wrote:

 I'm porting the front-end handlers of a large Java app to Go. However, I'm
 not able to run the Java and Go runtimes in paralell in the development
 server, to share the same datastore backend.

 Is there a way to acomplish that? I'm asking here because I noticed some
 Java code to launch instances from devappserver2 module in the Python SDK.
 I tought that it may be possible to run both a Java module and a Go module
 with that service, if I was using the Java Yaml configuration.




 Yes you can, but you have to upload the Java and Go versions separately as
 different versions within the same application ID. Then you can use App
 Engine services (task queue, datastore, etc) to communicate between each
 version.


 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com

  --
 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.
 For more options, visit https://groups.google.com/d/optout.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Problem update java 7

2013-11-13 Thread Diego González
Hi, I recently upgraded to java 7 using netbeans and 
https://code.google.com/p/nb-gaelyk-plugin/ plugin. When attempting to run 
I get the following error: 

Severe: Unable to instrument sistemaconsultorios.modelo.Administrador. 
Security restrictions may not be Entirely emulated. 
  [java] java.lang.ArrayIndexOutOfBoundsException: 2306 
  [java] at 
com.google.appengine.repackaged.org.objectweb.asm.ClassReader.readLabel 
(ClassReader.java: 1880) 
 

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Organizing webapp2 application

2013-09-14 Thread diego
Im trying to find the right way to organize my webapp2 application. This is
the file structure:

/my-app
app.yaml
main.app
/views
index.html
/handlers
__init__.py
base.py
home.py

handlers/base.py

import webapp2from webapp2_extras import jinja2
class BaseHandler(webapp2.RequestHandler):

@webapp2.cached_property
def jinja2(self):
return jinja2.get_jinja2(app=self.app)

def render_response(self, _template, **context):
rendered_template = self.jinja2.render_template(_template +
'.html', **context)
return self.response.write(rendered_template)

All the handlers extends the BaseHandler

handlers/home.py

from base import BaseHandler# Not sure about importing BaseHandler here
class Name(BaseHandler):

def post(self, name=None):

context = {
'name': name,
}

self.render_response('index', **context)

and this is the main.py file

import osimport webapp2from webapp2_extras import jinja2

CONFIG = {
'debug': True,
'webapp2_extras.jinja2': {
'autoescape': True,
'template_path': os.path.join(os.path.dirname(__file__), 'views'),
'globals': {
'url_for': webapp2.uri_for,
},
},}

app = webapp2.WSGIApplication([
webapp2.Route('/name', handler='handlers.home.Name
http://handlers.home.name/', name='name'),], config = CONFIG, debug
= CONFIG['debug'])

Should I put the routes in the same file? Because all the handlers extends
the BaseHandler i´m not sure if that is the right way to do that. Also I´m
importing webapp2 and extras twice.

thx for the advice

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Organizing webapp2 application

2013-08-28 Thread diego
Im trying to find the right way to organize my webapp2 application. This is
the file structure:

/my-app
app.yaml
main.app
/views
index.html
/handlers
__init__.py
base.py
home.py

handlers/base.py

import webapp2from webapp2_extras import jinja2
class BaseHandler(webapp2.RequestHandler):

@webapp2.cached_property
def jinja2(self):
return jinja2.get_jinja2(app=self.app)

def render_response(self, _template, **context):
rendered_template = self.jinja2.render_template(_template +
'.html', **context)
return self.response.write(rendered_template)

All the handlers extends the BaseHandler

handlers/home.py

from base import BaseHandler# Not sure about importing BaseHandler here
class Name(BaseHandler):

def post(self, name=None):

context = {
'name': name,
}

self.render_response('index', **context)

and this is the main.py file

import osimport webapp2from webapp2_extras import jinja2

CONFIG = {
'debug': True,
'webapp2_extras.jinja2': {
'autoescape': True,
'template_path': os.path.join(os.path.dirname(__file__), 'views'),
'globals': {
'url_for': webapp2.uri_for,
},
},}

app = webapp2.WSGIApplication([
webapp2.Route('/name', handler='handlers.home.Name',
name='name'),], config = CONFIG, debug = CONFIG['debug'])

Should I put the routes in the same file? Because all the handlers extends
the BaseHandler i´m not sure if that is the right way to do that. Also I´m
importing webapp2 and extras twice.

thx for the advice


diego

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] point domain to my app

2013-08-12 Thread diego .
hello there.
im using a custom domain in my GAE app

www.mysuperapp.com -- mysuperapp.appspot.com (this is working i created a 
CNAME and point it to ghs..)
but i also want to give my customers the possibility to use their custom 
domains and or a subdomain in my application

eg:

customer.mysuperapp.com -- www.mysuperapp.com (this one works too)
www.customer.com -- www.mysuperapp.com (not working. i tried creating a 
CNAME and point it to ww.mysuperapp.com  but im getting google *404.* That’s 
an error.

www.mysuperapp.com will handle all the requests and extract the customer 
name from the domain or subdomain and serve the appropiate content

it is possible to do this?

thx so much

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Task Queues not running

2013-06-04 Thread Diego
Mines either.

On Tuesday, June 4, 2013 3:35:41 PM UTC-3, Scott wrote:

 My application isn't running tasks in the task queue right now. It hasn't 
 been for four hours. I get errors on the dashboard when I try to view 
 specific queues (sometimes) or when I try to manually run a task (all the 
 time it seems). Is anyone else having this problem? These tasks really need 
 to run so I'd appreciate a response from Google about this.

 My application id is write-way.

 Hurry.


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: DotNet client and Java Appengine

2012-11-16 Thread Diego Gustavo Paredes Berrú
You can use the GoogleEndPoint project , this project generate service REST 
with Google App Engine so then consume .NET

http://endpoints-trusted-tester.appspot.com/



El viernes, 16 de noviembre de 2012 04:58:04 UTC-5, aswath escribió:

 Any pointers for this??

 Thanks,
 -Aswath


 On Mon, Nov 12, 2012 at 7:56 PM, Aswath Satrasala 
 aswath.s...@gmail.comjavascript:
  wrote:

 Hello,
 I would like to make communication to my java appengine application from 
 a Dotnet client.

 My appengine application uses standard UserService API on the appengine 
 server for login and authentication purpose.

 How can a DotNet client authenticate with appengine appID?  How can I get 
 some data into the Dotnet client from my appengine application?
 What are the recommended protocols and API for this?

 Regards
 -Aswath
 www.AccountingGuru.in






-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/TY6bjvZiNEcJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] after hrd migration app cannot find app data

2012-08-24 Thread Alejandro Diego Garin
Hi,

Anyone could help with this? I just finished the migration I see this error 
in the logs.


unexpected exception: javax.jdo.JDOFatalUserException: Illegal argument
NestedThrowables:
java.lang.IllegalArgumentException: app s~jardincitosonline-hrd cannot access 
app jardincitosonline's data


Thanks.
Alejandro.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/LCDKuH30Mz8J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Renaming GAE application due to high replication migration

2012-07-12 Thread Diego Piccolo
Hi Everyone!

We're looking forward to migrate our app which is currently Master/Slave,
to a new one using high replication instead.

However, nowadays we have a bunch of end users accessing the current
address and would be a big problem to change it from user and product point
of view.

Is it possible to perform a request to migrate this app and keep the
original appId / name?
ps: we've searched the web and docs but even if we delete and try to
recreate a new one it says that the original name can't be used afterwards.

Thanks,
Diego Piccolo

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Datastore admin not working and effective ways to delete / manage bulk data

2012-01-31 Thread Diego Piccolo
Hey Robert..

it would be pretty much like this : delete * from kind or even using a
dummy clause like   delete * from kind where __key__  5

Does that make sense?

Thanks!
Diego Piccolo.

2012/1/31 Robert Kluin robert.kl...@gmail.com

 Hi Diego,
  Could you clarify what you're trying to do?  Perhaps including an
 example (of what you think the query would look like)?


 Robert






 On Mon, Jan 30, 2012 at 11:09, Diego Piccolo dara...@ciandt.com wrote:
  Hello  Everyone,
 
  lately i've been facing a lot of problems with Datastore admin, it
 does'nt
  seem to work, i keep getting:
 
  Error: Forbidden
  Your client does not have permission to get
  URL /_ah/datastore_admin/?app_id=
 
  Plus i must be pretty dumb because it's been too damn complicated to run
 a
  query that could delete help me to purge some of my kinds.
 
  Do you guys have any advice on how could i could do it easily?
 
  Thanks in advance,
  Diego Piccolo.
 
  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Datastore admin not working and effective ways to delete / manage bulk data

2012-01-30 Thread Diego Piccolo
Hello  Everyone,

lately i've been facing a lot of problems with Datastore admin, it does'nt
seem to work, i keep getting:

Error: Forbidden
Your client does not have permission to get URL
/_ah/datastore_admin/?app_id=

Plus i must be pretty dumb because it's been too damn complicated to run a
query that could delete help me to purge some of my kinds.

Do you guys have any advice on how could i could do it easily?

Thanks in advance,
Diego Piccolo.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: automated deployment

2011-11-18 Thread Diego Fejgelis
Never used Jenkins, but you need to specify the --passin parameter to the 
appcfg.

Example of my alias:
alias gae_upload='appcfg.py --passin -e m...@mydomain.com 
update ${PROJ_FOLDER}  ${PASS_FILE}'

The con is that you need to have your password on a plain file. :(

Diego

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/l8A1qfPnAx0J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] HRD uses more datastore writes?

2011-10-21 Thread Diego Ariel Fejgelis
Are you sure the writes are the same in both datastores?

When looking here[1], gives me the impression that HR cost is bigger than 
MS.

[1] http://code.google.com/appengine/docs/python/datastore/hr/

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Qo_NeUBQKdoJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: SMS issue

2011-10-17 Thread Diego Ariel Fejgelis
Try putting the numbers like this:

Cell no example: (11) 1557737333

+5491157737333

+54 Country
9 cellphone
11 area
57737333 actual cell number

Diego

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/f3Wdd0x8Y40J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: How many times did Google Apps Engine went down since it's launch

2011-10-10 Thread Diego Ariel Fejgelis
Ahmed, maybe this could help you a little bit 
http://code.google.com/status/appengine

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Lk0GRVfJSUYJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[appengine-java] Re: Using Concurrent Requests and java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.reflect)

2011-04-13 Thread Diego Medina
On Wed, Apr 13, 2011 at 3:21 PM, Simon Knott knott.si...@gmail.com wrote:
 Hi,
 The concurrent requests setting doesn't allow you to spawn your own threads.
  It merely declares that your application can handle multiple incoming
 requests, on different threads, within the same JVM - previously all Java
 applications have been handling requests in a single-threaded manner.
 Cheers,
 Simon


Thanks for the answer Simon

  Diego


-- 
Diego Medina
Web Developer
http://www.fmpwizard.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] Build index stuck?

2011-04-10 Thread Diego Ezequiel Pérez
 Hi, I have an application which has no data but the datastore index is 
still building. Others completed really quick, but this one is stuck:

App ID: wwweazel7info
Index: Article: article_type ▲ , published ▼

could you take a look at it?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] rights of end-users data when storing it in GAEs datastore

2010-10-31 Thread DIEGO -
Hello. I am planning to develop some end-user services taking advantage
of GAE's service.
I have red GAEs terms very carefully and i am a little bit confused. I
need you to clarity.
Could you ?


http://code.google.com/intl/en/appengine/terms.html (sunday oct/31/2010)


section 8


[...] By submitting, posting or displaying the Content on or through
the Service you give Google a worldwide, royalty-free, and
non-exclusive license to reproduce, adapt, modify, translate, publish,
publicly perform, publicly display and distribute such Content [...]
Furthermore, by creating an Application through use of the Service, you
give Google a worldwide, royalty-free, and non-exclusive license to
reproduce, adapt, modify, translate, publish, publicly perform,
publicly display and distribute such Application [...]


My questions are:


1) if i store any kind of end-user's info into GAE's datastore: os
Google free to publish it ? what about if it is private info ? how can
i warrant my end-users that their info is not going to be publicy
published ? I mean, it is understandable that Google automatically
access to that info to obtain some kind of benefit by providing the
platform, but reserving the rights of publicy publishing end-users info
disallow us (ISVs) to protect them...


2) What does Google mean by reproducing and adapting such
Application ?


3) If Google reserves the right of translating apps, how will Google do
it if my app is developed in java ? is Google going to reverse-ing it ?


4) what is the difference between publishing and distributing an
app ?
if some Google's guy out-there, can you provide me some examples of
such cases please ?


thanks in advance,
D./

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[appengine-java] Re: JDO: Null parent on some children objects

2010-08-26 Thread Diego Fernandes
Hi,
i may find something here 
http://code.google.com/intl/en/appengine/docs/java/datastore/relationships.html


[]'s
Diego


On 26 ago, 04:42, cghersi cristiano.ghe...@gmail.com wrote:
 Hi everybody,

 I'm struggling with a strange problem with JDO.
 I've got two PersistenCapable classes, one having a Collection of
 objects of the second, something like this:

 class First {
 �...@persistent
 �...@primarykey
  Long id;

 �...@persistent(mappedby=owner)
  ArrayListSecond list = new ArrayListSecond();

  ArrayListSecond getList() {
   if (list == null)
    list=new ArrayListSecond();
   return list;
  }

 ...

 }

 class Second {
 �...@persistent
 �...@primarykey
  Key id;

 �...@persistent
  First owner;

  First getOwner() {
   if (owner==null)
    owner = new First();
   return owner;

  ...

 }

 In another class I need to print the owner of all my First objects, so
 I do:
 First obj = ...;
 ArrayListSecond list = obj.getList();
 for (Second s : list) {
  System.out.println(s.getOwner());

 }

 In this loop, I find some Second object having null owner, and I
 cannot understand why.
 Now I have several questions about my data modelling:
 1) Do I need to mark any field with (defaultFetchGroup = true)
 annotation?
 2) Does the check on null object (e.g. if (owner==null) owner = new
 First();) in the getter methods results in any strange behavior?
 3) Does the assignment on definition of objects (e.g.
 ArrayListSecond list = new ArrayListSecond();) results in any
 strange behavior?
 4) Do I need to add any other annotation to owner field of Second
 class?

 Thank you very much for your help!!
 Best regards
 cghersi

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: HTTPS on App Engine

2010-08-26 Thread Diego Fernandes
Hi,

You may find something here 
http://code.google.com/intl/en/appengine/docs/java/config/webxml.html#Secure_URLs

On 26 ago, 05:41, Shawn Brown big.coffee.lo...@gmail.com wrote:
  I tried it but a call via http is still possible and wil not be
  automatically redirected to the https protocol.

 Are you using *.appspot.com?  It doesn't work for a custom domain, does it?

 Also Eclipse doesn't
  like the url-pattern in web-resource-collection and marks it as
  error.

 adding  web-resource-nameasdf/web-resource-name  resolved that for me

  security-constraint
   web-resource-collection

  web-resource-nameasdf/web-resource-name







   url-pattern/load/url-pattern
   /web-resource-collection
   user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
  /security-constraint

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Datastore - Duplication in saving unowned one-to-one relationship

2010-08-26 Thread Diego Fernandes
Hi,
when object is saved using the pm.makePersistent() method, the new
related child object is saved automatically. Since both objects are
new, App Engine creates two new entities in the same entity group.

[]'s
Diego

On 25 ago, 20:01, Rodrigo Sol rodrigo...@gmail.com wrote:
 Hi,

 Probably this is a newbie question, but I spent a whole day searching
 for a solution without success.

 I want to create an one-to-one relationships between two entities
 (City and Costumer). I have a form where I create new costumers. When
 I save this new costumer into the datastore a new register for city
 is created causing one unnecessary duplication.

 I am using unowned relationship and my model is above:

 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 Class City{

     @PrimaryKey
     @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
     @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true)
     private String key;

     @Persistent
     private String nome;
     ...

 }

 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 Class Costumer{

     @PrimaryKey
     @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
     @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true)
     private String key;

     @Persistent
     private String cityKey;
     ...

 }

 And I am saving the Costumer class in this function:

     public void create(Costumer costumer) {
         PersistenceManager pm = Conn.get();
         try {
                 pm.makePersistent(costumer);
         } finally {
             pm.close();
         }
         return errors;

     }

 So, what I am doing wrong? It seems that in owned relationships this
 behavior (duplicate child object) is expected, but I can not
 understand why it is happening here.

 I would be grateful if anyone could help?

 Thanks in advance.

 Rodrigo Sol

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Batch load from DataStore?

2010-02-22 Thread Diego Osse Fernandes
Why you interate the results?




2010/2/21 Ftaylor finbarrtay...@googlemail.com

 Is this the fastest way to load all of the Elements of a given type
 from the DataStore?

 @SuppressWarnings(unchecked)
public static final ListPage loadAllPagesFromDataStore() {
ListPage pages = new ArrayListPage();
PersistenceManager pm = PMF.get().getPersistenceManager();
Query query = null;
try {
query = pm.newQuery(Page.class);
ListPage results = (ListPage)query.execute();
if(results.iterator().hasNext()) {
IteratorPage it = results.iterator();
while(it.hasNext())
pages.add(pm.detachCopy(it.next()));
}
} finally {
query.closeAll();
pm.close();
}
return pages;
}

 I ask because the datastore is meant to be very fast at reading huge
 amounts of data, but slow at writing huge amounts of data, yet this
 query is quite slow for only 100 elements.

 Thanks,

 Finbarr

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Persistence with JPA + GAE

2010-02-10 Thread Diego Osse Fernandes
Hi Johan,
  try this code

try{

cn2.getTransaction().begin();
cn2.persist(e);
cn2.getTransaction().commit();
response.getWriter().write(ok);

} catch(Exception e){

cn2.getTransaction().rollback();
response.getWriter().write(e.getLocalizedMessage());

}finally{
cn2.close();
}


I think this place an exception in persist method.

[]'s
Diego



2010/2/9 Johan Vallejo jvall...@vnperu.com

  Hi Diego
 Yes, i try using Long and Key but with both  i have the error


 Log :

 javax.persistence.PersistenceException: Transaction is still active. You 
 should always close your transactions correctly using commit() or rollback().




 El 09/02/2010 01:06 p.m., Diego Osse Fernandes escribió:

 Hi Johan,

  you can use the Long as PK

  @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 Long id;


  []'s
 Diego

 2010/2/9 Johan Vallejo jvall...@vnperu.com

 Hi Jake,
 Now i have this error

 Log :

 javax.persistence.PersistenceException: Transaction is still active. You 
 should always close your transactions correctly using commit() or rollback().


 this is my code :

 EntityManager cn2 =
 emf.get().createEntityManager();
 distritos dist2 = cn2.find(distritos.class, id);
 evento e = new evento();
 e.setDistrito(dist2);
 Date fecha = new Date();
 e.setFechaCreacion(fecha);
 try{
 cn2.getTransaction().begin();
 cn2.persist(e);
 cn2.getTransaction().commit();
 response.getWriter().write(ok);
 }finally{
 cn2.close();
 }

 Distrito :
 @Entity
 public class distritos implements Serializable {
 @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 @Extension (vendorName=datanucleus, key=gae.encoded-pk,
 value=true)
 Key id;

 --getter and setter--


 El 08/02/2010 03:37 p.m., Jake escribió:

 Hello,

 The Google Datastore has four ways that you can store a Primary Key
 ID:  String, Long, and two variations on Google's own Key object.  If
 you want to create a parent/child relationship between two persisted
 objects (in your case, evento is the parent and distritos is the
 child), then you need to use Google's Key object as the primary ID.
 See:  
 http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys
 If the class is used as a child class in a relationship, the key
 field must be of a type capable of representing an entity group
 parent: either a Key instance, or a Key value encoded as a string.
 So, you have two options:

 1.  Change your Long id values to Key id values.
 2.  Instead of storing private distritos distrito directly in your
 evento object, store a reference to the id: private Long distrito_id

 Jake

 On Feb 6, 4:06 pm, chevelle jvall...@vnperu.com jvall...@vnperu.com 
 wrote:


  Hi
 I am new in the list, in these days i am trying save data between two
 entity beans using JPA but without success, i am cheking the log nd
 says:

 Uncaught exception from servlet
 javax.persistence.PersistenceException: Error in meta-data 
 forbeans.distritos.id: Cannot have a java.lang.Long primary key and be a
 child object (owning field is beans.evento.distrito).

 this is my servlet:
 Long id =
 Long.parseLong(request.getParameter(idDistrito));
 response.setContentType(text/html);
 EntityManager cn = emf.get().createEntityManager();

 Query q = cn.createQuery(SELECT d FROM distritos d WHEREd.id = 
 :codigo);
 q.setParameter(codigo,id);
 distritos dist = (distritos) q.getSingleResult();

 EntityManager cn2 = emf.get().createEntityManager();
 cn2.getTransaction().begin();

 evento e = new evento();
 e.setDistrito(dist);
 Date fecha = new Date();
 e.setFechaCreacion(fecha);

 try{
 cn2.persist(e);
 response.getWriter().write(ok);
 }finally{
 cn2.getTransaction().commit();
 cn2.close();
 }

 this is my entity bean

 Evento:
 @Entity
 public class evento implements Serializable {
 @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 Long id;

 @Temporal(javax.persistence.TemporalType.DATE)
 private Date fechaCreacion;

 @JoinColumn
 @OneToMany(cascade = CascadeType.ALL)
 private distritos distrito;

--getter and setter--

 Distrito:
 @Entity
 public class distritos implements Serializable {
 @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 Long id;
 private String distrito;

 --getter and setter--

 i hope anyone help me, Thank!

 Johan



  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group

Re: [appengine-java] Re: Persistence with JPA + GAE

2010-02-09 Thread Diego Osse Fernandes
Hi Johan,

you can use the Long as PK

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Long id;


[]'s
Diego

2010/2/9 Johan Vallejo jvall...@vnperu.com

  Hi Jake,
 Now i have this error

 Log :

 javax.persistence.PersistenceException: Transaction is still active. You 
 should always close your transactions correctly using commit() or rollback().


 this is my code :

 EntityManager cn2 = emf.get().createEntityManager();

 distritos dist2 = cn2.find(distritos.class, id);
 evento e = new evento();
 e.setDistrito(dist2);
 Date fecha = new Date();
 e.setFechaCreacion(fecha);
 try{
 cn2.getTransaction().begin();
 cn2.persist(e);
 cn2.getTransaction().commit();
 response.getWriter().write(ok);
 }finally{
 cn2.close();
 }

 Distrito :
 @Entity
 public class distritos implements Serializable {
 @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 @Extension (vendorName=datanucleus, key=gae.encoded-pk,
 value=true)
 Key id;

 --getter and setter--


 El 08/02/2010 03:37 p.m., Jake escribió:

 Hello,

 The Google Datastore has four ways that you can store a Primary Key
 ID:  String, Long, and two variations on Google's own Key object.  If
 you want to create a parent/child relationship between two persisted
 objects (in your case, evento is the parent and distritos is the
 child), then you need to use Google's Key object as the primary ID.
 See:  
 http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys
 If the class is used as a child class in a relationship, the key
 field must be of a type capable of representing an entity group
 parent: either a Key instance, or a Key value encoded as a string.
 So, you have two options:

 1.  Change your Long id values to Key id values.
 2.  Instead of storing private distritos distrito directly in your
 evento object, store a reference to the id: private Long distrito_id

 Jake

 On Feb 6, 4:06 pm, chevelle jvall...@vnperu.com jvall...@vnperu.com wrote:


  Hi
 I am new in the list, in these days i am trying save data between two
 entity beans using JPA but without success, i am cheking the log nd
 says:

 Uncaught exception from servlet
 javax.persistence.PersistenceException: Error in meta-data 
 forbeans.distritos.id: Cannot have a java.lang.Long primary key and be a
 child object (owning field is beans.evento.distrito).

 this is my servlet:
 Long id =
 Long.parseLong(request.getParameter(idDistrito));
 response.setContentType(text/html);
 EntityManager cn = emf.get().createEntityManager();

 Query q = cn.createQuery(SELECT d FROM distritos d WHEREd.id = 
 :codigo);
 q.setParameter(codigo,id);
 distritos dist = (distritos) q.getSingleResult();

 EntityManager cn2 = emf.get().createEntityManager();
 cn2.getTransaction().begin();

 evento e = new evento();
 e.setDistrito(dist);
 Date fecha = new Date();
 e.setFechaCreacion(fecha);

 try{
 cn2.persist(e);
 response.getWriter().write(ok);
 }finally{
 cn2.getTransaction().commit();
 cn2.close();
 }

 this is my entity bean

 Evento:
 @Entity
 public class evento implements Serializable {
 @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 Long id;

 @Temporal(javax.persistence.TemporalType.DATE)
 private Date fechaCreacion;

 @JoinColumn
 @OneToMany(cascade = CascadeType.ALL)
 private distritos distrito;

--getter and setter--

 Distrito:
 @Entity
 public class distritos implements Serializable {
 @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 Long id;
 private String distrito;

 --getter and setter--

 i hope anyone help me, Thank!

 Johan



  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] hostname after frame redirection to myapp.appspot.com

2009-06-29 Thread Diego G.

Hello,
I have two questions about redirecting mydomain.com to
myapp.appspot.com (mydomain and myapp are just placeholders).

First. If I want to add my existing mydomain.com using Versions-
Domain Setup-Add Domain from the appengine control panel, I need to
sign up for Google Apps which costs 50$/yr after the free trial. There
is no option to add mydomain.com for free, is it?

Second. I used a frame redirect to map myapp.mydomain.com to
myapp.appspot.com. Unfortunately every link somewhere that I follow
from myapp.mydomain.com takes me to myapp.appspot.com/somewhere, not
to myapp.mydomain.com/somewhere. Is this a problem of myapp running
django? Or is it generally impossible that relative urls point back
relative to where the frame redirect comes from instead of to the
target?

Is there any solution to host an appengine application under a
different domain without paying 50$/yr and without visitors being
taken away from mydomain.com when they follow a link?

Thanks
Diego
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: hostname after frame redirection to myapp.appspot.com

2009-06-29 Thread Diego G.

Thank you very much for the explanations.
But how do I use the free edition to add my domain?
From http://www.google.com/a I am redirected to
http://www.google.com/apps/intl/en/business/index.html. There I read:
Try Google Apps free for 30 days*
$50 per user per year after trial
Begin Free Trial
* You will be asked to provide a credit card number to sign up for the
free Google Apps Premier Edition trial. However, you can cancel at any
time before the end of your free trial and your card will not be
charged.

What exactly do you mean by free edition?

Diego

On Jun 29, 1:41 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 On Mon, Jun 29, 2009 at 12:36 PM, Diego G.diegogr...@ymail.com wrote:

  Hello,
  I have two questions about redirecting mydomain.com to
  myapp.appspot.com (mydomain and myapp are just placeholders).

  First. If I want to add my existing mydomain.com using Versions-
 Domain Setup-Add Domain from the appengine control panel, I need to
  sign up for Google Apps which costs 50$/yr after the free trial. There
  is no option to add mydomain.com for free, is it?

 Yes - you can use the free edition, which doesn't cost you anything.



  Second. I used a frame redirect to map myapp.mydomain.com to
  myapp.appspot.com. Unfortunately every link somewhere that I follow
  from myapp.mydomain.com takes me to myapp.appspot.com/somewhere, not
  to myapp.mydomain.com/somewhere. Is this a problem of myapp running
  django? Or is it generally impossible that relative urls point back
  relative to where the frame redirect comes from instead of to the
  target?

 The latter - if you want this, you need to generate absolute URLs, not
 relative ones, or set a base HREF in your head section. Why frame your
 app, though? You could simply add myapp.mydomain.com as a domain for
 your App Engine app.

 -Nick Johnson



  Is there any solution to host an appengine application under a
  different domain without paying 50$/yr and without visitors being
  taken away from mydomain.com when they follow a link?

  Thanks
  Diego

 --
 Nick Johnson, App Engine Developer Programs Engineer
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
 Number: 368047
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: hostname after frame redirection to myapp.appspot.com

2009-06-29 Thread Diego G.

Thanks.
Is there some reason why the link to the standard edition is so
difficult to find and not mentioned in the google apps documentation?
Or am I simply too ignorant to find it?
Anyway, I am happy to be able to use the service.

Diego

On Jun 29, 4:21 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Check out the Standard Edition - 
 here:http://www.google.com/apps/intl/en/group/index.html

 -Nick Johnson
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Are datastore queries secure?

2009-06-26 Thread Diego G.

Can the queries of my google app to the datastore be sniffed by
anybody?
Or is the transfer encrypted?
Please confirm whether both the request and the response are safe from
being read by anybody (except for google employees, of course).

Another question related to security:
The FAQ says
Google App Engine allows you to serve SSL (HTTPS) traffic through
your appspot.com domain.
Does this imply that I cannot use SSL if I map my google app to a
different domain?

Thanks
Diego

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Download a copy of my application's source code.

2009-01-03 Thread Diego

Unfortunately (for me) my hard drive crashed and I did not have a
backup of my application's source. Is it possible to get a copy of the
files from GAE?

Thank you.

Cheers.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Download a copy of my application's source code.

2009-01-03 Thread Diego

Thanks for the reply, David.

Yep, my mistake. It was a tiny app, but still could have avoided re-
writing it.

On Jan 4, 1:15 pm, David Symonds dsymo...@gmail.com wrote:
 On Sun, Jan 4, 2009 at 12:45 PM, Diego di...@heyboyo.com wrote:
  Unfortunately (for me) my hard drive crashed and I did not have a
  backup of my application's source. Is it possible to get a copy of the
  files from GAE?

 Nope. Make backups and/or use source control next time.

 Dave.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine bloggers?

2008-11-07 Thread Diego

Thanks for the responses. I will check them out.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Move app to another Google Account

2008-10-31 Thread Diego

Thank you all for your responses. What you suggested worked. I invited
the other developer on another Google Account. Then on that new
developer's Google Account I deleted the original creator of the
application. That worked. Thanks again.

On Oct 24, 8:17 pm, Diego [EMAIL PROTECTED] wrote:
 Hi all,

 I was wondering if it was possible tomovea GogleAppEngine
 application from oneGoogleAccounttoanother?

 Cheers,
 Diego
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Move app to another Google Account

2008-10-24 Thread Diego

Hi all,

I was wondering if it was possible to move a Gogle App Engine
application from one Google Account to another?

Cheers,
Diego
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---