saran-surya / email_auth

A Flutter package to verify emails using OTP
https://pub.dev/packages/email_auth
MIT License
38 stars 14 forks source link

Unable to access remote server The remote server is not a valid #89

Closed rt234cw closed 1 year ago

rt234cw commented 1 year ago

I followed all the steps you provided in https://saran-surya.github.io/email-auth-node/ Also, using outlook account instead of gmail account.

Still get these error messages. Could you help me to solve it? Thanks

I/flutter (28825): email-auth >> Initialising Email-Auth server I/flutter (28825): --- Package Error --- I/flutter (28825): Unable to access remote server. 😑 I/flutter (28825): --- End Package Error --- I/flutter (28825): I/flutter (28825): --- package Error --- I/flutter (28825): email-auth >> The remote server is not a valid. I/flutter (28825): email-auth >> configured server : "https://sendotpfromflutter-af6c0b5ec39b.herokuapp.com/" I/flutter (28825): --- package Error ---

heroku logs

2023-07-17T08:48:12.088580+00:00 heroku[web.1]: Restarting 2023-07-17T08:48:12.156823+00:00 heroku[web.1]: State changed from up to starting 2023-07-17T08:48:12.816160+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2023-07-17T08:48:12.979693+00:00 heroku[web.1]: Process exited with status 143 2023-07-17T08:48:15.778800+00:00 heroku[web.1]: Starting process with command npm start 2023-07-17T08:48:16.000000+00:00 app[api]: Build succeeded 2023-07-17T08:48:17.213243+00:00 app[web.1]: 2023-07-17T08:48:17.213270+00:00 app[web.1]: > email-auth-node@0.0.1 start 2023-07-17T08:48:17.213272+00:00 app[web.1]: > node server/index.js %npm_config_log% 2023-07-17T08:48:17.213276+00:00 app[web.1]: 2023-07-17T08:48:17.405894+00:00 heroku[web.1]: State changed from starting to up 2023-07-17T08:48:19.968370+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=916990b0-e78c-4b29-84fb-4063564ccb75 fwd="223.136.227.110" dyno=web.1 connect=0ms service=8ms status=200 bytes=2150 protocol=https 2023-07-17T08:48:20.243688+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=0b1c3a0b-4299-4bd0-90c5-675f2124e3ca fwd="223.136.227.110" dyno=web.1 connect=0ms service=19ms status=200 bytes=4009874 protocol=https 2023-07-17T09:07:59.713460+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=dcc8c005-7e18-4347-b8c1-63ba0a21c9b8 fwd="223.136.227.110" dyno=web.1 connect=0ms service=3ms status=200 bytes=865 protocol=https 2023-07-17T09:13:51.312921+00:00 heroku[web.1]: Restarting 2023-07-17T09:13:51.314722+00:00 heroku[web.1]: State changed from up to starting 2023-07-17T09:13:51.875220+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2023-07-17T09:13:52.038300+00:00 heroku[web.1]: Process exited with status 143 2023-07-17T09:13:55.011150+00:00 heroku[web.1]: Starting process with command npm start 2023-07-17T09:13:56.500129+00:00 app[web.1]: 2023-07-17T09:13:56.500144+00:00 app[web.1]: > email-auth-node@0.0.1 start 2023-07-17T09:13:56.500146+00:00 app[web.1]: > node server/index.js %npm_config_log% 2023-07-17T09:13:56.500146+00:00 app[web.1]: 2023-07-17T09:13:56.666936+00:00 heroku[web.1]: State changed from starting to up 2023-07-17T09:18:48.546343+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=8a22b9fa-a1d8-41b3-8a6f-a77da833b659 fwd="223.136.227.110" dyno=web.1 connect=0ms service=40ms status=200 bytes=865 protocol=https 2023-07-17T09:19:46.800117+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a58dd130-8a16-4c79-aab9-cc209fea91eb fwd="223.136.227.110" dyno=web.1 connect=0ms service=3ms status=404 bytes=666 protocol=https 2023-07-17T09:19:58.872385+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=593b61b6-4727-44c7-a14b-019a7f86d481 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=200 bytes=865 protocol=https 2023-07-17T09:23:22.878998+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=42b33a3f-595f-44a8-ab57-19805399e176 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=404 bytes=666 protocol=https 2023-07-17T09:30:38.320836+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=96ecd976-b70e-41ce-96f0-06e8dc456280 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https 2023-07-17T09:30:38.615296+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=94ce599d-dfe2-42023-07-17T10:00:02.261177+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=33398aa4-4f33-4d53-888b-98109a35315a fwd="223.136.227.110" dyno=web.1 connect=2ms service=2ms status=404 bytes=666 protocol=https

saran-surya commented 1 year ago

Hi @rt234cw , Can you please get me the full logs. This data is only the beginning.

rt234cw commented 1 year ago

@saran-surya

sure, please see the logs down below. Also, I had tried some methods so far.

tried different server URLs as following

  1. https://sendotpfromflutter-af6c0b5ec39b.herokuapp.com/
  2. https://sendotpfromflutter-af6c0b5ec39b.herokuapp.com
  3. https://sendotpfromflutter.herokuapp.com/
  4. https://sendotpfromflutter.herokuapp.com But none of these solved this problem.

Further, I read an article on stackoverflow. https://stackoverflow.com/questions/74919921/heroku-stopping-all-processes-with-sigterm-process-exited-with-status-143 Would a free account be a potential problem?

debug console log

Launching lib\main.dart on Android SDK built for x86 in debug mode...
main.dart:1
√  Built build\app\outputs\flutter-apk\app-debug.apk.
Connecting to VM Service at ws://127.0.0.1:12133/EnIhF5WNc7s=/ws
I/FirebaseApp( 2828): Device unlocked: initializing all Firebase APIs for app [DEFAULT]
D/FirebaseAuth( 2828): Notifying id token listeners about user ( RfqbBwkAFEWiu29UF6ObqkrfY803 ).
I/flutter ( 2828): email-auth >> Initialising Email-Auth server
I/flutter ( 2828): --- Package Error ---
I/flutter ( 2828): Unable to access remote server. 😑
I/flutter ( 2828): --- End Package Error ---
I/flutter ( 2828): --- package Error ---
I/flutter ( 2828): email-auth >> The remote server is not a valid.
I/flutter ( 2828): email-auth >> configured server : "https://sendotpfromflutter-af6c0b5ec39b.herokuapp.com/"
I/flutter ( 2828): --- package Error ---

heroku logs

