[google-appengine] Dispatch routing to specific module

2016-09-15 Thread Paul Canning
Is there anyway to achieve this at all? We are currently using a specific version, "dev", of our module, alongside the live version. Ideally we want to use a custom subdomain to point to the dev version, rather then using the horrible long URL. However, as stated here,

[google-appengine] Re: Appengine routing rules not working ...

2016-09-15 Thread Paul Canning
Some of the app engine console was updated. Instead of setting a "default" version, it now uses traffic splitting. So your live version is the default, as it gets 100% of the traffic. I also believe you cannot dispatch to specific module versions. Dispatch.yaml only allows routing to a module

[google-appengine] Daily usage has shot up, eating through thousands of instance hours

2016-09-01 Thread Paul Canning
We have noticed that in the past month, instance hours (front end and Cloud SQL) have shot up, in some cases tripling what it used to be. We have 3 main app engine modules running 1. WordPress site 2. CodeIgniter based PHP web app 3. CodeIgntier based PHP custom API We don't have a

[google-appengine] TaskAlreadyExistsException does not provide getMessage()

2015-11-17 Thread Paul Canning
I am using named Tasks in my PHP GAE application (using the current time, to the minute, stops a ton of tasks being submitted) and noticed that when TaskAlreadyExistsException is hit, there is no getMesaage() for the exception. Same goes for InvalidArgumentException. -- You received this

[google-appengine] How to add a task to Push Queue from a different module?

2015-11-16 Thread Paul Canning
I have two "modules", one being the main application and the other acting as an API. Both use the same Cloud SQL and Storage. How can I, in my code, add a task, from the API, to the Push Queue and have it run code that sits in the main application module? Is it simply a case of adding a task

[google-appengine] Re: How to add a task to Push Queue from a different module?

2015-11-16 Thread Paul Canning
t; TaskOptions task = > TaskOptions.Builder.withUrl(url).method(TaskOptions.Method.GET) > .header("Host", > ModulesServiceFactory.getModulesService().getVersionHostname(MODULE_WEB_TASKS_NAME, > > MODULE_WEB_TASKS_VERSION)); > QueueFactory.getDefault

[google-appengine] Re: Can Push Queue tasks be executed in order?

2015-11-16 Thread Paul Canning
; <https://cloud.google.com/appengine/docs/python/config/queue?hl=en#Python_Setting_the_storage_limit_for_all_queues> > . > > Cheers, > Adam > > On Friday, November 13, 2015 at 9:04:05 AM UTC-5, Paul Canning wrote: >> >> Say if I have 10 tasks I need to run, is the

[google-appengine] Re: CodeIgniter - PHP Push Tasks giving different outcomes

2015-11-13 Thread Paul Canning
: admin? On Thursday, November 12, 2015 at 7:22:28 PM UTC, Joshua Johnston wrote: > > Can you show us what the handlers section of your yaml looks like for the > non-working module? > > On Thursday, November 12, 2015 at 12:42:42 PM UTC-5, Paul Canning wrote: >> >> I ha

[google-appengine] Re: where the release notes for app engine 1.9.29?

2015-11-13 Thread Paul Canning
Would be even nicer for them to tell cusomters when new versions are made live :/ On Friday, November 13, 2015 at 3:45:28 PM UTC, Rif Kiamil wrote: > > How can you put me on a runtime with no release notes? > -- You received this message because you are subscribed to the Google Groups "Google

Re: [google-appengine] Re: Google App Engine & Google Play Music... making apps that manage playlists on GAE

2015-11-13 Thread Paul Canning
guages (the interface is REST, and is > how the unofficial api accesses everything). Google just needs someone to > write a thin wrapper over it and make it available, or at the very least, > remove the blocking so the existing unofficial api can work. > > On Fri, Nov 13, 2015, 10:44 AM Pau

[google-appengine] Re: Google App Engine & Google Play Music... making apps that manage playlists on GAE

2015-11-13 Thread Paul Canning
The thing is, it IS asking a lot. It's not like it'll take one guy an afternoon of work. I highly doubt they'll make any form of API for Google Music, as you can create playlists etc on the website already. People wanting an API for their own personal projects are going to be numbered in the

