Google Cloud App SDK crash → cloud crashed (LookupError): unknown encoding cp65001

google cloud sdk
google cloud console
google cloud sdk documentation
google cloud sdk tutorial
google cloud sdk license
google cloud sdk update
google cloud desktop app
google cloud sdk archive

I get App Engine from https://cloud.google.com/sdk/docs/ After install, I cant run gsutil init or gcloud info --run-diagnostics in Google Clood SDK Shell or Windows Powershell, it ends with this error:

Welcome! This command will take you through the configuration of gcloud.

Your current configuration has been set to: [default]

You can skip diagnostics next time by using the following flag:
  gcloud init --skip-diagnostics

Network diagnostic detects and fixes local network connection issues.
ERROR: gcloud crashed (LookupError): unknown encoding: cp65001

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics

I had UTF-8 set as the encoding:

[Console]::OutputEncoding
BodyName          : utf-8
EncodingName      : Unicode (UTF-8)
HeaderName        : utf-8
WebName           : utf-8
WindowsCodePage   : 1200
IsBrowserDisplay  : True
IsBrowserSave     : True
IsMailNewsDisplay : True
IsMailNewsSave    : True
IsSingleByte      : False
EncoderFallback   : System.Text.EncoderReplacementFallback
DecoderFallback   : System.Text.DecoderReplacementFallback
IsReadOnly        : True
CodePage          : 65001

I've tried all this answers, but it didn't help → gsutil command crashes every time on Windows 10, LookupError: unknown encoding: cp0, Python 2.7 : LookupError: unknown encoding: cp65001

I've tried install Python 3.7, 2.7.9 and "Bundled Python".


Google Cloud SDK, I get App Engine from https://cloud.google.com/sdk/docs/After install, I cant run gsutil init or gcloud info --run-diagnostics in Google Clood SDK If you recently migrated your app from Fabric, review how upgrading to the Firebase Crashlytics SDK affects your crash analytics data. Step 1: Add a Firebase configuration file. Open your Project


You can try running:

set PYTHONIOENCODING=UTF-8

Or, create an environment variable with the name 'PYTHONIOENCODING' and value 'UTF-8'.

It solves the problem for me.

Troubleshooting App Engine flexible deployment, 222.0.0 (2018-10-23). App Engine. Fixed a bug that caused gcloud app logs tail to crash when the logs were too large. Updated the Java SDK to version 1.9.67. These include authorizing the SDK tools to access Google Cloud Platform using your user account credentials and setting up the default SDK configuration. To initialize the SDK: Run the following at a command prompt: gcloud init Note: To prevent the command from launching a web browser, use gcloud init --console-only instead.


You simply need to make reconnection with Google cloud shell. Reopen Google Cloud SDK Shell

gcloud init

it will ask for new configuration or use an existing one, I used existing one then select account select project on cloud which you want to work.

View crashes & application not responding (ANR , yaml and rerun gcloud app deploy . Viewing logs on an instance. App Engine crash and system logs provide information on why the application failed to launch or  Use the Cloud SDK Docker image for the latest release (or specific version) of Cloud SDK. For Windows and macOS interactive installations, and all other use cases, run the interactive installer to install the latest release of Cloud SDK.


My solution was to issue the deploy via a separate powershell window and not the one embedded in Visual Studio Code. Possibly VS Code alters the UTF page settings of the embedded terminal.

BTW, I was deploying a nodeJS app, not a python app.

Mobile Crash Reporting API, Using the Play Console, you can view data for crashes and application not apps, crashes found during testing are listed with your app's crashes and ANRs. You can access and download reports as CSV files from Google Cloud Storage. Get started with Google Cloud Start building right away on our secure, intelligent platform. New customers can use a $300 free credit to get started with any GCP product.


Get started with Firebase Crashlytics, Mobile Crash Reporting API. Learn more. About Google. Google's mission is to organize the world's information and make it universally  Below is a sample reference architecture for a typical mobile app built using both Firebase and App Engine along with other services in Google Cloud. Learn more about mobile applications Google App Engine scales automatically to accommodate these spikes, so we don’t need to worry about application performance or crashing due to platform capacity.


Extend Firebase Crashlytics with Cloud Functions, On this date, the Fabric SDK and old versions of the Firebase Crashlytics SDK will stop sending crashes for your app. To continue getting crash reports in the  Cloud SDK is a set of tools, including gcloud, gsutil, and bq command-line tools, client libraries & local emulators for developing with Google Cloud.


gcloud crash on AE Standard deployment to internal google.com , Cloud Functions with Crashlytics, you need to use firebase-functions SDK v0.​7.2 or when a statistically significant number of sessions in a given build crash. Modernize your cloud infrastructure and run critical workloads like VMware, SAP, Oracle, and Windows natively on Google Cloud. Data management & databases Migrate and manage enterprise data with security, reliability, high availability, and fully managed data services .