I was trying to redeploy my app to App Engine as usual but I got this error:
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Error(s) encountered validating runtime. Runtime python37 is end of support and no longer allowed. Please use the latest Python runtime for App Engine Standard..
Then, I changed the python runtime to python311 in app.yaml and api.yaml files:
api.yaml
service: api runtime: python311 instance_class: B1 basic_scaling: max_instances: 1 handlers: - url: /api/.* script: auto secure: always app.yaml
runtime: python311 instance_class: F1 handlers: # Web static resources (js, css, etc.). - url: /(.*\.(gif|png|jpg|css|js|json|svg|eot|woff2|ttf|woff|map|xls))$ static_files: web/\1 upload: web/(.*) secure: always # Web index.html file. - url: /(.*) static_files: web/index.html upload: web/index.html secure: always But now, the form submit function is giving an error. Before was working well, since the change to python311 runtime is crashing the app:
The submit() function on Typescript
submit() { if (this.form.valid) { this.buttonsDisabled = true; this.isLoading = true; const modelToPost = this.formatModelToPost(this.model); const url = environment.appDomain + '/api/forms'; const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json', }), }; this.http.post(url, modelToPost, httpOptions).subscribe({ next: (info) => { if (!info['data']['errores'] || info['data']['errores'] == '') { this.formularioEnviado = true; } else { alert( 'Error, contacte con el administrador: ' + info['data']['errores'] ); } this.buttonsDisabled = false; this.isLoading = false; }, error: (error) => { alert( 'Error, contacte con el administrador: ' + JSON.stringify(error) ); this.buttonsDisabled = false; this.isLoading = false; }, }); } else { alert('Revise el formulario, hay datos incorrectos'); } } The error I am getting when submitting the form

Any idea to proceed with?
Thank you
Источник: https://stackoverflow.com/questions/781 ... n37-to-pyt