TypeError at /api/team/
The `fields` option must be a list or tuple or "__all__". Got str.
Request Method: GET
Request URL: http://127.0.0.1:8000/api/team/
Django Version: 1.9
Exception Type: TypeError
Exception Value:
The `fields` option must be a list or tuple or "__all__".
我在应用程序引擎上托管了一个fastAPI api。它使用防火墙客户端调用防火墙。有时,有些调用(50次中的1次)由于此错误而失败:
注:我使用的是最新版本的grpcio,grpcio工具和谷歌云防火墙.
AttributeError: 'NoneType' object has no attribute 'from_call'
at ._parse_grpc_error_details ( /layers/google.python.pip/pip/lib/python3.7/site-packages/google/api_core/exceptions.
我是从python的背景来看javascript的,想问一下如何解释我看到的一些代码。
在Python中,我可以获得以下代码/输出:
Python代码:
myarray = ["a","b", "c"]
for item in myarray:
print (item)
Python输出
a
b
c
在Javascript中,这给了我一些不同的东西:
Javascript代码:
var myarray = ["a","b","c"]
for(var item in myarray){
co