PS D:\flutter\sideproject> heroku logs -a sendotpfromflutter
2023-07-17T07:51:09.333208+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=4d18c86e-15f5-4066-8107-43760c85b8fd fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T07:51:09.465652+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=077a3253-016e-420b-a537-7682a5b2cdec fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T07:51:09.598645+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=aa2996a3-048d-4230-ac64-d55f6da73c66 fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T07:51:09.952163+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=b1727f5f-e6fa-46ef-9e49-269b6b61edb3 fwd="223.136.227.110" dyno=web.1 connect=1ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T07:51:10.128404+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=1234a66a-5ccb-4ecb-a7ad-fb8291e3a122 fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T07:51:10.265737+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=0ca269f6-2e7c-4d1d-9cc6-dcce78503f80 fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T07:51:10.386701+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=86bc099d-7a7a-47c6-8015-5c2396a84085 fwd="223.136.227.110" dyno=web.1 connect=1ms service=4ms status=404 bytes=666 protocol=https
2023-07-17T07:51:10.496448+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=5046867c-a150-407a-86f3-1e64e05b7e22 fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T07:54:30.027314+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=2048f838-897c-444c-a3a7-9056cc7b9f6b fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T07:54:55.958125+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a7ca1e11-887f-4502-aa24-c294e071db93 fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T07:56:40.662800+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=1f2744c9-63ea-4567-b5d3-b6af9739009e fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T07:56:41.437778+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=1f111c17-f2e9-4e5e-87e5-ea31d89238a4 fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T08:02:53.046911+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=0daa98e5-92e6-4658-9e63-1ed3b74d3e30 fwd="223.136.227.110" dyno=web.1 connect=2ms service=1ms status=304 bytes=826 protocol=https
2023-07-17T08:02:53.357735+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=727a14a5-4c19-4da6-a36a-67a35d05f0b8 fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=304 bytes=829 protocol=https
2023-07-17T08:03:41.186134+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=d2d42e8f-c235-40f8-9988-2c173eeb6278 fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T08:03:43.672884+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=8b86e36c-cbd0-4daf-b226-fb7725319e56 fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-17T08:08:05.456040+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=e8e85e19-63a7-4362-90a3-73d3c8dec3ed fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=304 bytes=826 protocol=https
2023-07-17T08:08:05.707149+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=430b7843-272c-44b0-95b4-55bb46cf6f75 fwd="223.136.227.110" dyno=web.1 connect=2ms service=1ms status=304 bytes=829 protocol=https
2023-07-17T08:40:33.611079+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=ee463785-e1b6-48bb-8daf-88c03229e986 fwd="223.136.227.110" dyno=web.1 connect=1ms service=3ms status=200 bytes=865 protocol=https
2023-07-17T08:40:40.290555+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=60d6e223-287b-46ed-adb1-01bda47c6b1c fwd="223.136.227.110" dyno=web.1 connect=1ms service=1ms status=304 bytes=826 protocol=https
2023-07-17T08:40:40.554051+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=e2b40302-2bc8-4cff-bb84-88b45fd9d358 fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=304 bytes=829 protocol=https
2023-07-17T08:47:39.000000+00:00 app[api]: Build started by user myaccountfromhere@gmail.com
2023-07-17T08:48:10.990525+00:00 app[api]: Deploy 9e25d133 by user myaccountfromhere@gmail.com
2023-07-17T08:48:10.990525+00:00 app[api]: Release v4 created by user myaccountfromhere@gmail.com
2023-07-17T08:48:12.088580+00:00 heroku[web.1]: Restarting
2023-07-17T08:48:12.156823+00:00 heroku[web.1]: State changed from up to starting
2023-07-17T08:48:12.816160+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-17T08:48:12.979693+00:00 heroku[web.1]: Process exited with status 143
2023-07-17T08:48:15.778800+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-17T08:48:16.000000+00:00 app[api]: Build succeeded
2023-07-17T08:48:17.213243+00:00 app[web.1]:
2023-07-17T08:48:17.213270+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-17T08:48:17.213272+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-17T08:48:17.213276+00:00 app[web.1]:
2023-07-17T08:48:17.405894+00:00 heroku[web.1]: State changed from starting to up
2023-07-17T08:48:19.968370+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=916990b0-e78c-4b29-84fb-4063564ccb75 fwd="223.136.227.110" dyno=web.1 connect=0ms service=8ms status=200 bytes=2150 protocol=https
2023-07-17T08:48:20.243688+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=0b1c3a0b-4299-4bd0-90c5-675f2124e3ca fwd="223.136.227.110" dyno=web.1 connect=0ms service=19ms status=200 bytes=4009874 protocol=https
2023-07-17T09:07:59.713460+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=dcc8c005-7e18-4347-b8c1-63ba0a21c9b8 fwd="223.136.227.110" dyno=web.1 connect=0ms service=3ms status=200 bytes=865 protocol=https
2023-07-17T09:13:51.312921+00:00 heroku[web.1]: Restarting
2023-07-17T09:13:51.314722+00:00 heroku[web.1]: State changed from up to starting
2023-07-17T09:13:51.875220+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-17T09:13:52.038300+00:00 heroku[web.1]: Process exited with status 143
2023-07-17T09:13:55.011150+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-17T09:13:56.500129+00:00 app[web.1]:
2023-07-17T09:13:56.500144+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-17T09:13:56.500146+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-17T09:13:56.500146+00:00 app[web.1]:
2023-07-17T09:13:56.666936+00:00 heroku[web.1]: State changed from starting to up
2023-07-17T09:18:48.546343+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=8a22b9fa-a1d8-41b3-8a6f-a77da833b659 fwd="223.136.227.110" dyno=web.1 connect=0ms service=40ms status=200 bytes=865 protocol=https
2023-07-17T09:19:46.800117+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a58dd130-8a16-4c79-aab9-cc209fea91eb fwd="223.136.227.110" dyno=web.1 connect=0ms service=3ms status=404 bytes=666 protocol=https
2023-07-17T09:19:58.872385+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=593b61b6-4727-44c7-a14b-019a7f86d481 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=200 bytes=865 protocol=https
2023-07-17T09:23:22.878998+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=42b33a3f-595f-44a8-ab57-19805399e176 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T09:30:38.320836+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=96ecd976-b70e-41ce-96f0-06e8dc456280 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https
2023-07-17T09:30:38.615296+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=94ce599d-dfe2-4fc9-8611-cfdfe0ab00be fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=304 bytes=829 protocol=https
2023-07-17T10:00:02.261177+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=33398aa4-4f33-4d53-888b-98109a35315a fwd="223.136.227.110" dyno=web.1 connect=2ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T10:11:36.000000+00:00 app[api]: Build started by user myaccountfromhere@gmail.com
2023-07-17T10:12:09.469848+00:00 app[api]: Deploy f71ec227 by user myaccountfromhere@gmail.com
2023-07-17T10:12:09.469848+00:00 app[api]: Release v5 created by user myaccountfromhere@gmail.com
2023-07-17T10:12:09.864256+00:00 heroku[web.1]: Restarting
2023-07-17T10:12:09.868118+00:00 heroku[web.1]: State changed from up to starting
2023-07-17T10:12:10.530101+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-17T10:12:10.692643+00:00 heroku[web.1]: Process exited with status 143
2023-07-17T10:12:15.000000+00:00 app[api]: Build succeeded
2023-07-17T10:12:17.674096+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-17T10:12:19.161899+00:00 app[web.1]:
2023-07-17T10:12:19.161918+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-17T10:12:19.161918+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-17T10:12:19.161918+00:00 app[web.1]:
2023-07-17T10:12:19.426902+00:00 heroku[web.1]: State changed from starting to up
2023-07-17T10:12:27.016646+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6563dac5-ecc0-4a3e-959d-cee60848587e fwd="223.136.227.110" dyno=web.1 connect=0ms service=9ms status=200 bytes=2150 protocol=https
2023-07-17T10:12:27.313536+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=445251b6-408b-4a9c-84e7-6cc66d797f98 fwd="223.136.227.110" dyno=web.1 connect=0ms service=26ms status=200 bytes=4009874 protocol=https
2023-07-17T10:14:27.676159+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6d6cf386-de32-467d-a9d3-c5d4ffed1786 fwd="223.136.227.110" dyno=web.1 connect=0ms service=4ms status=200 bytes=865 protocol=https
2023-07-17T10:14:45.529626+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=4f253615-dd1b-459f-b5d8-58b6cbd586ba fwd="223.136.227.110" dyno=web.1 connect=1ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T10:26:45.972234+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=65b5525e-c320-42a5-83c5-0d96a540e5ff fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https
2023-07-17T10:26:46.285492+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=3a9bc5ed-61f5-44ba-b3a4-7518d1c2f879 fwd="223.136.227.110" dyno=web.1 connect=2ms service=1ms status=304 bytes=829 protocol=https
2023-07-17T10:31:09.264449+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=8bdaff5e-f488-43a2-beeb-57166b7510c4 fwd="223.136.227.110" dyno=web.1 connect=1ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T10:31:56.012549+00:00 heroku[router]: at=info method=HEAD path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=69352a38-3eb3-495a-9522-56cb892c4380 fwd="217.182.175.162" dyno=web.1 connect=0ms service=1ms status=200 bytes=878 protocol=https
2023-07-17T10:35:06.509204+00:00 heroku[web.1]: Restarting
2023-07-17T10:35:06.571950+00:00 heroku[web.1]: State changed from up to starting
2023-07-17T10:35:07.145826+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-17T10:35:07.309702+00:00 heroku[web.1]: Process exited with status 143
2023-07-17T10:35:10.431849+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-17T10:35:12.110986+00:00 app[web.1]:
2023-07-17T10:35:12.111022+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-17T10:35:12.111023+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-17T10:35:12.111023+00:00 app[web.1]:
2023-07-17T10:35:12.668962+00:00 heroku[web.1]: State changed from starting to up
2023-07-18T04:04:35.122140+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=132cff3d-6b2a-4820-be4d-e0317dcb6027 fwd="223.137.218.93" dyno=web.1 connect=1ms service=95ms status=404 bytes=666 protocol=https
2023-07-18T05:44:48.127637+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a49b8a4e-b261-4c4e-9602-1abb60c1440e fwd="35.200.233.226" dyno=web.1 connect=0ms service=10ms status=200 bytes=2150 protocol=http
2023-07-18T05:44:50.102878+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=8ed19dfa-3e93-46f3-97b1-0a36b12eb159 fwd="103.205.152.157" dyno=web.1 connect=1ms service=2ms status=200 bytes=2150 protocol=https
2023-07-18T05:44:50.532489+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=e761bec0-81d4-4cc1-8fb2-fca04708dd16 fwd="103.205.152.157" dyno=web.1 connect=0ms service=81ms status=200 bytes=4009874 protocol=https
2023-07-18T05:44:56.023294+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6a43d812-5a01-4375-8142-996b1472bab0 fwd="103.205.152.157" dyno=web.1 connect=0ms service=1ms status=404 bytes=667 protocol=https
2023-07-18T05:46:38.945621+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=b661a2aa-50e3-4bf0-99ac-f217384b6788 fwd="103.205.152.157" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https
2023-07-18T05:46:39.312415+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=2588171f-1945-4ac0-8bce-3373da43e956 fwd="103.205.152.157" dyno=web.1 connect=1ms service=3ms status=304 bytes=829 protocol=https
2023-07-18T05:46:43.267650+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=9fe83e2f-2f2b-437b-8622-5e5782122616 fwd="103.205.152.157" dyno=web.1 connect=0ms service=39ms status=200 bytes=865 protocol=https
2023-07-18T05:48:06.439902+00:00 heroku[router]: at=info method=GET path="/auth/dart?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=f84e2538-46ce-48ff-9e25-cbf91d9227fd fwd="103.205.152.157" dyno=web.1 connect=0ms service=2ms status=404 bytes=665 protocol=https
2023-07-18T05:48:22.622318+00:00 heroku[router]: at=info method=GET path="/dart/auth?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=4496ed23-c0c6-45d9-9096-2479e795c712 fwd="103.205.152.157" dyno=web.1 connect=0ms service=2ms status=404 bytes=665 protocol=https
2023-07-18T05:48:32.863867+00:00 heroku[router]: at=info method=GET path="/auth?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=ac99a4b7-ee3e-4fef-a608-dfea26b1541a fwd="103.205.152.157" dyno=web.1 connect=0ms service=1ms status=404 bytes=660 protocol=https
2023-07-18T05:53:26.656637+00:00 heroku[router]: at=info method=GET path="/dart/auth/sample@g.co?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a6378c43-16cd-48a6-98dd-e5740c51e4d9 fwd="103.205.152.157" dyno=web.1 connect=0ms service=3ms status=404 bytes=894 protocol=https
2023-07-18T06:10:28.921248+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=b599e05e-a498-47b6-bccf-e7904c8be832 fwd="223.137.218.93" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
saran-surya commented 1 year ago

