[google-appengine] Re: Google Cloud App Engine (GAE) Flexible: Load Balancer error: backend_connection_closed_before_data_sent_to_client

2022-05-30 Thread Vit Amin
"The solution for this issue, is to configure the keepalive timeout 
parameter for your web server appropriately. (In short, set Keepalive to 
greater than 10 minutes, such as the recommended value of 620.)"

where should I do it in case of Google App Engine Flexible? how to get this 
settings?


On Wednesday, May 18, 2022 at 11:59:16 PM UTC+3 concep...@google.com wrote:

> As per the error "backend_connection_closed_before_data_sent_to_client", 
> the backend unexpectedly closed its connection to the load balancer before 
> the response was proxied to the client. Please, follow this link for more 
> information [1].
>
> The GFE generates this HTTP response code[2] when the connection to the 
> backend is dropped during a request.
>
> It is usually caused because the keepalive configuration parameter for the 
> web server software running on the backend instance is less than the fixed 
> (10 minute) keepalive (HTTP idle) timeout of the GFE. There are some 
> situations where the backend may close a connection too soon while the GFE 
> is still sending the HTTP request.
>
> The solution for this issue, is to configure the keepalive timeout 
> parameter for your web server appropriately. (In short, set Keepalive to 
> greater than 10 minutes, such as the recommended value of 620.)
>
> For more information, see the reference Google documentation below in 
> link[3][4].
>
> If it keeps failing after you changed the timeout, I’d suggest you contact 
> Support.
>
> [1] 
> https://cloud.google.com/load-balancing/docs/https/https-logging-monitoring#:~:text=backend_connection_closed_before_data_sent_to_client
>
> [2] 502s - "backend_connection_closed_before_data_sent_to_client" responses
>
> [3] 
> https://cloud.google.com/load-balancing/docs/https#timeouts_and_retries   
>  
>
> [4] 
> https://cloud.google.com/load-balancing/docs/https#statusdetail_http_failure_messages
>  
>
> [5]  https://cloud.google.com/support
>
>
> On Monday, May 16, 2022 at 2:06:47 AM UTC-5 46346...@gmail.com wrote:
>
>> I have GAE flexible this app.yaml:
>>
>> # [START runtime]
>> runtime: python
>> env: flex
>> entrypoint: gunicorn -b :$PORT **.wsgi
>> 
>> automatic_scaling:
>>   min_num_instances: 2
>>   max_num_instances: 2
>> 
>> beta_settings:
>> cloud_sql_instances: **:europe-west6:***
>> 
>> runtime_config:
>>   python_version: 3
>> 
>> handlers:
>> - url: /.*
>>   script: auto
>>   secure: always
>>   redirect_http_response_code: 301
>> # [END runtime]
>>
>> [image: Screenshot 2022-05-14 130338.png]
>> After standard instance weekly restarting 
>> ,
>>  
>> I've seen some internal errors in logs and 502 errors on POST requests:
>>
>> {
>>   "insertId": "2",
>>   "jsonPayload": {...},
>>   "timestamp": "2022-05-14T08:34:42.512018934Z",
>>   "severity": "ERROR",
>>   "logName": "projects//logs/compute.googleapis.com
>> %2Fshielded_vm_integrity",
>>   "receiveTimestamp": "2022-05-14T08:34:44.518408254Z"
>> }
>>
>> and 
>>
>> {
>>   "insertId": "***",
>>   "jsonPayload": {
>> "remoteIp": "**",
>> "@type": "
>> type.googleapis.com/google.cloud.loadbalancing.type.LoadBalancerLogEntry
>> ",
>> "statusDetails": 
>> "backend_connection_closed_before_data_sent_to_client"
>>   },
>>   "httpRequest": {
>> "requestMethod": "POST",
>> "requestUrl": "https://*;,
>> "requestSize": "2208",
>> "status": 502,
>> "responseSize": "451",
>> "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) 
>> Gecko/20100101 Firefox/100.0",
>> "remoteIp": "***",
>> "referer": "",
>> "serverIp": ""
>>   },
>>   "resource": {
>> "type": "http_load_balancer",
>> "labels": {
>>   "url_map_name": "",
>>   "target_proxy_name": "",
>>   "zone": "global",
>>   "project_id": "",
>>   "backend_service_name": "",
>>   "forwarding_rule_name": ""
>> }
>>   },
>>   "timestamp": "2022-05-14T08:36:28.064500Z",
>>   "severity": "WARNING",
>>   "logName": "projects//logs/requests",
>>   "trace": "projects//traces/",
>>   "receiveTimestamp": "2022-05-14T08:36:28.882230792Z",
>>   "spanId": ""
>> }
>>
>> Also I have some messages with
>>
>> /readiness_check failReason:"null"
>>
>> I've read Tuning NGINX behind Google Cloud Platform HTTP(S) Load Balancer 
>> .
>>  
>> But as I understand it is related to GCE(not GAE). 
>>
>>  For the current app it is VERY important to handle every request, so I 
>> want to be confident with fixing 

