我已经在AWS中设置了OpenShift集群并安装了3scale-amp 2.4模板,并设法使RedHat 3scale API Management Portal正常工作,但是当我尝试邀请团队成员时,出现HTML错误504超时。已设置为通过Amazon SES。
在“帐户设置”->“用户”->“邀请”屏幕中,单击“邀请新团队成员”,然后输入收件人电子邮件,然后单击“ sen”,出现30秒钟的超时,并显示错误消息:>
504网关超时 服务器没有及时响应。
我尝试直接通过Amazon SES从其中一位管理员发送电子邮件,并且可行。
标题响应
Request URL: https://3scale-admin.api.xxx.io/p/admin/account/invitations/5/resend
Request Method: POST
Status Code: 504
Remote Address: xxx.xxx.xxx.xxx:443
Referrer Policy: no-referrer-when-downgrade
日志
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] Started PUT "/p/admin/account/invitations/3/resend" for xxx.xxx.xxx.xxx at 2019-05-13 08:45:53 +0000
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] Processing by Provider::Admin::Account::InvitationsController#resend as HTML
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] Parameters: {"authenticity_token"=>"yyy", "id"=>"3"}
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] Rendered provider_invitation_mailer/invitation.text.erb (0.1ms)
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] Sent mail to user.email@gmail.com (30004.6ms)
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] Completed 500 Internal Server Error in 30041ms (ActiveRecord: 11.7ms)
xxx.xxx.xxx.xxx,10.211.64.21 - - [13/May/2019:08:46:23 +0000] "PUT /500 HTTP/1.1" 500 - 30.0518
Exception -- [da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx] execution expired
[da2c91d4-9c85-499b-b0e4-8e0a52d10cb1] [3scale-admin.api.xxx.io] [xxx.xxx.xxx.xxx]
Net::OpenTimeout (execution expired):
app/models/invitation.rb:62:in `notify_invitee'
app/models/invitation.rb:41:in `resend'
app/controllers/provider/admin/account/invitations_controller.rb:23:in `resend'
lib/three_scale/middleware/multitenant.rb:116:in `_call'
lib/three_scale/middleware/multitenant.rb:111:in `call'
lib/action_dispatch/rails5_ssl.rb:86:in `call'
我希望邀请邮件最终出现在我的电子邮件中,但是什么也没有发生。实际的邀请已添加到3scale数据库中,并且在“邀请”屏幕中可见,我可以按“重新发送”按钮,但同样的情况又因504错误而再次发生。