Actually i am confused why the server keeps restarting, Also when accessing the server through google it is actually working fine, PFA image

saran-surya commented 1 year ago

Here are the steps to find the exact response from the server.

rt234cw commented 1 year ago

@saran-surya Hi there,

I tried again before adjusting anything today.

here is what I got

I/flutter ( 7668): --- Package Error ---
I/flutter ( 7668): Failed host lookup: 'sendotpfromflutter-af6c0b5ec39b.herokuapp.com'
I/flutter ( 7668): --- End Package Error ---

It was I/flutter (28825): Unable to access remote server. 😑
Now, it became I/flutter ( 7668): Failed host lookup: 'sendotpfromflutter-af6c0b5ec39b.herokuapp.com'

Additionally, there is one detectable change in heroku logs. Few days ago, the server keep restarting. But today, it seems have some cycling status.

  D:\flutter\sideproject> heroku logs -a sendotpfromflutter
2023-07-17T09:13:52.038300+00:00 heroku[web.1]: Process exited with status 143
2023-07-17T09:13:55.011150+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-17T09:13:56.500129+00:00 app[web.1]: 
2023-07-17T09:13:56.500144+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-17T09:13:56.500146+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-17T09:13:56.500146+00:00 app[web.1]: 
2023-07-17T09:13:56.666936+00:00 heroku[web.1]: State changed from starting to up
2023-07-17T09:18:48.546343+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=8a22b9fa-a1d8-41b3-8a6f-a77da833b659 fwd="223.136.227.110" dyno=web.1 connect=0ms service=40ms status=200 bytes=865 protocol=https
2023-07-17T09:19:46.800117+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a58dd130-8a16-4c79-aab9-cc209fea91eb fwd="223.136.227.110" dyno=web.1 connect=0ms service=3ms status=404 bytes=666 protocol=https
2023-07-17T09:19:58.872385+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=593b61b6-4727-44c7-a14b-019a7f86d481 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=200 bytes=865 protocol=https
2023-07-17T09:23:22.878998+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=42b33a3f-595f-44a8-ab57-19805399e176 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T09:30:38.320836+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=96ecd976-b70e-41ce-96f0-06e8dc456280 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https
2023-07-17T09:30:38.615296+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=94ce599d-dfe2-4fc9-8611-cfdfe0ab00be fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=304 bytes=829 protocol=https
2023-07-17T10:00:02.261177+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=33398aa4-4f33-4d53-888b-98109a35315a fwd="223.136.227.110" dyno=web.1 connect=2ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T10:11:36.000000+00:00 app[api]: Build started by user myaccountfromhere@gmail.com
2023-07-17T10:12:09.469848+00:00 app[api]: Deploy f71ec227 by user myaccountfromhere@gmail.com
2023-07-17T10:12:09.469848+00:00 app[api]: Release v5 created by user myaccountfromhere@gmail.com
2023-07-17T10:12:09.864256+00:00 heroku[web.1]: Restarting
2023-07-17T10:12:09.868118+00:00 heroku[web.1]: State changed from up to starting
2023-07-17T10:12:10.530101+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-17T10:12:10.692643+00:00 heroku[web.1]: Process exited with status 143
2023-07-17T10:12:15.000000+00:00 app[api]: Build succeeded
2023-07-17T10:12:17.674096+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-17T10:12:19.161899+00:00 app[web.1]:
2023-07-17T10:12:19.161918+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-17T10:12:19.161918+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-17T10:12:19.161918+00:00 app[web.1]:
2023-07-17T10:12:19.426902+00:00 heroku[web.1]: State changed from starting to up
2023-07-17T10:12:27.016646+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6563dac5-ecc0-4a3e-959d-cee60848587e fwd="223.136.227.110" dyno=web.1 connect=0ms service=9ms status=200 bytes=2150 protocol=https
2023-07-17T10:12:27.313536+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=445251b6-408b-4a9c-84e7-6cc66d797f98 fwd="223.136.227.110" dyno=web.1 connect=0ms service=26ms status=200 bytes=4009874 protocol=https
2023-07-17T10:14:27.676159+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6d6cf386-de32-467d-a9d3-c5d4ffed1786 fwd="223.136.227.110" dyno=web.1 connect=0ms service=4ms status=200 bytes=865 protocol=https
2023-07-17T10:14:45.529626+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=4f253615-dd1b-459f-b5d8-58b6cbd586ba fwd="223.136.227.110" dyno=web.1 connect=1ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T10:26:45.972234+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=65b5525e-c320-42a5-83c5-0d96a540e5ff fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https
2023-07-17T10:26:46.285492+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=3a9bc5ed-61f5-44ba-b3a4-7518d1c2f879 fwd="223.136.227.110" dyno=web.1 connect=2ms service=1ms status=304 bytes=829 protocol=https
2023-07-17T10:31:09.264449+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=8bdaff5e-f488-43a2-beeb-57166b7510c4 fwd="223.136.227.110" dyno=web.1 connect=1ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T10:31:56.012549+00:00 heroku[router]: at=info method=HEAD path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=69352a38-3eb3-495a-9522-56cb892c4380 fwd="217.182.175.162" dyno=web.1 connect=0ms service=1ms status=200 bytes=878 protocol=https
2023-07-17T10:35:06.509204+00:00 heroku[web.1]: Restarting
2023-07-17T10:35:06.571950+00:00 heroku[web.1]: State changed from up to starting
2023-07-17T10:35:07.145826+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-17T10:35:07.309702+00:00 heroku[web.1]: Process exited with status 143
2023-07-17T10:35:10.431849+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-17T10:35:12.110986+00:00 app[web.1]:
2023-07-17T10:35:12.111022+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-17T10:35:12.111023+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-17T10:35:12.111023+00:00 app[web.1]:
2023-07-17T10:35:12.668962+00:00 heroku[web.1]: State changed from starting to up
2023-07-18T04:04:35.122140+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=132cff3d-6b2a-4820-be4d-e0317dcb6027 fwd="223.137.218.93" dyno=web.1 connect=1ms service=95ms status=404 bytes=666 protocol=https
2023-07-18T05:44:48.127637+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a49b8a4e-b261-4c4e-9602-1abb60c1440e fwd="35.200.233.226" dyno=web.1 connect=0ms service=10ms status=200 bytes=2150 protocol=http
2023-07-18T05:44:50.102878+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=8ed19dfa-3e93-46f3-97b1-0a36b12eb159 fwd="103.205.152.157" dyno=web.1 connect=1ms service=2ms status=200 bytes=2150 protocol=https
2023-07-18T05:44:50.532489+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=e761bec0-81d4-4cc1-8fb2-fca04708dd16 fwd="103.205.152.157" dyno=web.1 connect=0ms service=81ms status=200 bytes=4009874 protocol=https
2023-07-18T05:44:56.023294+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6a43d812-5a01-4375-8142-996b1472bab0 fwd="103.205.152.157" dyno=web.1 connect=0ms service=1ms status=404 bytes=667 protocol=https
2023-07-18T05:46:38.945621+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=b661a2aa-50e3-4bf0-99ac-f217384b6788 fwd="103.205.152.157" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https
2023-07-18T05:46:39.312415+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=2588171f-1945-4ac0-8bce-3373da43e956 fwd="103.205.152.157" dyno=web.1 connect=1ms service=3ms status=304 bytes=829 protocol=https
2023-07-18T05:46:43.267650+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=9fe83e2f-2f2b-437b-8622-5e5782122616 fwd="103.205.152.157" dyno=web.1 connect=0ms service=39ms status=200 bytes=865 protocol=https
2023-07-18T05:48:06.439902+00:00 heroku[router]: at=info method=GET path="/auth/dart?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=f84e2538-46ce-48ff-9e25-cbf91d9227fd fwd="103.205.152.157" dyno=web.1 connect=0ms service=2ms status=404 bytes=665 protocol=https
2023-07-18T05:48:22.622318+00:00 heroku[router]: at=info method=GET path="/dart/auth?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=4496ed23-c0c6-45d9-9096-2479e795c712 fwd="103.205.152.157" dyno=web.1 connect=0ms service=2ms status=404 bytes=665 protocol=https
2023-07-18T05:48:32.863867+00:00 heroku[router]: at=info method=GET path="/auth?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=ac99a4b7-ee3e-4fef-a608-dfea26b1541a fwd="103.205.152.157" dyno=web.1 connect=0ms service=1ms status=404 bytes=660 protocol=https
2023-07-18T05:53:26.656637+00:00 heroku[router]: at=info method=GET path="/dart/auth/sample@g.co?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a6378c43-16cd-48a6-98dd-e5740c51e4d9 fwd="103.205.152.157" dyno=web.1 connect=0ms service=3ms status=404 bytes=894 protocol=https
2023-07-18T06:10:28.921248+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=b599e05e-a498-47b6-bccf-e7904c8be832 fwd="223.137.218.93" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-18T06:27:26.478845+00:00 heroku[router]: at=info method=HEAD path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6773b765-8d93-45c6-bfb1-98260149be62 fwd="217.182.175.162" dyno=web.1 connect=0ms service=1ms status=200 bytes=878 protocol=https
2023-07-18T06:27:26.479937+00:00 heroku[router]: at=info method=HEAD path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=add8b4b2-78c2-4ec9-80a8-ff447c187d9f fwd="217.182.175.162" dyno=web.1 connect=0ms service=0ms status=200 bytes=878 protocol=https
2023-07-18T11:14:20.354935+00:00 heroku[web.1]: Cycling
2023-07-18T11:14:20.359143+00:00 heroku[web.1]: State changed from up to starting
2023-07-18T11:14:21.032979+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-18T11:14:21.232959+00:00 heroku[web.1]: Process exited with status 143
2023-07-18T11:14:24.485695+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-18T11:14:26.153391+00:00 app[web.1]:
2023-07-18T11:14:26.153418+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-18T11:14:26.153419+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-18T11:14:26.153419+00:00 app[web.1]:
2023-07-18T11:14:26.695353+00:00 heroku[web.1]: State changed from starting to up
2023-07-19T04:44:42.799425+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=f15ef3da-a529-481f-9793-7e7edeb18b5c fwd="35.205.159.124" dyno=web.1 connect=0ms service=20ms status=200 bytes=2150 protocol=http
2023-07-19T04:44:42.804113+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=d2f26437-0ccb-4ad1-a57f-59d32a0dd6fa fwd="35.205.159.124" dyno=web.1 connect=0ms service=16ms status=200 bytes=2150 protocol=http
2023-07-19T11:25:17.207934+00:00 heroku[web.1]: Cycling
2023-07-19T11:25:17.280187+00:00 heroku[web.1]: State changed from up to starting
2023-07-19T11:25:17.958841+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-19T11:25:18.183240+00:00 heroku[web.1]: Process exited with status 143
2023-07-19T11:25:24.008052+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-19T11:25:25.538623+00:00 app[web.1]:
2023-07-19T11:25:25.538650+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-19T11:25:25.538650+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-19T11:25:25.538651+00:00 app[web.1]:
2023-07-19T11:25:25.751817+00:00 heroku[web.1]: State changed from starting to up
2023-07-20T03:41:35.429606+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=95400276-f14b-4b5c-b12a-5f7a8c40f0a7 fwd="35.200.233.226" dyno=web.1 connect=0ms service=3ms status=200 bytes=2150 protocol=http
2023-07-20T03:41:35.429675+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=82515019-ee7f-4776-bc48-9385966a1ba9 fwd="35.200.233.226" dyno=web.1 connect=0ms service=20ms status=200 bytes=2150 protocol=http
2023-07-20T03:41:37.098614+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a8d647be-56c8-42ac-afde-ce44ed4b3f00 fwd="103.205.152.155" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https
2023-07-20T03:41:37.346046+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=b21ea28d-616f-460a-9935-fc6b0f8aa1f9 fwd="103.205.152.155" dyno=web.1 connect=0ms service=1ms status=304 bytes=826 protocol=https
2023-07-20T03:41:38.431178+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=2a472206-a41f-4886-b4cd-e125a98c5c71 fwd="103.205.152.155" dyno=web.1 connect=0ms service=1ms status=304 bytes=829 protocol=https
2023-07-20T03:41:38.678568+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=7d587ccc-22c8-46b7-9730-fe64818f7801 fwd="103.205.152.155" dyno=web.1 connect=0ms service=1ms status=304 bytes=829 protocol=https
2023-07-20T03:41:38.776411+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=f1c4f975-e70d-4c15-ac8f-c6179aa478bd fwd="103.205.152.155" dyno=web.1 connect=0ms service=2ms status=404 bytes=667 protocol=https
2023-07-20T03:41:39.021144+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=39ac66f4-3113-4cba-904b-61a9a59f2b8b fwd="103.205.152.155" dyno=web.1 connect=0ms service=1ms status=404 bytes=667 protocol=https
2023-07-20T03:41:43.530146+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=9ab55e82-0edd-4ee0-aaf1-a34634942c0b fwd="103.205.152.155" dyno=web.1 connect=0ms service=10ms status=304 bytes=739 protocol=https
2023-07-20T03:41:48.261494+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=09b935b4-845f-43ca-b9ff-63f7a9f8a4eb fwd="103.205.152.155" dyno=web.1 connect=0ms service=2ms status=304 bytes=739 protocol=https
2023-07-20T03:42:02.871233+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a77aee41-6671-4189-a186-2cd1b0428980 fwd="103.205.152.155" dyno=web.1 connect=0ms service=2ms status=304 bytes=739 protocol=https
2023-07-20T03:42:08.774811+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6b240e40-36ab-477f-9c2e-694314b53bbf fwd="103.205.152.155" dyno=web.1 connect=0ms service=2ms status=304 bytes=7392023-07-20T04:06:37.549110+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=b24fc520-2401-4f06-8dd3-59533aaa99c2 fwd="223.137.253.92" dyno=web.1 connect=0ms service=2ms status=200 bytes=865 
2023-07-20T04:06:37.940478+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=f4440b72-0bb1-4b03-b59d-a3e89d75c8b1 fwd="223.137.253.92" dyno=web.1 connect=0ms service=2ms status=404 bytes=667 protocol=https
2023-07-20T04:06:45.584929+00:00 heroku[router]: at=info method=GET path="/test" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=4ed9cd84-e245-4d92-b937-081bf018c190 fwd="223.137.253.92" dyno=web.1 connect=0ms service=1ms status=404 bytes=660 protocol=https
2023-07-20T04:12:49.375989+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=23f4fadb-6b25-45fe-9473-1a0b07181c1d fwd="223.137.253.92" dyno=web.1 connect=0ms service=1ms status=200 bytes=2150 protocol=https
2023-07-20T04:12:49.662182+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=47be13c8-53a3-4302-8289-1e16c5986f64 fwd="223.137.253.92" dyno=web.1 connect=0ms service=30ms status=200 bytes=4009874 protocol=https

