简体   繁体   English

尝试创建子用户时 sendgrid 错误“403 访问被禁止”

[英]sendgrid error "403 access forbidden" when trying to create sub user

I get 403 access forbidden error:我收到 403 访问禁止错误:

 $apiKey= env('API_KEY_FOR_SENDGRID');
        $sg = new \SendGrid($apiKey);

         // Create Subuser #
         
         $request_body = json_decode('{
            "email": "subuser_email",
            "ips": [
                "1.1.1.1",
                "2.2.2.2"                ],
            "password": "password",
            "username": "subuser_username"
          }');
          
          try {
              $response = $sg->client->subusers()->post($request_body);
              dd($response);
             
          } catch (Exception $e) {
              echo 'Caught exception: ',  $e->getMessage(), "\n";
          }

I have configured every single permission to 'Full Access' of api key But i got the same error {"errors":[{"field":null,"message":"access forbidden"}]}.我已将每个权限配置为 api 密钥的“完全访问”但我得到了同样的错误{“错误”:[{“字段”:null,“消息”:“禁止访问”}]}。
My question: what i do error is removed and sub user is created?我的问题:我做了什么错误被删除并创建了子用户?

I have experienced exactly the same issue - no resolution at the moment.我遇到了完全相同的问题 - 目前没有解决方案。 New API key does not solve this.新的 API 密钥无法解决此问题。 No code changes etc., just the "Forbidden" response.没有代码更改等,只有“禁止”响应。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试在 WSO2 APIM 3.2.0 中添加 JDBC 辅助用户存储时出现 403 禁止错误 - Getting a 403 forbidden error when trying to add a JDBC secondary user store in WSO2 APIM 3.2.0 无法使用 HTTP 在本地测试 Sendgrid 错误 403:禁止 - Unable to test Sendgrid locally with HTTP Error 403: Forbidden Sendgrid在nodejs中发送邮件403响应禁止错误 - Sendgrid send mail in nodejs 403 response forbidden error 尝试从 Firebase 存储加载图像时出现 403 禁止错误 - Getting 403 Forbidden error when trying to load image from Firebase Storage ClientError:调用HeadObject操作时发生错误(403):尝试上传视频时被禁止 - ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden when trying to upload video 尝试查询 AWS ElasticSearch 集群时出现 403 Forbidden - 403 Forbidden when trying to query AWS ElasticSearch cluster 尝试在 AWS Lambda Lambda function 中下载文件时如何修复“ClientError:调用 HeadObject 操作时发生错误(403):禁止” - how to fix "ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden" when trying to download file in AWS Lambda function 打开我的 Cloud Run 服务的 URL 时出现 403“错误:禁止” - 403 "Error: Forbidden" when opening the URL of my Cloud Run service 与 Firebase 安装服务器通信时出错 API - 403 Forbidden - Error when communicating with the Firebase Installations server API - 403 Forbidden 禁止状态 - 使用 Sendgrid 发送 Email 时 - Status Forbidden -When Sending Email with Sendgrid
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM