小编Kat*_*ie 的帖子

使用本地主机测试 Google Oauth 2.0(2019 年 6 月)?

我如何使用本地主机在我的应用程序上测试 Google Oauth 2.0,因为 Google 需要顶级私有域作为授权域?

一种

我试图查找解决方案,但给出的所有解决方案都是前一段时间,我认为谷歌从那时起改变了他们的服务。

请帮忙 :)

oauth-2.0 google-oauth

13
推荐指数
2
解决办法
1万
查看次数

Seaborn的无数值类型汇总错误

我有这种形式的熊猫数据框:

    Country     Year        Value
0   Thailand    1989       48587.03
1   Thailand    1990       55903.07
2   Vietnam     1989      100290.04
3   Vietnam     1990      118873.59
4   India       1989      147383.02
5   India       1990      178230.05
Run Code Online (Sandbox Code Playgroud)

中的值的dtype Value为float。

我正在用seaborn来浮动它:

sns.lineplot(x='Year', y='Value', hue='Country', data=topfiveot)
Run Code Online (Sandbox Code Playgroud)

并得到一个错误:

DataError: No numeric types to aggregate
Run Code Online (Sandbox Code Playgroud)

是什么引起了该问题?

python pandas seaborn

5
推荐指数
2
解决办法
1716
查看次数

Cloudformation 中的 VPC 端点 - 端点类型(网关)与可用服务类型不匹配([接口])

我正在尝试在 Cloudformation 中为 API 网关创建 VPC 端点,但收到此错误:

Endpoint type (Gateway) does not match available service types ([Interface]).
Run Code Online (Sandbox Code Playgroud)

下面的模板放置在资源部分中:

  executeApiEndpoint:
    Type: AWS::EC2::VPCEndpoint
    Properties:
      PolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal: "*"
            Action:
              - "execute-api:Invoke"
              - "execute-api:ManageConnections"
            Resource:
              - "arn:aws:execute-api:*:*:*"
      RouteTableIds:
        - !Ref privateRouteTable
      ServiceName: !Sub com.amazonaws.${AWS::Region}.execute-api
      VpcId: !Ref pubPrivateVPC
Run Code Online (Sandbox Code Playgroud)

这个也不起作用:

  executeApiEndpoint:
    Type: AWS::EC2::VPCEndpoint
    Properties:
      PolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal: "*"
            Action:
              - "execute-api:*"
            Resource:
              - "*"
      RouteTableIds:
        - !Ref privateRouteTable
      ServiceName: !Sub com.amazonaws.${AWS::Region}.execute-api
      VpcId: !Ref pubPrivateVPC
Run Code Online (Sandbox Code Playgroud)

但是,这个块(来自模板)能够在没有任何错误的情况下执行: …

amazon-web-services aws-cloudformation aws-api-gateway

2
推荐指数
1
解决办法
798
查看次数