I guess you have me to comment out this line late String _serverKey = ""; in email_auth/lib/email_auth.dart Because my line 72 is a comment. You can see it from the screenshot. I commented this line out and do a hot start, but the results are still the same including the logs from heroku. image

saran-surya commented 1 year ago

@saran-surya Hi there,

I tried again before adjusting anything today.

here is what I got

I/flutter ( 7668): --- Package Error ---
I/flutter ( 7668): Failed host lookup: 'sendotpfromflutter-af6c0b5ec39b.herokuapp.com'
I/flutter ( 7668): --- End Package Error ---

It was I/flutter (28825): Unable to access remote server. 😑 Now, it became I/flutter ( 7668): Failed host lookup: 'sendotpfromflutter-af6c0b5ec39b.herokuapp.com'

Additionally, there is one detectable change in heroku logs. Few days ago, the server keep restarting. But today, it seems have some cycling status.

  D:\flutter\sideproject> heroku logs -a sendotpfromflutter
2023-07-17T09:13:52.038300+00:00 heroku[web.1]: Process exited with status 143
2023-07-17T09:13:55.011150+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-17T09:13:56.500129+00:00 app[web.1]: 
2023-07-17T09:13:56.500144+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-17T09:13:56.500146+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-17T09:13:56.500146+00:00 app[web.1]: 
2023-07-17T09:13:56.666936+00:00 heroku[web.1]: State changed from starting to up
2023-07-17T09:18:48.546343+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=8a22b9fa-a1d8-41b3-8a6f-a77da833b659 fwd="223.136.227.110" dyno=web.1 connect=0ms service=40ms status=200 bytes=865 protocol=https
2023-07-17T09:19:46.800117+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a58dd130-8a16-4c79-aab9-cc209fea91eb fwd="223.136.227.110" dyno=web.1 connect=0ms service=3ms status=404 bytes=666 protocol=https
2023-07-17T09:19:58.872385+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=593b61b6-4727-44c7-a14b-019a7f86d481 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=200 bytes=865 protocol=https
2023-07-17T09:23:22.878998+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=42b33a3f-595f-44a8-ab57-19805399e176 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T09:30:38.320836+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=96ecd976-b70e-41ce-96f0-06e8dc456280 fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https
2023-07-17T09:30:38.615296+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=94ce599d-dfe2-4fc9-8611-cfdfe0ab00be fwd="223.136.227.110" dyno=web.1 connect=0ms service=1ms status=304 bytes=829 protocol=https
2023-07-17T10:00:02.261177+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=33398aa4-4f33-4d53-888b-98109a35315a fwd="223.136.227.110" dyno=web.1 connect=2ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T10:11:36.000000+00:00 app[api]: Build started by user myaccountfromhere@gmail.com
2023-07-17T10:12:09.469848+00:00 app[api]: Deploy f71ec227 by user myaccountfromhere@gmail.com
2023-07-17T10:12:09.469848+00:00 app[api]: Release v5 created by user myaccountfromhere@gmail.com
2023-07-17T10:12:09.864256+00:00 heroku[web.1]: Restarting
2023-07-17T10:12:09.868118+00:00 heroku[web.1]: State changed from up to starting
2023-07-17T10:12:10.530101+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-17T10:12:10.692643+00:00 heroku[web.1]: Process exited with status 143
2023-07-17T10:12:15.000000+00:00 app[api]: Build succeeded
2023-07-17T10:12:17.674096+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-17T10:12:19.161899+00:00 app[web.1]:
2023-07-17T10:12:19.161918+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-17T10:12:19.161918+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-17T10:12:19.161918+00:00 app[web.1]:
2023-07-17T10:12:19.426902+00:00 heroku[web.1]: State changed from starting to up
2023-07-17T10:12:27.016646+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6563dac5-ecc0-4a3e-959d-cee60848587e fwd="223.136.227.110" dyno=web.1 connect=0ms service=9ms status=200 bytes=2150 protocol=https
2023-07-17T10:12:27.313536+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=445251b6-408b-4a9c-84e7-6cc66d797f98 fwd="223.136.227.110" dyno=web.1 connect=0ms service=26ms status=200 bytes=4009874 protocol=https
2023-07-17T10:14:27.676159+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6d6cf386-de32-467d-a9d3-c5d4ffed1786 fwd="223.136.227.110" dyno=web.1 connect=0ms service=4ms status=200 bytes=865 protocol=https
2023-07-17T10:14:45.529626+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=4f253615-dd1b-459f-b5d8-58b6cbd586ba fwd="223.136.227.110" dyno=web.1 connect=1ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T10:26:45.972234+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=65b5525e-c320-42a5-83c5-0d96a540e5ff fwd="223.136.227.110" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https
2023-07-17T10:26:46.285492+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=3a9bc5ed-61f5-44ba-b3a4-7518d1c2f879 fwd="223.136.227.110" dyno=web.1 connect=2ms service=1ms status=304 bytes=829 protocol=https
2023-07-17T10:31:09.264449+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=8bdaff5e-f488-43a2-beeb-57166b7510c4 fwd="223.136.227.110" dyno=web.1 connect=1ms service=2ms status=404 bytes=666 protocol=https
2023-07-17T10:31:56.012549+00:00 heroku[router]: at=info method=HEAD path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=69352a38-3eb3-495a-9522-56cb892c4380 fwd="217.182.175.162" dyno=web.1 connect=0ms service=1ms status=200 bytes=878 protocol=https
2023-07-17T10:35:06.509204+00:00 heroku[web.1]: Restarting
2023-07-17T10:35:06.571950+00:00 heroku[web.1]: State changed from up to starting
2023-07-17T10:35:07.145826+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-17T10:35:07.309702+00:00 heroku[web.1]: Process exited with status 143
2023-07-17T10:35:10.431849+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-17T10:35:12.110986+00:00 app[web.1]:
2023-07-17T10:35:12.111022+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-17T10:35:12.111023+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-17T10:35:12.111023+00:00 app[web.1]:
2023-07-17T10:35:12.668962+00:00 heroku[web.1]: State changed from starting to up
2023-07-18T04:04:35.122140+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=132cff3d-6b2a-4820-be4d-e0317dcb6027 fwd="223.137.218.93" dyno=web.1 connect=1ms service=95ms status=404 bytes=666 protocol=https
2023-07-18T05:44:48.127637+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a49b8a4e-b261-4c4e-9602-1abb60c1440e fwd="35.200.233.226" dyno=web.1 connect=0ms service=10ms status=200 bytes=2150 protocol=http
2023-07-18T05:44:50.102878+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=8ed19dfa-3e93-46f3-97b1-0a36b12eb159 fwd="103.205.152.157" dyno=web.1 connect=1ms service=2ms status=200 bytes=2150 protocol=https
2023-07-18T05:44:50.532489+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=e761bec0-81d4-4cc1-8fb2-fca04708dd16 fwd="103.205.152.157" dyno=web.1 connect=0ms service=81ms status=200 bytes=4009874 protocol=https
2023-07-18T05:44:56.023294+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6a43d812-5a01-4375-8142-996b1472bab0 fwd="103.205.152.157" dyno=web.1 connect=0ms service=1ms status=404 bytes=667 protocol=https
2023-07-18T05:46:38.945621+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=b661a2aa-50e3-4bf0-99ac-f217384b6788 fwd="103.205.152.157" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https
2023-07-18T05:46:39.312415+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=2588171f-1945-4ac0-8bce-3373da43e956 fwd="103.205.152.157" dyno=web.1 connect=1ms service=3ms status=304 bytes=829 protocol=https
2023-07-18T05:46:43.267650+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=9fe83e2f-2f2b-437b-8622-5e5782122616 fwd="103.205.152.157" dyno=web.1 connect=0ms service=39ms status=200 bytes=865 protocol=https
2023-07-18T05:48:06.439902+00:00 heroku[router]: at=info method=GET path="/auth/dart?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=f84e2538-46ce-48ff-9e25-cbf91d9227fd fwd="103.205.152.157" dyno=web.1 connect=0ms service=2ms status=404 bytes=665 protocol=https
2023-07-18T05:48:22.622318+00:00 heroku[router]: at=info method=GET path="/dart/auth?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=4496ed23-c0c6-45d9-9096-2479e795c712 fwd="103.205.152.157" dyno=web.1 connect=0ms service=2ms status=404 bytes=665 protocol=https
2023-07-18T05:48:32.863867+00:00 heroku[router]: at=info method=GET path="/auth?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=ac99a4b7-ee3e-4fef-a608-dfea26b1541a fwd="103.205.152.157" dyno=web.1 connect=0ms service=1ms status=404 bytes=660 protocol=https
2023-07-18T05:53:26.656637+00:00 heroku[router]: at=info method=GET path="/dart/auth/sample@g.co?companyName=sample&otp=12345&key=.*" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a6378c43-16cd-48a6-98dd-e5740c51e4d9 fwd="103.205.152.157" dyno=web.1 connect=0ms service=3ms status=404 bytes=894 protocol=https
2023-07-18T06:10:28.921248+00:00 heroku[router]: at=info method=GET path="//test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=b599e05e-a498-47b6-bccf-e7904c8be832 fwd="223.137.218.93" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2023-07-18T06:27:26.478845+00:00 heroku[router]: at=info method=HEAD path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6773b765-8d93-45c6-bfb1-98260149be62 fwd="217.182.175.162" dyno=web.1 connect=0ms service=1ms status=200 bytes=878 protocol=https
2023-07-18T06:27:26.479937+00:00 heroku[router]: at=info method=HEAD path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=add8b4b2-78c2-4ec9-80a8-ff447c187d9f fwd="217.182.175.162" dyno=web.1 connect=0ms service=0ms status=200 bytes=878 protocol=https
2023-07-18T11:14:20.354935+00:00 heroku[web.1]: Cycling
2023-07-18T11:14:20.359143+00:00 heroku[web.1]: State changed from up to starting
2023-07-18T11:14:21.032979+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-18T11:14:21.232959+00:00 heroku[web.1]: Process exited with status 143
2023-07-18T11:14:24.485695+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-18T11:14:26.153391+00:00 app[web.1]:
2023-07-18T11:14:26.153418+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-18T11:14:26.153419+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-18T11:14:26.153419+00:00 app[web.1]:
2023-07-18T11:14:26.695353+00:00 heroku[web.1]: State changed from starting to up
2023-07-19T04:44:42.799425+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=f15ef3da-a529-481f-9793-7e7edeb18b5c fwd="35.205.159.124" dyno=web.1 connect=0ms service=20ms status=200 bytes=2150 protocol=http
2023-07-19T04:44:42.804113+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=d2f26437-0ccb-4ad1-a57f-59d32a0dd6fa fwd="35.205.159.124" dyno=web.1 connect=0ms service=16ms status=200 bytes=2150 protocol=http
2023-07-19T11:25:17.207934+00:00 heroku[web.1]: Cycling
2023-07-19T11:25:17.280187+00:00 heroku[web.1]: State changed from up to starting
2023-07-19T11:25:17.958841+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2023-07-19T11:25:18.183240+00:00 heroku[web.1]: Process exited with status 143
2023-07-19T11:25:24.008052+00:00 heroku[web.1]: Starting process with command `npm start`
2023-07-19T11:25:25.538623+00:00 app[web.1]:
2023-07-19T11:25:25.538650+00:00 app[web.1]: > email-auth-node@0.0.1 start
2023-07-19T11:25:25.538650+00:00 app[web.1]: > node server/index.js %npm_config_log%
2023-07-19T11:25:25.538651+00:00 app[web.1]:
2023-07-19T11:25:25.751817+00:00 heroku[web.1]: State changed from starting to up
2023-07-20T03:41:35.429606+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=95400276-f14b-4b5c-b12a-5f7a8c40f0a7 fwd="35.200.233.226" dyno=web.1 connect=0ms service=3ms status=200 bytes=2150 protocol=http
2023-07-20T03:41:35.429675+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=82515019-ee7f-4776-bc48-9385966a1ba9 fwd="35.200.233.226" dyno=web.1 connect=0ms service=20ms status=200 bytes=2150 protocol=http
2023-07-20T03:41:37.098614+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a8d647be-56c8-42ac-afde-ce44ed4b3f00 fwd="103.205.152.155" dyno=web.1 connect=0ms service=2ms status=304 bytes=826 protocol=https
2023-07-20T03:41:37.346046+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=b21ea28d-616f-460a-9935-fc6b0f8aa1f9 fwd="103.205.152.155" dyno=web.1 connect=0ms service=1ms status=304 bytes=826 protocol=https
2023-07-20T03:41:38.431178+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=2a472206-a41f-4886-b4cd-e125a98c5c71 fwd="103.205.152.155" dyno=web.1 connect=0ms service=1ms status=304 bytes=829 protocol=https
2023-07-20T03:41:38.678568+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=7d587ccc-22c8-46b7-9730-fe64818f7801 fwd="103.205.152.155" dyno=web.1 connect=0ms service=1ms status=304 bytes=829 protocol=https
2023-07-20T03:41:38.776411+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=f1c4f975-e70d-4c15-ac8f-c6179aa478bd fwd="103.205.152.155" dyno=web.1 connect=0ms service=2ms status=404 bytes=667 protocol=https
2023-07-20T03:41:39.021144+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=39ac66f4-3113-4cba-904b-61a9a59f2b8b fwd="103.205.152.155" dyno=web.1 connect=0ms service=1ms status=404 bytes=667 protocol=https
2023-07-20T03:41:43.530146+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=9ab55e82-0edd-4ee0-aaf1-a34634942c0b fwd="103.205.152.155" dyno=web.1 connect=0ms service=10ms status=304 bytes=739 protocol=https
2023-07-20T03:41:48.261494+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=09b935b4-845f-43ca-b9ff-63f7a9f8a4eb fwd="103.205.152.155" dyno=web.1 connect=0ms service=2ms status=304 bytes=739 protocol=https
2023-07-20T03:42:02.871233+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=a77aee41-6671-4189-a186-2cd1b0428980 fwd="103.205.152.155" dyno=web.1 connect=0ms service=2ms status=304 bytes=739 protocol=https
2023-07-20T03:42:08.774811+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=6b240e40-36ab-477f-9c2e-694314b53bbf fwd="103.205.152.155" dyno=web.1 connect=0ms service=2ms status=304 bytes=7392023-07-20T04:06:37.549110+00:00 heroku[router]: at=info method=GET path="/test/dart" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=b24fc520-2401-4f06-8dd3-59533aaa99c2 fwd="223.137.253.92" dyno=web.1 connect=0ms service=2ms status=200 bytes=865 
2023-07-20T04:06:37.940478+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=f4440b72-0bb1-4b03-b59d-a3e89d75c8b1 fwd="223.137.253.92" dyno=web.1 connect=0ms service=2ms status=404 bytes=667 protocol=https
2023-07-20T04:06:45.584929+00:00 heroku[router]: at=info method=GET path="/test" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=4ed9cd84-e245-4d92-b937-081bf018c190 fwd="223.137.253.92" dyno=web.1 connect=0ms service=1ms status=404 bytes=660 protocol=https
2023-07-20T04:12:49.375989+00:00 heroku[router]: at=info method=GET path="/" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=23f4fadb-6b25-45fe-9473-1a0b07181c1d fwd="223.137.253.92" dyno=web.1 connect=0ms service=1ms status=200 bytes=2150 protocol=https
2023-07-20T04:12:49.662182+00:00 heroku[router]: at=info method=GET path="/index.css" host=sendotpfromflutter-af6c0b5ec39b.herokuapp.com request_id=47be13c8-53a3-4302-8289-1e16c5986f64 fwd="223.137.253.92" dyno=web.1 connect=0ms service=30ms status=200 bytes=4009874 protocol=https

