質問編集履歴
3
ミスを修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
heroku
|
17
|
+
herokuのログはこのような感じです。
|
18
18
|
|
19
19
|
|
20
20
|
|
2
herokuのログ追記して、情報を更新しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,63 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
herokuのsendgridアドオン機能を使おうとしているのですが、
|
9
|
+
herokuのsendgridアドオン機能を使おうとしているのですが、メールが送れません。ページもエラーになります。
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
エラーの詳細が出ないため解決しにくくなっています。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
heroku能登具はこのような感じです。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
```heroku
|
22
|
+
|
23
|
+
INFO -- : [4e8950a1-07e4-4edf-ad92-4a461256a740] Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms)
|
24
|
+
|
25
|
+
2020-02-18T10:58:16.957098+00:00 app[web.1]: I, [2020-02-18T10:58:16.956988 #4] INFO -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] Started POST "/users/confirmation" for 61.207.81.168 at 2020-02-18 10:58:16 +0000
|
26
|
+
|
27
|
+
2020-02-18T10:58:16.958648+00:00 app[web.1]: I, [2020-02-18T10:58:16.958571 #4] INFO -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] Processing by Devise::ConfirmationsController#create as HTML
|
28
|
+
|
29
|
+
2020-02-18T10:58:16.958746+00:00 app[web.1]: I, [2020-02-18T10:58:16.958670 #4] INFO -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] Parameters: {"utf8"=>"✓", "authenticity_token"=>"aODSrWiA+kw8F83MFMnS0dcB0t27/52i80EtIEtVQA1+j2H/PbFygHCmSBberP1mKqw1NQrG9WUTaxOS5aTyxA==", "user"=>{"email"=>"kingyukiya@icloud.com"}, "commit"=>"Resend confirmation instructions"}
|
30
|
+
|
31
|
+
2020-02-18T10:58:16.964161+00:00 app[web.1]: D, [2020-02-18T10:58:16.964069 #4] DEBUG -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."unconfirmed_email" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["unconfirmed_email", "kingyukiya@icloud.com"], ["LIMIT", 1]]
|
32
|
+
|
33
|
+
2020-02-18T10:58:16.969074+00:00 app[web.1]: D, [2020-02-18T10:58:16.968998 #4] DEBUG -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] User Load (1.8ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["email", "kingyukiya@icloud.com"], ["LIMIT", 1]]
|
34
|
+
|
35
|
+
2020-02-18T10:58:16.970353+00:00 app[web.1]: D, [2020-02-18T10:58:16.970272 #4] DEBUG -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] (0.8ms) BEGIN
|
36
|
+
|
37
|
+
2020-02-18T10:58:16.973389+00:00 app[web.1]: D, [2020-02-18T10:58:16.973309 #4] DEBUG -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] (0.8ms) COMMIT
|
38
|
+
|
39
|
+
2020-02-18T10:58:16.987111+00:00 app[web.1]: I, [2020-02-18T10:58:16.986993 #4] INFO -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] Rendering devise/mailer/confirmation_instructions.html.erb
|
40
|
+
|
41
|
+
2020-02-18T10:58:16.990019+00:00 app[web.1]: I, [2020-02-18T10:58:16.989925 #4] INFO -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] Rendered devise/mailer/confirmation_instructions.html.erb (2.8ms)
|
42
|
+
|
43
|
+
2020-02-18T10:58:16.991250+00:00 app[web.1]: D, [2020-02-18T10:58:16.991156 #4] DEBUG -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] Devise::Mailer#confirmation_instructions: processed outbound mail in 15.3ms
|
44
|
+
|
45
|
+
2020-02-18T10:58:16.991519+00:00 app[web.1]: I, [2020-02-18T10:58:16.991431 #4] INFO -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] Completed 500 Internal Server Error in 33ms (ActiveRecord: 4.5ms)
|
46
|
+
|
47
|
+
2020-02-18T10:58:16.993721+00:00 app[web.1]: F, [2020-02-18T10:58:16.993615 #4] FATAL -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb]
|
48
|
+
|
49
|
+
2020-02-18T10:58:16.993764+00:00 app[web.1]: F, [2020-02-18T10:58:16.993699 #4] FATAL -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] ActionView::Template::Error (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true):
|
50
|
+
|
51
|
+
2020-02-18T10:58:16.993890+00:00 app[web.1]: F, [2020-02-18T10:58:16.993833 #4] FATAL -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] 2:
|
52
|
+
|
53
|
+
2020-02-18T10:58:16.993891+00:00 app[web.1]: [35297882-a395-4b80-9660-8bc3ce4c9ceb] 3: <p>You can confirm your account email through the link below:</p>
|
54
|
+
|
55
|
+
2020-02-18T10:58:16.993892+00:00 app[web.1]: [35297882-a395-4b80-9660-8bc3ce4c9ceb] 4:
|
56
|
+
|
57
|
+
2020-02-18T10:58:16.993892+00:00 app[web.1]: [35297882-a395-4b80-9660-8bc3ce4c9ceb] 5: <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>
|
58
|
+
|
59
|
+
2020-02-18T10:58:16.993945+00:00 app[web.1]: F, [2020-02-18T10:58:16.993886 #4] FATAL -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb]
|
60
|
+
|
61
|
+
2020-02-18T10:58:16.993998+00:00 app[web.1]: F, [2020-02-18T10:58:16.993949 #4] FATAL -- : [35297882-a395-4b80-9660-8bc3ce4c9ceb] app/views/devise/mailer/confirmation_instructions.html.erb:5:in `_app_views_devise_mailer_confirmation_instructions_html_erb__1142217497150945981_47277650958300'
|
62
|
+
|
63
|
+
2020-02-18T10:58:16.996105+00:00 heroku[router]: at=info method=POST path="/users/confirmation" host=afeaer.herokuapp.com request_id=35297882-a395-4b80-9660-8bc3ce4c9ceb fwd="61.207.81.168" dyno=web.1 connect=0ms service=40ms status=500 bytes=1891 protocol=https
|
64
|
+
|
65
|
+
```
|
10
66
|
|
11
67
|
|
12
68
|
|
1
コメント消した。
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
:user_name => "herokuで発行したuser_name",
|
52
52
|
|
53
|
-
:password => "herokuで発行したpassword",
|
53
|
+
:password => "herokuで発行したpassword",
|
54
54
|
|
55
55
|
:authentication => 'login'
|
56
56
|
|