I'm trying to deploy the project to the App Engine but I'm getting the following error if I use the 'ü' character as a value inside the app.yaml. I don't want to HTML/URL encode the value. Is there any way to overcome this problem?
ERROR: (gcloud.app.deploy) An error occurred while parsing file: [app.yaml]
Unable to assign value '<unknown>' to attribute 'XXX':
Value u'\xfc' for XXX could not be converted to type str.
app.yaml file:
runtime: php72
env: standard
env_variables:
XXX: "ü"
I've created a ticket to Google Support and I got the following response.
Upon investigating this issue, I found that the only available
workaround is to load an ASCII representation of the non-ASCII
characters and then transform within the app's logic.
Additionally, I found that a Feature Request already exist for this
issue, but currently there is not an ETA for its implementation or
guaranty that it will be done.
Related
I have hired a developer to fix some bugs on my site built on CakePHP framework, but when uploaded the changes he made i got an error:
"Parse error: syntax error, unexpected T_STRING in...."
The strange thing is that the file works OK on the demo, but when try to upload file to the main site the error appears. Can you please have a look at the code and tell me where is that error. Here is the uploaded file: http://textuploader.com/xhok
line 41 $this->ListingProperty->initialize(&$controller);
uses call time pass-by-reference removed in php 5.4
line 49 $this->CommonFunctions->initialize($controller);
has the same issue
see PHP 5.4 Call-time pass-by-reference - Easy fix available?
otherwise the file has no syntactic problems on php 5.5
>php -l a.php
No syntax errors detected in a.php
I managed to fix this issue.The problem was in the FTP program (Filezilla). Forsome reason Filezilla was uploading the files as ASCII and that makes a huge error in some PHP files. I have fixed the issue by changing the upload method as Binary. Here is how to change it:
Edit > Settings > Transfers > File Types > select Binary
Ive been working on get a proxy working for when im school, to access sites that i use alot for work but my school dont like.. This is the error it comes up with when i try to upload the files to googles app engine..
C:\Program Files (x86)\Google\google_appengine>"C:\Python27\python.exe" appcfg.p
y update C:\Users\alastair\Desktop\School Files\Proxy Files\mirrorrr-master\mirrorrr-master
09:44 PM Host: appengine.google.com
Usage: appcfg.py [options] update | [file, ...]
appcfg.py: error: Directory does not contain an School.yaml configuration file
So im very confused on why it is asking for a "School.yaml" But i made one anyway, And even though its been made, it still displays this error, So if anyone can help, Please!
Your full project path contains two space characters and needs to be quoted, also, a trailing slash might be required i.e.:
C:\Python27\python.exe appcfg.py update "C:\Users\alastair\Desktop\School Files\Proxy Files\mirrorrr-master\mirrorrr-master\" assuming that's where you have your app.yaml file.
In your case it's thinking you are pointing to "C:\Users\alastair\Desktop\School" file which does not exist and thus showing the error.
As the tite says; I'm having problem accessing static files with special character in them.
I have the following folder structure: "war/public/mystuff/images/my_weird_åäö_chars.png", but when I try to access the image with special character in it I get response 404. Any other file not containing special character works.
On the Dev-server everything works fine, but on the Production-server it can't find the files. Even if I escape the characters in the url they can't be found for some reason.
Is there any setting in the web.xml that I should make so that it allows UTF-8 characters in the filename? Or any other settings?
It's might be worth mentioning that I probably can't change how I access these files (meaning I can't for example url-escape the path before I retrieve the file), the page is created using Construct 2 which builds the "app" to HTML5.
Thanks!
I'm afraid you're out of luck. I'm having the same issue with special characters (~ in this instance). And when running mvn appengine:update the log spits out:
Aug 13, 2015 3:56:15 PM com.google.appengine.tools.admin.AppVersionUpload addFile
SEVERE: Invalid character in filename: __static__/img/0~452203~200~150~2
It seems that you cannot upload static files with none-ascii characters so the 404 is really a 404 (the file is not sent to GAE)
There is a bug-tracking thread here, but seems no progress has been made:
https://code.google.com/p/googleappengine/issues/detail?id=2211
I've looked around but found no workaround other than to rename your files
I am using cakephp-2.4.4 When I have backed my project in console this giving me below error
myphp version :5.4.12
If any body face this types of problem.Please help me to solve it.
I can ensure there is no any problem in environment variable.I have checked.
Bake is run in Console directory.Try in app/Console
Call Console cake
In the early days it was recommended to put cake in your path so you could type cake anywhere. Eventually this was realised to be a bad idea, it's not the recomended way to do things any more instead use the executable that's in your application:
> cd my\app
> Console\cake
Welcome to CakePHP v2.x.x Console
---------------------------------...
Read the error message
If using the correct executable doesn't immediately fix the problem - read the error message. It's not possible to say more as the image in the question truncates the output, however it contains:
<title>... Errors</title>
This in an indication that the output is a cakephp error i.e. the html you're seeing is the result of a fatal error of some kind (e.g. a missing plugin, model or other class).
Read the error message (or open app\tmp\error.log and read it there), address the problem and Console\cake will work as expected.
When I try to update my Google App Engine app, I get the following error:
11:15 AM Rolling back the update.
Error 400: --- begin server output ---
Max error blob size is 10240 bytes. Error blob "default" is 11875 bytes.
--- end server output ---
Any idea how to fix this?
Note:
I have deployed this app many times. I'm not sure what change I may have made to get this error.
Note 2:
I just ran appcfg.py with the --noisy option and I see the following generated line during the update attempt. I still don't know how to fix this.
2012-11-15 12:04:37,477 INFO appcfg.py:1575 Adding errorblob default (11874 bytes, type=text/html) to batch.
Note 3:
It turned out to be the following lines in the app.yaml file:
error_handlers:
- file: server-error.html
Please see http://code.google.com/p/googleappengine/issues/detail?id=3759.
I can now update the app again after commenting those lines out.
It turned out to be the following lines in the app.yaml file:
error_handlers:
- file: server-error.html
Please see http://code.google.com/p/googleappengine/issues/detail?id=3759.
I can now update the app again after commenting those lines out.
from http://cloud.google.com/appengine/docs/python/config/appconfig
When certain errors occur, App Engine serves a generic error page. You can configure your app to serve a custom static file instead of these generic error pages, so long as the custom error data is less than 10 kilobytes
The issue is the SIZE of your server-error.html file itself.