I guess you have me to comment out this line late String _serverKey = ""; in email_auth/lib/email_auth.dart Because my line 72 is a comment. You can see it from the screenshot. I commented this line out and do a hot start, but the results are still the same including the logs from heroku. image

saran-surya commented 1 year ago

I found out the issue, Instead of this url : "https://sendotpfromflutter-af6c0b5ec39b.herokuapp.com/" Use this url : "https://sendotpfromflutter-af6c0b5ec39b.herokuapp.com"

Now everything will work..

rt234cw commented 1 year ago

@saran-surya

unfortunately, it doesn't work. Actually, I tried different URLs. But it doesn't work. You can see it from the screenshot. Btw, I removed my server key.

image

saran-surya commented 1 year ago

The server is up and running, it is your local machine proxy or the VM causing some issue looking up the host, is it able to access the internet ?

And then please try again by un-commenting the mentioned line in the package file, and re-run the program, Not hot restart, a rebuild please

image

rt234cw commented 1 year ago

@saran-surya

Sure, I followed the steps you provided. I can see that the server is running on my computer too, so the internet connection is working well. However, after rebuilding the app, I received the same messages as before.

image

I/FirebaseApp(10596): Device unlocked: initializing all Firebase APIs for app [DEFAULT]
D/OpenSSLLib(10596): OpensslErr:Module:12(177:); file:external/boringssl/src/crypto/asn1/asn1_lib.c ;Line:168;Function:ASN1_get_object
I/flutter (10596): email-auth >> Initialising Email-Auth server
W/1.raster(10596): type=1400 audit(0.0:16212): avc: denied { search } for name="/" dev="mmcblk0p40" ino=2 scontext=u:r:untrusted_app:s0:c145,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=0
W/1.raster(10596): type=1400 audit(0.0:16213): avc: denied { search } for name="/" dev="mmcblk0p40" ino=2 scontext=u:r:untrusted_app:s0:c145,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=0
E/ion     (10596): ioctl c0044901 failed with code -1: Invalid argument
W/Choreographer(10596): Frame time is 1.242304 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
I/flutter (10596):
I/flutter (10596): --- package Error ---
I/flutter (10596): email-auth >> The remote server is not a valid.
I/flutter (10596): email-auth >> configured server : "https://sendotpfromflutter-af6c0b5ec39b.herokuapp.com"
I/flutter (10596): --- package Error ---
I/flutter (10596):
I/flutter (10596): --- package Error ---
I/flutter (10596): email-auth >> The remote server is not a valid.
I/flutter (10596): email-auth >> configured server : "https://sendotpfromflutter-af6c0b5ec39b.herokuapp.com"
I/flutter (10596): --- package Error ---
saran-surya commented 1 year ago