[google-appengine] Re: The API call datastore_v3.Put() enable

2022-05-30 Thread NoCommandLine
Correction -  '*gcloud beta app deploy*' 

On Monday, May 30, 2022 at 12:33:27 PM UTC-7 NoCommandLine wrote:

> Try deploying your app with *'gcloud app beta deploy' *instead of the 
> normal 'gcloud app deploy'
>
> When 'Bundled API for Python 3' was first released, it was only available 
> in beta and required you to use 'gcloud app beta' commands. If you didn't, 
> you would get the error about enabling 'app_engine_apis' even when you had 
> it enabled. 
>
> The github sample/documentation 
>  still 
> has that instruction but the main documentation 
>  
> no longer has it.
>
>
>  * .* NoCommandLine *..*
>  https://nocommandline.com
> *A GUI for Google App Engine*
>
> On Monday, May 30, 2022 at 10:24:50 AM UTC-7 ankit...@gmail.com wrote:
>
>> Can anyone help us into this please.
>>
>> On Monday, 30 May 2022 at 16:34:51 UTC+5:30 Ankit Dwivedi wrote:
>>
>>> Hi All,
>>>
>>> We are facing a issue when trying to use memcache in one of our 
>>> application and getting below error.
>>>
>>> Traceback (most recent call last): File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>>> line 2077, in wsgi_app response = self.full_dispatch_request() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>>> line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>>> line 1523, in full_dispatch_request rv = self.dispatch_request() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>>> line 1509, in dispatch_request return 
>>> self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File 
>>> "/srv/main.py", line 32, in root store_visit(ip_addr, usr_agt) File 
>>> "/srv/main.py", line 16, in store_visit Visit(visitor='{}: 
>>> {}'.format(remote_addr, user_agent)).put() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/model.py",
>>>  
>>> line 3538, in _put return self._put_async(**ctx_options).get_result() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>>  
>>> line 397, in get_result self.check_success() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>>  
>>> line 394, in check_success six.reraise(self._exception.__class__, 
>>> self._exception, self._traceback) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/six.py", line 
>>> 719, in reraise raise value File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>>  
>>> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
>>> File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>>>  
>>> line 850, in put key = yield self._put_batcher.add(entity, options) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>>  
>>> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
>>> File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>>>  
>>> line 382, in _put_tasklet keys = yield self._conn.async_put(options, 
>>> datastore_entities) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>>  
>>> line 527, in _on_rpc_completion result = rpc.get_result() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>>>  
>>> line 648, in get_result return self.__get_result_hook(self) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>>>  
>>> line 1875, in __put_hook self.check_rpc_success(rpc) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>>>  
>>> line 1365, in check_rpc_success rpc.check_success() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>>>  
>>> line 614, in check_success self.__rpc.CheckSuccess() File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_rpc.py",
>>>  
>>> line 149, in CheckSuccess raise self.exception File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>>>  
>>> line 276, in _CaptureTrace f(**kwargs) File 
>>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>>>  
>>> line 269, in _SendRequest raise self._TranslateToError(parsed_response) 
>>> File 
>>> 

[google-appengine] Re: The API call datastore_v3.Put() enable

2022-05-30 Thread NoCommandLine
Try deploying your app with *'gcloud app beta deploy' *instead of the 
normal 'gcloud app deploy'

When 'Bundled API for Python 3' was first released, it was only available 
in beta and required you to use 'gcloud app beta' commands. If you didn't, 
you would get the error about enabling 'app_engine_apis' even when you had 
it enabled. 

The github sample/documentation 
 still 
has that instruction but the main documentation 
 
no longer has it.


 * .* NoCommandLine *..*
 https://nocommandline.com
*A GUI for Google App Engine*

On Monday, May 30, 2022 at 10:24:50 AM UTC-7 ankit...@gmail.com wrote:

> Can anyone help us into this please.
>
> On Monday, 30 May 2022 at 16:34:51 UTC+5:30 Ankit Dwivedi wrote:
>
>> Hi All,
>>
>> We are facing a issue when trying to use memcache in one of our 
>> application and getting below error.
>>
>> Traceback (most recent call last): File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>> line 2077, in wsgi_app response = self.full_dispatch_request() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>> line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>> line 1523, in full_dispatch_request rv = self.dispatch_request() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
>> line 1509, in dispatch_request return 
>> self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File 
>> "/srv/main.py", line 32, in root store_visit(ip_addr, usr_agt) File 
>> "/srv/main.py", line 16, in store_visit Visit(visitor='{}: 
>> {}'.format(remote_addr, user_agent)).put() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/model.py",
>>  
>> line 3538, in _put return self._put_async(**ctx_options).get_result() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>  
>> line 397, in get_result self.check_success() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>  
>> line 394, in check_success six.reraise(self._exception.__class__, 
>> self._exception, self._traceback) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/six.py", line 
>> 719, in reraise raise value File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>  
>> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
>> File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>>  
>> line 850, in put key = yield self._put_batcher.add(entity, options) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>  
>> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
>> File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>>  
>> line 382, in _put_tasklet keys = yield self._conn.async_put(options, 
>> datastore_entities) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>>  
>> line 527, in _on_rpc_completion result = rpc.get_result() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>>  
>> line 648, in get_result return self.__get_result_hook(self) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>>  
>> line 1875, in __put_hook self.check_rpc_success(rpc) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>>  
>> line 1365, in check_rpc_success rpc.check_success() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>>  
>> line 614, in check_success self.__rpc.CheckSuccess() File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_rpc.py",
>>  
>> line 149, in CheckSuccess raise self.exception File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>>  
>> line 276, in _CaptureTrace f(**kwargs) File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>>  
>> line 269, in _SendRequest raise self._TranslateToError(parsed_response) 
>> File 
>> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>>  
>> line 135, in _TranslateToError raise self._ErrorException(exception_type, 
>> msg) google.appengine.runtime.apiproxy_errors.FeatureNotEnabledError: The 

[google-appengine] Re: The API call datastore_v3.Put() enable

2022-05-30 Thread Ankit Dwivedi
Can anyone help us into this please.

On Monday, 30 May 2022 at 16:34:51 UTC+5:30 Ankit Dwivedi wrote:

> Hi All,
>
> We are facing a issue when trying to use memcache in one of our 
> application and getting below error.
>
> Traceback (most recent call last): File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
> line 2077, in wsgi_app response = self.full_dispatch_request() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
> line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
> line 1523, in full_dispatch_request rv = self.dispatch_request() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
> line 1509, in dispatch_request return 
> self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File 
> "/srv/main.py", line 32, in root store_visit(ip_addr, usr_agt) File 
> "/srv/main.py", line 16, in store_visit Visit(visitor='{}: 
> {}'.format(remote_addr, user_agent)).put() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/model.py",
>  
> line 3538, in _put return self._put_async(**ctx_options).get_result() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>  
> line 397, in get_result self.check_success() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>  
> line 394, in check_success six.reraise(self._exception.__class__, 
> self._exception, self._traceback) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/six.py", line 
> 719, in reraise raise value File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>  
> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
> File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>  
> line 850, in put key = yield self._put_batcher.add(entity, options) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>  
> line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
> File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
>  
> line 382, in _put_tasklet keys = yield self._conn.async_put(options, 
> datastore_entities) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
>  
> line 527, in _on_rpc_completion result = rpc.get_result() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>  
> line 648, in get_result return self.__get_result_hook(self) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>  
> line 1875, in __put_hook self.check_rpc_success(rpc) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
>  
> line 1365, in check_rpc_success rpc.check_success() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
>  
> line 614, in check_success self.__rpc.CheckSuccess() File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_rpc.py",
>  
> line 149, in CheckSuccess raise self.exception File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>  
> line 276, in _CaptureTrace f(**kwargs) File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>  
> line 269, in _SendRequest raise self._TranslateToError(parsed_response) 
> File 
> "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
>  
> line 135, in _TranslateToError raise self._ErrorException(exception_type, 
> msg) google.appengine.runtime.apiproxy_errors.FeatureNotEnabledError: The 
> API call datastore_v3.Put() is currently not enabled. -- Additional details 
> from server: App Engine APIs are not enabled, please add app_engine_apis: 
> true to your app.yaml to enable.
>
> We have already given app_engine_apis: true in our app.yaml file but still 
> getting same error.
>
> app.yam file -:
> runtime: python39
> app_engine_apis: true
>
> GCP Sample code for testing we are using - 
>
> https://github.com/googlecodelabs/migrate-python2-appengine/tree/master/mod12b-memcache
>
> Can you please help us to resolve this issue.
>
> Regards,
> Rohit Chauhan
>

-- 
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] The API call datastore_v3.Put() enable

2022-05-30 Thread Ankit Dwivedi
Hi All,

We are facing a issue when trying to use memcache in one of our application 
and getting below error.

Traceback (most recent call last): File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
line 2077, in wsgi_app response = self.full_dispatch_request() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
line 1523, in full_dispatch_request rv = self.dispatch_request() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/flask/app.py", 
line 1509, in dispatch_request return 
self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File 
"/srv/main.py", line 32, in root store_visit(ip_addr, usr_agt) File 
"/srv/main.py", line 16, in store_visit Visit(visitor='{}: 
{}'.format(remote_addr, user_agent)).put() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/model.py",
 
line 3538, in _put return self._put_async(**ctx_options).get_result() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
 
line 397, in get_result self.check_success() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
 
line 394, in check_success six.reraise(self._exception.__class__, 
self._exception, self._traceback) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/six.py", line 
719, in reraise raise value File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
 
line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
 
line 850, in put key = yield self._put_batcher.add(entity, options) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
 
line 441, in _help_tasklet_along value = gen.throw(exc.__class__, exc, tb) 
File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/context.py",
 
line 382, in _put_tasklet keys = yield self._conn.async_put(options, 
datastore_entities) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/ext/ndb/tasklets.py",
 
line 527, in _on_rpc_completion result = rpc.get_result() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
 
line 648, in get_result return self.__get_result_hook(self) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
 
line 1875, in __put_hook self.check_rpc_success(rpc) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/datastore/datastore_rpc.py",
 
line 1365, in check_rpc_success rpc.check_success() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_stub_map.py",
 
line 614, in check_success self.__rpc.CheckSuccess() File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/api/apiproxy_rpc.py",
 
line 149, in CheckSuccess raise self.exception File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
 
line 276, in _CaptureTrace f(**kwargs) File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
 
line 269, in _SendRequest raise self._TranslateToError(parsed_response) 
File 
"/layers/google.python.pip/pip/lib/python3.9/site-packages/google/appengine/runtime/default_api_stub.py",
 
line 135, in _TranslateToError raise self._ErrorException(exception_type, 
msg) google.appengine.runtime.apiproxy_errors.FeatureNotEnabledError: The 
API call datastore_v3.Put() is currently not enabled. -- Additional details 
from server: App Engine APIs are not enabled, please add app_engine_apis: 
true to your app.yaml to enable.

We have already given app_engine_apis: true in our app.yaml file but still 
getting same error.

app.yam file -:
runtime: python39
app_engine_apis: true

GCP Sample code for testing we are using - 
https://github.com/googlecodelabs/migrate-python2-appengine/tree/master/mod12b-memcache

Can you please help us to resolve this issue.

Regards,
Rohit Chauhan

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bb1744bf-e3b3-4449-9445-4736b5864a3en%40googlegroups.com.