[google-appengine] Re: CodeIgniter - PHP Push Tasks giving different outcomes

2015-11-13 Thread Paul Canning
Yea, I may also implement checking the request headers that the push tasks queue sets. Cheers! On Friday, November 13, 2015 at 1:45:01 PM UTC, Joshua Johnston wrote: > > login: admin is the way we do them as well. > > On Friday, November 13, 2015 at 5:00:25 AM UTC-5, Paul C

[google-appengine] Can Push Queue tasks be executed in order?

2015-11-13 Thread Paul Canning
Say if I have 10 tasks I need to run, is there a way I can make sure tasks 1-9 are complete (in any order) before task 10 is launched? -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving

[google-appengine] CodeIgniter - PHP Push Tasks giving different outcomes

2015-11-12 Thread Paul Canning
I have a CI app and I am trying to get Push Tasks to work. I have a controller, controller_a, with a method, method_a, which tells GAE to add a task to the queue, to hit controller_a/method_b, with a basic payload. Method_b simply writes a file to GCS (using verified working code). Now, my

[google-appengine] Re: PHP - No HTTP_X_REQUESTED_WITH/X-Requested-With header given for ajax requests

2015-10-21 Thread Paul Canning
Yes, I checked all headers, using Chrome Inspector, POSTMan and using my PHP app to spit them out in JSON format. On Tuesday, October 20, 2015 at 8:09:42 PM UTC+1, Kaan Soral wrote: > > Are you checking all the headers by the way? > > Usually the naming of headers change, but with Python,

[google-appengine] PHP - No HTTP_X_REQUESTED_WITH/X-Requested-With header given for ajax requests

2015-10-20 Thread Paul Canning
I am making various AJAX requests from a HTML5 web-app to my PHP application (CodeIgniter) on GAE (PHP), and I am not seeing the HTTP_X_REQUESTED_WITH/X-Requested-With header in the headers. In a slightly related issue, I am also not getting the Content-Length headers from GAE (PHP). -- You

[google-appengine] Cloud Storage getImageServingUrl questions

2015-09-23 Thread Paul Canning
I have a page that loads in a lot of different sized images via AJAX, some "landscape" (1280x720) and some "portrait" (720x1280). I'd like to display them in Bootstrap 3, using the responsive image class. Ideally it'd be good to show all images using a max height limit, say 200px. Using

Re: [google-appengine] Re: Cloud Storage getImageServingUrl questions

2015-09-23 Thread Paul Canning
s/php/refdocs/classes/google.appengine.api.cloud_storage.CloudStorageTools#method_getImageServingUrl> > ? > > > Original[image: OriginalImage] > Cropped[image: Image] > Not Cropped[image: Image] > > > On Wednesday, September 23, 2015 at 9:58:28 AM UTC-4, Paul Canning wrote: >> >>

[google-appengine] Download specific Module code?

2015-08-04 Thread Paul Canning
I know you can download your default module code using appcfg.py download_app and even a specific version of the default module. Nut is it possible to download the code of a MODULE? E.G I have the the default app, Website A. I thne have a module, which is an entirely different site, Website B.

Re: [google-appengine] Re: Download specific Module code?

2015-08-04 Thread Paul Canning
. There is no need to specify a module. On Tuesday, August 4, 2015 at 6:32:00 AM UTC-4, Paul Canning wrote: I know you can download your default module code using appcfg.py download_app and even a specific version of the default module. Nut is it possible to download the code of a MODULE? E.G I have

Re: [google-appengine] Re: Download specific Module code?

2015-08-04 Thread Paul Canning
=u'module_name'). --- end server output --- On Tue, Aug 4, 2015 at 4:05 PM, Paul Canning p...@drawandcode.com wrote: I think you have misunderstood. The download_app command ONLY downloads the default app engine module for a project. Example: - Project - top level, google Cloud Platform

[google-appengine] Re: Download specific Module code?

2015-08-04 Thread Paul Canning
Also, for download_app the -A option does not work (for me) unless I put the PROJECT name. I tried app (modules) names but it says the application doesnt exist. I have full permissions. Do you have to login to appcfg.py download_app in any way to show you are authorized? I tried appcfg.py