Hi @rt234cw , As you can see, the server is not up. Kindly let me know if you are still facing the issue

image

alkhirbashd commented 1 year ago

i have the same issue here and The server is up and running

alkhirbashd commented 1 year ago

@saran-surya i have the same issue here and The server is up and running

alkhirbashd commented 1 year ago

here is my server https://tough-mite-rugby-shirt.cyclic.app

and the error :

I/flutter (28825): --- package Error --- I/flutter (28825): email-auth >> The remote server is not a valid. I/flutter (28825): email-auth >> configured server : "https://tough-mite-rugby-shirt.cyclic.app" I/flutter (28825): --- package Error ---

rt234cw commented 1 year ago

@saran-surya Hi, I terminated this server because I couldn't connect to it and was also being charged. I tried several methods to resolve the issue, but unfortunately, none of them worked.

@alkhirbashd I believe you pasted the wrong url, it should be end with .com or maybe with .php where did you get this url from?

saran-surya commented 1 year ago

Hi, This is completely wierd as of now I tried creating a project for myself and everything is working just fine...

I am not sure why there is an issue, can you please post your full server and flutter logs again if you don't mind..

On Sun, 6 Aug 2023, 10:56 rt234cw, @.***> wrote:

@rt234cw https://github.com/rt234cw

Hi, I terminated this server because I couldn't connect to it and was also being charged. I tried several methods to resolve the issue, but unfortunately, none of them worked. :(

