Getting error when deploying an app into the GAE - google-app-engine

I am trying to deploy an app into the GAE but I am getting this error:
appcfg.py -A email-1203 update test/11:25 AM Application: email-1203; version: 1
11:25 AM Host: appengine.google.com
11:25 AM
Starting update of app: email-1203, version: 1
11:25 AM Getting current resource limits.
2016-01-27 11:25:50,978 ERROR appcfg.py:2456 An error occurred processing file '': HTTP Error 403: Forbidden Unexpected HTTP status 403. Aborting.
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u's~email-1203').
--- end server output ---

Related

firebase deployment issue with a react app

I'm trying to deploy my react app on firebase but i get this error:
Error: Failed to list Firebase projects. See firebase-debug.log for more info.
and in the firebase-debug.log file this shows:
[info] First, let's associate this project directory with a Firebase project.
[info] You can create multiple project aliases by running firebase use --add,
[info] but for now we'll just set up a default project.
[info]
[debug] [2021-03-20T19:18:31.200Z] > refreshing access token with scopes: []
[debug] [2021-03-20T19:18:31.202Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
[debug] [2021-03-20T19:18:32.948Z] <<< HTTP RESPONSE 200 {"expires":"Mon, 01 Jan 1990 00:00:00
GMT","cache-control":"no-cache, no-store, max-age=0, must-revalidate","date":"Sat, 20 Mar 2021 19:18:28 GMT","pragma":"no-cache","content-type":"application/json; charset=utf-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","server":"scaffolding on HTTPServer2","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"","accept-ranges":"none","transfer-encoding":"chunked"}
[debug] [2021-03-20T19:18:33.023Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects pageSize=100
[debug] [2021-03-20T19:18:35.619Z] Failed to make request: invalid json response body at https://firebase.googleapis.com/v1beta1/projects?pageSize=100 reason: Unexpected token < in JSON at position 0
[debug] [2021-03-20T19:18:37.235Z] FirebaseError: Failed to make request: invalid json response body at https://firebase.googleapis.com/v1beta1/projects?pageSize=100 reason: Unexpected token < in JSON at position 0
at Client.request (C:\Users\john tucker\AppData\Roaming\npm\node_modules\firebase-tools\lib\apiv2.js:109:19)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[error]
[error] Error: Failed to list Firebase projects. See firebase-debug.log for more info.
I have already tried to logout and login and made sure that my app exists in the firebase console .
I also get this error when I type firebase init in the terminal :
(node:12720) UnhandledPromiseRejectionWarning: FirebaseError: Failed to make request to https://firebase-public.firebaseio.com/cli.json
at Client.doRequest (C:\Users\john tucker\AppData\Roaming\npm\node_modules\firebase-tools\lib\apiv2.js:211:19)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:12720) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:12720) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
You have to follow this steps to deploy your react app online with fire-base hosting :
npm run build => Run the following command to create a build directory with a production build of your app
npm install -g firebase-tools => To host your site with Firebase Hosting, you need the Firebase command-line tool (CLI). Run the following npm command to install the CLI on your system globally
firebase login => If you're not logged in, you'll be asked to enter the credentials for your google account.
firebase init => to initialize firebase in your react app
firebase deploy => Firebase will now run the deploying process and will give you a unique URL where your app is deployed

Google App Engine - PHP - Mail not Working

I'm trying to send an email via PHP on GAE.
I use the code from here: cloud.google.com/appengine/docs/standard/php/mail
And a very minimal app.yaml that looks like so:
runtime: php72
handlers:
- url: .*
secure: always
script: auto
I get an error in app engine logs:
[ERROR 0 /index.php] PHP message: PHP Fatal error: Uncaught google\appengine\runtime\RPCFailedError: Remote implementation for mail.Send failed in /srv/vendor/google/appengine-php-sdk/google/appengine/runtime/VmApiProxy.php:179 Stack trace: #0 /srv/vendor/google/appengine-php-sdk/google/appengine/runtime/ApiProxy.php(40): google\appengine\runtime\VmApiProxy->makeSyncCall('mail', 'Send', Object(google\appengine\MailMessage), Object(google\appengine\base\VoidProto), 60) #1 /srv/vendor/google/appengine-php-sdk/google/appengine/api/mail/Message.php(146): google\appengine\runtime\ApiProxy::makeSyncCall('mail', 'Send', Object(google\appengine\MailMessage), Object(google\appengine\base\VoidProto)) #2 /srv/source/contactForm.php(188): google\appengine\api\mail\Message->send()
When using regular PHP mail function, it also fails.
On local dev env for GAE PHP it also crashes with the following error:
Uncaught google\appengine\runtime\RPCFailedError: Remote implementation for mail.Send failed in /home/dima/google-cloud-sdk/platform/google_appengine/php/sdk/google/appengine/runtime/RemoteApiProxy.php:92
Any ideas?

Deploy app in google app engine

while deplying app in google app engine i always got following errors...
2014-08-10 03:30:58 Running command: "['C:\\Python27\\python.exe', '-u', u'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=rjt.rjtshrm94#gmail.com', '--passin', 'update', u'C:\\Users\\Rjt\\Desktop\\New folder (3)']"
03:31 AM Application: my-app-chat; version: 1
03:31 AM Host: appengine.google.com
03:31 AM
Starting update of app: my-app-chat, version: 1
03:31 AM Getting current resource limits.
Password for rjt.rjtshrm94#gmail.com: Invalid username or password.
2014-08-10 03:31:08,612 ERROR appcfg.py:2415 An error occurred processing file '': HTTP Error 401: Unauthorized. Aborting.
Error 401: --- begin server output ---
Must authenticate first.
--- end server output ---
2014-08-10 03:31:08 (Process exited with code 1)
but my emailid and password are correct....
You can close this window now.
I had the same problem and it was driving me mad. I wasn't typing the password wrong.
For me, changing a security setting, not in the app but in my Google account solved it. Go here: https://www.google.com/settings/security/lesssecureapps and "Enable" less secure devices and apps to access your data. For me, that fixed it.
Otherwise I've come accross time settings being the problem (mentioned above).
But more importantly, double-check that the name of your app, that you registered on GoogleDev, is the name that you put in the app.yaml. If it is, then hitting the dashboard in the Launcher should take you to the dashboard of your app.
See my question and answer for more information, if none of this works.

Google App Engine: An error occurred processing file '': Unauthorized. Aborting

When I try to deploy my application, I get this error: ERROR appcfg.py:2149 An error occurred processing file '': HTTP Error 401: Unauthorized. Aborting.
I provide my login and password correctly but I am not able to deploy my application.
Any solution?

GAE No route to host error

When deploying my GAE app I get the following error:
ERROR appcfg.py:2161 An error occurred processing file '': <urlopen error [Errno 65] No route to host>. Aborting.
When I try to rollback the last update I get the same error. What steps can I take to debug this?

Resources