Re: [google-appengine] Re: Download specific Module code?

2015-08-04 Thread Paul Canning
modules are present. What I think is happening with you is you are confusing App Engine modules https://cloud.google.com/appengine/docs/python/modules/ and company decided modules. Do they have different app ids? On Tuesday, August 4, 2015 at 6:32:00 AM UTC-4, Paul Canning wrote: I know you

[google-appengine] Billing issue

2015-08-03 Thread Paul Canning
Hi, I have an outstanding bill to pay (due to a card being cloned and therefore cancelled) but I'd like to know if there is a way to pay the bill by assigning it to a new billing account, transferring the balance if you will. I understand I can just pay the bill with a new card (I think!) but

[google-appengine] Re: Dev App server giving error Call to undefined function move_uploaded_file()

2015-07-29 Thread Paul Canning
/downloads On Tue, Jul 28, 2015 at 2:03 AM, Paul Canning p...@drawandcode.com wrote: Google Cloud SDK 0.9.70 app 2015.07.16 app-engine-java 1.9.23 app-engine-python 1.9.23 app-engine-python-extras 1.9.21 bq 2.0.18 bq-win 2.0.18 core 2015.07.16 core-win 2015.06.02 gcloud 2015.07.16 gsutil 4.13

[google-appengine] Re: Dev App server giving error Call to undefined function move_uploaded_file()

2015-07-28 Thread Paul Canning
at 12:31 AM, Mars Lan mars...@google.com wrote: What version of SDK are you using? On Mon, Jul 27, 2015 at 4:25 PM, Paul Canning p...@drawandcode.com wrote: I'll give it a go, but like I said, I've never used those flags before and it's worked fine. Why all of a sudden do I need to use them

[google-appengine] Re: Dev App server giving error Call to undefined function move_uploaded_file()

2015-07-27 Thread Paul Canning
using terminal or launcher? On Monday, July 27, 2015 at 3:27:21 AM UTC-7, Paul Canning wrote: The dev app server has started giving me the error: Call to undefined function move_uploaded_file() I am using this same function on a live module and it has worked perfectly in the past on the dev

[google-appengine] Re: Dev App server giving error Call to undefined function move_uploaded_file()

2015-07-27 Thread Paul Canning
mentioned in my reply, I think this should move to stackoverflow, where you'll find a lot more people who can help. Be sure to include the full error message and code context when you do so. Best wishes, Nick On Monday, July 27, 2015 at 5:19:20 PM UTC-4, Paul Canning wrote: Windows 7, 64bit

[google-appengine] Re: Dev App server giving error Call to undefined function move_uploaded_file()

2015-07-27 Thread Paul Canning
--php_gae_extension_path. They are automatically specified when running from the launcher, and you can see the exact command from the log window. On Mon, Jul 27, 2015 at 4:11 PM, Paul Canning p...@drawandcode.com wrote: Can you link to any documentation? I've never had to do that before. I've always

[google-appengine] Re: Dev App server giving error Call to undefined function move_uploaded_file()

2015-07-27 Thread Paul Canning
for things to work correctly. On Mon, Jul 27, 2015 at 2:34 PM, Paul Canning p...@drawandcode.com wrote: Sorry my reply was to the message above yours. I'll do a full break down tomorrow. Despite posting in the wrong place, has anyone got any insight on this issue? On 27 Jul 2015 22:21, Nick

[google-appengine] Dev App server giving error Call to undefined function move_uploaded_file()

2015-07-27 Thread Paul Canning
The dev app server has started giving me the error: Call to undefined function move_uploaded_file() I am using this same function on a live module and it has worked perfectly in the past on the dev server. I am using PHP 5.5, defined in the config yaml file. -- You received this message

[google-appengine] Re: Cron - targeting a particular version of a particular module

2015-07-24 Thread Paul Canning
to add, my above answer only works for cron.yaml On Wednesday, July 22, 2015 at 3:59:48 PM UTC+1, Paul Canning wrote: Wait, I got it. You can target the versions using the format: version-dot-module e.g. 1-5-dot-main-module On Wednesday, July 22, 2015 at 3:53:36 PM UTC+1, Paul Canning

[google-appengine] Re: Have you had success with Traffic Splitting? How do you use it to roll out new versions?