— Reply to this email directly, view it on GitHub https://github.com/saran-surya/email_auth/issues/89#issuecomment-1666724684, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOEQS2L3BVRGV2ZMGZJ62O3XT4THRANCNFSM6AAAAAA2MXL63M . You are receiving this because you were mentioned.Message ID: @.***>

rt234cw commented 1 year ago

@saran-surya

Did you test this with a free Heroku account and Hotmail? I followed your guide step by step, but I still can't connect to the server. Could a firewall be the issue here?

I'm currently unable to access my computer, but I'll make time in the next few days to provide the logs. Meanwhile, could you share how you went through the process?

saran-surya commented 1 year ago

I tried it with a paid Heroku account and outlook btw, and that was working like a charm...

Yes please provide the logs we'll see how we can fix it

Thanks

On Fri, 11 Aug 2023, 08:38 rt234cw, @.***> wrote:

@saran-surya https://github.com/saran-surya

Did you test this with a free Heroku account and Hotmail? I followed your guide step by step, but I still can't connect to the server. Could a firewall be the issue here?

I'm currently unable to access my computer, but I'll make time in the next few days to provide the logs. Meanwhile, could you share how you went through the process?

— Reply to this email directly, view it on GitHub https://github.com/saran-surya/email_auth/issues/89#issuecomment-1674161106, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOEQS2LF4Y3C4AN47ZCR7Q3XUWO4VANCNFSM6AAAAAA2MXL63M . You are receiving this because you were mentioned.Message ID: @.***>

rt234cw commented 1 year ago

I'm not going to try out again, because my email account was logged in from China, and I couldn't take it back.