Closed rahulrajamani31 closed 2 years ago
Hi @rahulrajamani31 , can you please post the heroku and flutter logs, I still seem to access the landing page of the server. Seems like the server is not valid, did you configure the key and put them in a folder,
I have added the server key only in my auth.config.dart file still i have to add those url and server key anywhere else in my flutter files???????
Sry sir I cant understand which log files you are asking.....so Iam sending you the screenshot of how i used and generated the server key in the first screenshot i have mentioned where I have given the server Url and server key and in the second screenshot i have given the node project where the server key is generated...if there any mistakes in these please notify me????or else i have to add the server key anywhere else...
this is the code where i have implemented and i get the below error . . . email-auth >> Initialising Email-Auth server --- Package Error --- Unable to access remote server. ๐ --- End Package Error --- --- package Error --- email-auth >> The remote server is not a valid. email-auth >> configured server : "https://emailauthserver.herokuapp.com/" --- package Error -
I want to know whether i have given a correct server key??????
No that is fine, please post the heroku logs
PS D:\email_auth> heroku logs
ยป Warning: heroku update available from 7.53.0 to 7.59.2.
2022-02-04T14:15:29.038549+00:00 app[web.1]: port 19023
2022-02-04T14:15:29.078655+00:00 heroku[web.1]: State changed from starting to up
2022-02-04T14:15:29.899390+00:00 heroku[router]: at=info method=GET path="/" host=emailauthserver.herokuapp.com request_id=b9d30a8f-6318-4865-9733-a288586e288a fwd="103.114.211.104" dyno=web.1 connect=0ms service=16ms status=304 bytes=739 protocol=https
2022-02-04T14:15:29.972012+00:00 heroku[router]: at=info method=GET path="/" host=emailauthserver.herokuapp.com request_id=f77de34d-ab33-4157-8716-4d15d60579d5 fwd="103.114.211.104" dyno=web.1 connect=0ms service=2ms status=200 bytes=818 protocol=https
2022-02-04T14:15:30.929559+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=emailauthserver.herokuapp.com request_id=2d3e482b-a01d-4920-b125-84a26c6c7939 fwd="103.114.211.104" dyno=web.1 connect=0ms service=4ms status=404 bytes=667 protocol=https
2022-02-04T14:26:19.291272+00:00 heroku[router]: at=info method=GET path="//test/dart" host=emailauthserver.herokuapp.com request_id=843b39aa-0d75-4c67-89ac-d8e8a5ac77fd fwd="103.114.211.104" dyno=web.1 connect=0ms service=3ms status=404 bytes=666 protocol=https
2022-02-04T15:02:04.140951+00:00 heroku[web.1]: Idling
2022-02-04T15:02:04.155080+00:00 heroku[web.1]: State changed from up to down
2022-02-04T15:02:07.235056+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2022-02-04T15:02:07.822454+00:00 heroku[web.1]: Process exited with status 143
2022-02-04T15:30:54.046773+00:00 heroku[web.1]: Unidling
2022-02-04T15:30:54.050723+00:00 heroku[web.1]: State changed from down to starting
2022-02-04T15:31:01.096799+00:00 heroku[web.1]: Starting process with command npm start
2022-02-04T15:31:02.761588+00:00 app[web.1]:
2022-02-04T15:31:02.761617+00:00 app[web.1]: > email-auth-node@0.0.1 start
2022-02-04T15:31:02.761618+00:00 app[web.1]: > node server/index.js
2022-02-04T15:31:02.761618+00:00 app[web.1]:
2022-02-04T15:31:02.979064+00:00 app[web.1]: server started
2022-02-04T15:31:02.979321+00:00 app[web.1]: port 35354
2022-02-04T15:31:03.168707+00:00 heroku[web.1]: State changed from starting to up
2022-02-04T15:31:06.127577+00:00 heroku[router]: at=info method=GET path="//test/dart" host=emailauthserver.herokuapp.com request_id=d5af8741-7ebc-4597-b357-1dec19fcb44c fwd="103.114.211.104" dyno=web.1 connect=0ms service=10ms status=404 bytes=666 protocol=https
2022-02-04T15:39:57.463144+00:00 heroku[router]: at=info method=GET path="//test/dart" host=emailauthserver.herokuapp.com request_id=01a6df6b-bcf4-4a09-bbbc-e37e824939f4 fwd="103.114.211.104" dyno=web.1 connect=0ms service=3ms status=404 bytes=666 protocol=https
2022-02-04T16:13:37.587477+00:00 heroku[web.1]: Idling
2022-02-04T16:13:37.641485+00:00 heroku[web.1]: State changed from up to down
2022-02-04T16:13:40.514604+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2022-02-04T16:13:40.738380+00:00 heroku[web.1]: Process exited with status 143
2022-02-04T16:47:29.157408+00:00 heroku[web.1]: Unidling
2022-02-04T16:47:29.225505+00:00 heroku[web.1]: State changed from down to starting
2022-02-04T16:47:34.977756+00:00 heroku[web.1]: Starting process with command npm start
2022-02-04T16:47:36.271422+00:00 app[web.1]:
2022-02-04T16:47:36.271439+00:00 app[web.1]: > email-auth-node@0.0.1 start
2022-02-04T16:47:36.271439+00:00 app[web.1]: > node server/index.js
2022-02-04T16:47:36.271440+00:00 app[web.1]:
2022-02-04T16:47:36.413259+00:00 app[web.1]: server started
2022-02-04T16:47:36.413526+00:00 app[web.1]: port 56045
2022-02-04T16:47:36.789464+00:00 heroku[web.1]: State changed from starting to up
2022-02-04T16:47:37.340972+00:00 heroku[router]: at=info method=GET path="//test/dart" host=emailauthserver.herokuapp.com request_id=2b51b762-a30a-465a-8ba3-73a13e524b7e fwd="103.114.211.104" dyno=web.1 connect=0ms service=12ms status=404 bytes=666 protocol=https
2022-02-04T16:48:02.805490+00:00 heroku[router]: at=info method=GET path="//test/dart" host=emailauthserver.herokuapp.com request_id=0153e301-f023-48a9-97b3-2eba26f30f04 fwd="103.114.211.104" dyno=web.1 connect=0ms service=3ms status=404 bytes=666 protocol=https
2022-02-04T16:50:10.773808+00:00 heroku[router]: at=info method=GET path="//test/dart" host=emailauthserver.herokuapp.com request_id=8876d224-33f3-408a-9a88-1f066db00c59 fwd="103.114.211.104" dyno=web.1 connect=0ms service=2ms status=404 bytes=666 protocol=https
2022-02-04T16:50:23.972020+00:00 heroku[router]: at=info method=GET path="/" host=emailauthserver.herokuapp.com request_id=e0c659a0-4afb-4a4d-a0be-8e4672d7e5b9 fwd="103.114.211.104" dyno=web.1 connect=0ms service=3ms status=304 bytes=739 protocol=https
2022-02-04T16:50:24.589099+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=emailauthserver.herokuapp.com request_id=0e798f04-e667-4f2a-afb6-bbfe6414ee3d fwd="103.114.211.104" dyno=web.1 connect=0ms service=2ms status=404 bytes=667 protocol=https
2022-02-04T17:14:16.440315+00:00 heroku[router]: at=info method=GET path="//test/dart" host=emailauthserver.herokuapp.com request_id=838207fd-7a7c-46d1-a977-63b99e1c5b64 fwd="103.114.211.104" dyno=web.1 connect=0ms service=2ms status=404 bytes=666 protocol=https
2022-02-04T17:20:43.006396+00:00 heroku[router]: at=info method=GET path="/" host=emailauthserver.herokuapp.com request_id=e655b2d6-13e2-4e89-b216-edf5335924db fwd="103.114.211.104" dyno=web.1 connect=0ms service=2ms status=304 bytes=739 protocol=https
2022-02-04T17:20:43.450078+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=emailauthserver.herokuapp.com request_id=debe96a8-e28d-4b92-b42a-9acf89449231 fwd="103.114.211.104" dyno=web.1 connect=0ms service=2ms status=404 bytes=667 protocol=https
2022-02-04T17:25:33.109541+00:00 heroku[router]: at=info method=HEAD path="/" host=emailauthserver.herokuapp.com request_id=965a32a4-0947-414a-8712-59a3686f707d fwd="217.182.175.162" dyno=web.1 connect=0ms service=1ms status=200 bytes=789 protocol=https
2022-02-04T17:44:28.149398+00:00 heroku[router]: at=info method=GET path="//test/dart" host=emailauthserver.herokuapp.com request_id=2599318b-b02e-4798-a109-b584d5d99391 fwd="103.114.211.104" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2022-02-04T17:44:36.614126+00:00 heroku[router]: at=info method=GET path="//test/dart" host=emailauthserver.herokuapp.com request_id=888f6e59-f9fd-4d73-af56-17560a7dd51d fwd="103.114.211.104" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2022-02-04T17:45:00.210712+00:00 heroku[router]: at=info method=GET path="//test/dart" host=emailauthserver.herokuapp.com request_id=a00ddca3-db4f-4928-af8a-2cb8b6e71f92 fwd="103.114.211.104" dyno=web.1 connect=0ms service=1ms status=404 bytes=666 protocol=https
2022-02-04T17:50:12.650820+00:00 heroku[router]: at=info method=GET path="//test/dart" host=emailauthserver.herokuapp.com request_id=da6789d7-57b4-4fbb-9d42-08e5e9315e82 fwd="103.114.211.104" dyno=web.1 connect=0ms service=2ms status=404 bytes=666 protocol=https
2022-02-04T17:51:26.794395+00:00 heroku[router]: at=info method=GET path="/" host=emailauthserver.herokuapp.com request_id=b93a6756-1c6e-4f45-bf48-bad6d40d6b19 fwd="103.114.211.104" dyno=web.1 connect=0ms service=2ms status=304 bytes=739 protocol=https
2022-02-04T17:51:27.194679+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=emailauthserver.herokuapp.com request_id=0539331b-1026-40b9-af84-f6155445ee6d fwd="103.114.211.104" dyno=web.1 connect=0ms service=5ms status=404 bytes=667 protocol=https
2022-02-04T18:26:37.265074+00:00 heroku[web.1]: Idling
2022-02-04T18:26:37.269415+00:00 heroku[web.1]: State changed from up to down
2022-02-04T18:26:38.841366+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2022-02-04T18:26:39.051302+00:00 heroku[web.1]: Process exited with status 143
2022-02-05T01:34:01.659990+00:00 heroku[web.1]: Unidling
2022-02-05T01:34:01.675381+00:00 heroku[web.1]: State changed from down to starting
2022-02-05T01:34:10.791786+00:00 heroku[web.1]: Starting process with command npm start
2022-02-05T01:34:12.305512+00:00 app[web.1]:
2022-02-05T01:34:12.305527+00:00 app[web.1]: > email-auth-node@0.0.1 start
2022-02-05T01:34:12.305527+00:00 app[web.1]: > node server/index.js
2022-02-05T01:34:12.305528+00:00 app[web.1]:
2022-02-05T01:34:12.452285+00:00 app[web.1]: server started
2022-02-05T01:34:12.452459+00:00 app[web.1]: port 26004
2022-02-05T01:34:12.482002+00:00 heroku[web.1]: State changed from starting to up
2022-02-05T01:34:13.735117+00:00 heroku[router]: at=info method=GET path="/" host=emailauthserver.herokuapp.com request_id=b2e42076-c7cd-45fa-badf-0baa31f2ffd0 fwd="157.49.138.17" dyno=web.1 connect=0ms service=8ms status=200 bytes=818 protocol=https
2022-02-05T13:00:34.147793+00:00 app[web.1]:2022-02-05T13:00:34.293420+00:00 app[web.1]: server started
2022-02-05T13:00:34.293607+00:00 app[web.1]: port 568962022-02-05T13:00:34.657313+00:00 heroku[web.1]: State changed from starting to up
2022-02-05T13:00:35.328517+00:00 heroku[router]: at=info method=GET path="/" host=emailauthserver.herokuapp.com request_id=5aa7a537-8d84-4200-8c13-ffedefac395b fwd="103.114.211.119" dyno=web.1 connect=0ms service=10ms status=304 bytes=739 protocol=https2022-02-05T13:00:35.628353+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=emailauthserver.herokuapp.com request_id=faec3a46-f55c-4f84-a4e4-523da648194b fwd="103.114.211.119" dyno=web.1 connect=0ms service=4ms status=404 bytes=667 protocol=https
PS D:\email_auth>
Hi @rahulrajamani31 its a small link issue, the extra forward slash present in the config file.
Try using this alone in the flutter config https://emailauthserver.herokuapp.com
bro the error is solved but iam getting a new error ...please help me to sort it out
this is the recent heroku logs
The get request url is messed up, the server key is actually correct, check your auth.dart file
You are passing this key.
But I see a different key configured, so can you check if the right build of the server is pushed to heroku ?
yes bro i have changed the key in my node project and pushed it to heroku and then changed the key in flutter project also but i get this error.....
do i want to configure SSL CERTIFICATE in the heroku website?????????
yes bro i have changed the key in my node project and pushed it to heroku and then changed the key in flutter project also but i get this error.....
Do you have a GitHub action set up for heroku ??
Else that git commit will not work. You need to use heroku git.
do i want to configure SSL CERTIFICATE in the heroku website?????????
This is not needed, can you get acces to the cloud terminal, and then do the following commands
ls
That should list you all the files, the. You can do the following command or navigate to the config.env file
cat custom/config.env
And verify all the details in the file is same as yours.
This should let you get a clear idea about the build being pushed, and you can get the server key, and update in the application
bro thankyou for everthing you are really amazing .......thankyou for the time you have spent for this errors i have solved all errors and now otp is sending successfully.......
your linkedin id bro???
your linkedin id bro???
https://www.linkedin.com/in/saransurya/ and thanks for the compliments. Happy coding ๐ฆ
email-auth >> Initialising Email-Auth server --- Package Error --- Unable to access remote server. ๐ --- End Package Error --- --- package Error --- email-auth >> The remote server is not a valid. email-auth >> configured server : "[https://emailauthserver.herokuapp.com/]()" --- package Error ---
Iam getiing the above issue in my flutter code....
I have deployed the production server by seeing this --->https://saran-surya.github.io/email-auth-node/
My production server Url ---->https://emailauthserver.herokuapp.com/ is working properly
but when i try to use this in my flutter i get the above error please help me to rectify this error.