2015-07-24 Thread Paul Canning
Any word on when we can use it with non-default modules? On Tuesday, July 21, 2015 at 6:53:17 PM UTC+1, David Hardwick wrote: Hello, We haven't used Traffic Splitting yet but it has been an available feature for a while and rumor has it that traffic splitting for non-default modules could

[google-appengine] Re: Cron - targeting a particular version of a particular module

2015-07-22 Thread Paul Canning
I am facing a similar issue. Firstly, how do you target a specific version of a module in the dispatch.yaml? The docs only talk about modules. Secondly, is there anyway to use more then 10 dispatch rules? I have already had to use 5 for routing subdomains (unless there is another way to

[google-appengine] Re: Cron - targeting a particular version of a particular module

2015-07-22 Thread Paul Canning
Wait, I got it. You can target the versions using the format: version-dot-module e.g. 1-5-dot-main-module On Wednesday, July 22, 2015 at 3:53:36 PM UTC+1, Paul Canning wrote: I am facing a similar issue. Firstly, how do you target a specific version of a module in the dispatch.yaml

Re: [google-appengine] Naked domain has stopped working

2015-04-21 Thread Paul Canning
, 2015 at 11:12 AM, Paul Canning pa...@drawandcode.com javascript: wrote: I have just checked today and it seems like the naked domain for my app is no longer working. Has anything changed in the past few days about naked domains? Can you screenshot the error page? Is it a standard Google

[google-appengine] Naked domain has stopped working

2015-04-20 Thread Paul Canning
I have just checked today and it seems like the naked domain for my app is no longer working. Previously, I could go to http://mydomain.com and it would load up http://www.mydomain.com (this isn't my actual domain!) BUT, now, going to http://mydomain.com simply shows This web page is not

[google-appengine] How to dispatch to a specific version of a module?

2015-04-17 Thread Paul Canning
Is there a way to route URLs, Tasks or CRON jobs to specific module versions? E.g in dispatch.yaml - url: */mobile/* module: mobile Say I have two versio n of the mobile module, alpha and beta. Can I specify to send the request to alpha mobile module? Or will it always send it to the

Re: [google-appengine] Re: Modules and GAE Launcher (PHP)

2015-04-17 Thread Paul Canning
Not really the solution I was after, but ho-hum. On Thursday, April 16, 2015 at 11:48:53 PM UTC+1, Mars Lan wrote: If you really want precise control over the loading order, please run dev_appserver directly from command line. On Thursday, April 16, 2015 at 1:55:50 AM UTC-7, Paul Canning

Re: [google-appengine] Re: Modules and GAE Launcher (PHP)

2015-04-16 Thread Paul Canning
the second module, it fails. On 15 Apr 2015 21:37, Mars Lan mars...@google.com wrote: I assume you're on Mac? Is so, you should be able to set the Extra Flags to /absolute/path/to/your/module.yaml and expect it to work. On Wednesday, April 15, 2015 at 7:19:49 AM UTC-7, Paul Canning wrote

[google-appengine] Re: Modules and GAE Launcher (PHP)

2015-04-15 Thread Paul Canning
Any help with this? Still can't get it to work On Thursday, April 9, 2015 at 11:58:36 AM UTC+1, Paul Canning wrote: I tried the following in the Launch Settings: module_dir/module_config.yaml module_dir /module_dir /module_dir/module_config.yaml Nothing works. -- You received

[google-appengine] Re: Modules and GAE Launcher (PHP)

2015-04-09 Thread Paul Canning
I tried the following in the Launch Settings: module_dir/module_config.yaml module_dir /module_dir /module_dir/module_config.yaml Nothing works. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop

[google-appengine] Re: Modules and GAE Launcher (PHP)

2015-04-09 Thread Paul Canning
the GoogleAppEngineLauncher application, open the Application Settings window and add the list of modules to the Launch Settings Extra Flags field. On Wednesday, April 8, 2015 at 3:35:38 AM UTC-7, Paul Canning wrote: I am unable to figure out how you use modules with the GAE launcher (PHP version). Is it even

[google-appengine] Modules and GAE Launcher (PHP)

2015-04-08 Thread Paul Canning
I am unable to figure out how you use modules with the GAE launcher (PHP version). Is it even possible? I can use local modules by using the dev_appserver.py command line tool, but I'd like to control it with the launcher. I have added my main app, which is the default module, and then tried

[google-appengine] Re: Managing your App Engine solution from your mobile device

2015-04-08 Thread Paul Canning
Will there be apps for the Play Store Console and Cast Console? On Tuesday, April 7, 2015 at 8:20:32 PM UTC+1, Michael Thomsen (Google Inc.) wrote: We recently announced the beta of Cloud Console for Android, and I wanted to make sure everyone here was aware of that. Details here:

Re: [google-appengine] Re: More Quota issues

2015-04-02 Thread Paul Canning
From what I understood, under the free trial, anything above the free daily quota would be taken from the $300 credit. (with budget set to 0, which was the default. Again, in the trial, I assumed this value didn't matter at all) Under the free trial, we went over a quota (instance hours I think)

Re: [google-appengine] Re: More Quota issues

2015-04-01 Thread Paul Canning
not sufficient. Once you hit that limit, all quotas return errors. Could you try increasing it and then letting us know? Thanks On Monday, March 23, 2015 at 10:12:54 AM UTC-4, Paul Canning wrote: Yet again I am getting the 503 Over Quota message, despite all my quota report being OK. Currently, my

[google-appengine] Urgent caching issues

2015-03-27 Thread Paul Canning
I am getting serious caching issues with GAE PHP that I need to resolve. I have set headers in the PHP script to: $this-output-set_header(Cache-Control: no-store, no-cache, must-revalidate, max-age=0); $this-output-set_header(Pragma: no-cache);

[google-appengine] How to redirect a URL (static directory file) to an object in GCS?

2015-03-25 Thread Paul Canning
I have a static file in my app that ideally needs to sit in a bucket in GCS. Unfortunately, there are old references to the direct URL, so I am unable to use the GCS public URL. How can I redirect (think htaccess 301) the static file URL to the GCS object URL? Example:

[google-appengine] Dashboard show old/renamed modules

2015-03-24 Thread Paul Canning
I have some modules that I renamed to better names for organisation purposes. In the dashboard, the old name are still showing in the drop down. How can I remove them? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from

[google-appengine] Re: Custom Domain DNS setup changed, probably

2015-03-24 Thread Paul Canning
I was under the impression naked domain don't work now. I recently setup app engine and added a custom domain. The naked domain doesn't work alone, and I had to add the www sub domain. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To

[google-appengine] Re: Google Cloud Storage caching files despite disabling cache

2015-03-23 Thread Paul Canning
wrote: As Mars mentioned, enable_cache has nothing to do with the Cache-Control headers that are used when serving objects from Google Cloud Storage. If controls the read-through cache that is used internally inside of app engine. On Saturday, 21 March 2015 14:41:57 UTC-7, Paul Canning

Re: [google-appengine] Unable to use gsutil despite doing authentication steps

2015-03-23 Thread Paul Canning
On Fri, Mar 20, 2015 at 7:08 AM, Paul Canning p...@drawandcode.com wrote: As per the title, I am unable to use gsutil CLI despite running gcloud auth login and trying gsutil config It seems to let me authenticate, but when I try to run a command such as gsutil ls I get: You are attempting

[google-appengine] Error 302 with Tasks in CodeIgniter

2015-03-21 Thread Paul Canning
I am trying to get some Tasks working with Codegniter, but they simply fail after being added to the queue, with Error 302. You can read here for more info: http://stackoverflow.com/questions/29077055/gae-task-queues-and-error-302-app-error I am thinking its due to how CI uses routes and

[google-appengine] Re: Google Cloud Storage caching files despite disabling cache

2015-03-21 Thread Paul Canning
Again I understand, but it was still caching with it set to false -- 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] Increasing EMail quota from 100 ( Paid app )

2015-03-20 Thread Paul Canning
Whilst not a fix per se, have you looked at a service like Mandrill? -- 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] Unable to use gsutil despite doing authentication steps

2015-03-20 Thread Paul Canning
As per the title, I am unable to use gsutil CLI despite running gcloud auth login and trying gsutil config It seems to let me authenticate, but when I try to run a command such as gsutil ls I get: You are attempting to access protected data with no configured credentials. Please visit

[google-appengine] Re: Google Cloud Storage caching files despite disabling cache

2015-03-19 Thread Paul Canning
Understood, but why is GCS caching with the current enable_cache setting set to false? Do I have to do anything specific with the way I use file_put_contents or fwrite? Should I delete the object first? -- You received this message because you are subscribed to the Google Groups Google

[google-appengine] Re: CodeIgniter PHP Framework RewriteRules

2015-03-19 Thread Paul Canning
I have a CodeIgniter application running on GAE. There are plenty of answers on Google if you look, but to replace the .htaccess (as GAE doesn't use htaccess), use the following in your app.yaml: handlers: - url: /.* script: index.php On Thursday, March 19, 2015 at 11:51:32 AM UTC, Victor

[google-appengine] Google Cloud Storage caching files despite disabling cache

2015-03-19 Thread Paul Canning
I am using file_put_contents and in some cases fopen + fwrite to create files in GCS. I am setting enable_cache to false in the stream context, yet the files are being cached and hard-refreshing the page does nothing. I even added in the header Cache-Control = no-cache even though I don't

[google-appengine] Re: TinyWebDB problem

2015-03-19 Thread Paul Canning
Well, are you a direct member of the project? On Thursday, March 19, 2015 at 11:53:49 AM UTC, Developer Account wrote: I'm using App engine to create tinyWebDB when I click on dashboard it takes me to page that says: Access denied to group members To access App Engine, you must be a direct

Re: [google-appengine] Local app.yaml file gives different results to remote file

2015-03-18 Thread Paul Canning
wrote: On Tue, Mar 17, 2015 at 5:22 AM, Paul Canning pa...@drawandcode.com javascript: wrote: handlers: - url: /task.php script: task.php Locally, I can access http://localhost:8080/test.php, remotely, I get the CI 404 page. Why would there be a difference? Well, first of all I

Re: [google-appengine] Error 302 for Tasks

2015-03-18 Thread Paul Canning
On Mon, Mar 16, 2015 at 10:11 AM, Paul Canning p...@drawandcode.com wrote: I am trying to use Tasks in my application, but when they try to run, I get a 302 error. I am using the CodeIgniter framework. Below is my code to add a task (I can see the task in the queue, it just fails for some

[google-appengine] Local app.yaml file gives different results to remote file

2015-03-17 Thread Paul Canning
In my CodeIgniter application, I have set a handler in the app.yaml file for the following: handlers: - url: /task.php script: task.php This file is in the root directory. In a typical LAMP/WAMP environment, a .htaccess file would be used to allow access, as typically you are only allowed

[google-appengine] Setting log level when running dev_appserver.py still shows INFO messages?

2015-03-17 Thread Paul Canning
I am trying to run the app engine and only show errors in the log console. I tried: dev_appserver.py my_app --log_level=error The app runs fine, but I still see a ton of INFO messages in the console?! I thought it was supposed to filter them out? -- You received this message because you are

[google-appengine] Error 302 for Tasks

2015-03-16 Thread Paul Canning
I am trying to use Tasks in my application, but when they try to run, I get a 302 error. I am using the CodeIgniter framework. Below is my code to add a task (I can see the task in the queue, it just fails for some reason) I think the issue is to do with the URL defined in the PusTask.

[google-appengine] All qupates show OK, reports as Over Quota when visiting app

2015-03-16 Thread Paul Canning
As the title. All quotas in the dev console for my app say OK, yet i get a 503 Over Quota error when visiting the app. I am currently using the free $300 and 30 days. If it is the case that I have reached some limits for the free account, why are all quotas reporting OK? -- You received

Re: [google-appengine] Re: All qupates show OK, reports as Over Quota when visiting app

2015-03-16 Thread Paul Canning
The app ID is adgen-web-2015 On 16 Mar 2015 23:40, Shobhit shobh...@google.com wrote: Can you please tell us your project ID, so that we can look over it. On Monday, March 16, 2015 at 1:17:33 PM UTC-4, Paul Canning wrote: As the title. All quotas in the dev console for my app say OK, yet i