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

--- Package Error --- #58

Closed adarsh-kn closed 2 years ago

adarsh-kn commented 2 years ago

I/flutter (20214): email-auth >> Initialising Email-Auth server I/flutter (20214): email-auth >> Remote server is not available -- using test server -- I/flutter (20214): email-auth >> ❗ Warning this is not reliable on production I/flutter (20214): email-auth >> The remote server configurations are valid I/flutter (20214): --- Package Error --- I/flutter (20214): Unable to access server. 😑 I/flutter (20214): --- End Package Error ---

I have set up a production server following the instructions... still getting this error. Please let me know why.

Thanks in advance!

saran-surya commented 2 years ago

Hi @adarsh-kn , this is due to the refresh period in test servers, please refer this issue. Also you can set up a production server for a better reliable connection.

https://github.com/saran-surya/email_auth/issues/57#issuecomment-1003404033

Setting up a production server

https://saran-surya.github.io/email-auth-node/

adarsh-kn commented 2 years ago

Hey @saran-surya ,

I have already setup the production server following those steps mentioned in https://saran-surya.github.io/email-auth-node/

I am still getting an error as shown above.

I/flutter (20214): email-auth >> The remote server configurations are valid

This line confirms that my remote server configurations are valid.

I/flutter (20214): --- Package Error --- I/flutter (20214): Unable to access server. 😑 I/flutter (20214): --- End Package Error ---

But I am getting this error. Don't know why

saran-surya commented 2 years ago

Can you please only post the remote server url ?

Also was it working fine until today ?

adarsh-kn commented 2 years ago

https://bmsce-foodies.herokuapp.com/

I set up the production server just yesterday.

saran-surya commented 2 years ago

https://bmsce-foodies.herokuapp.com/

I set up the production server just yesterday.

Yes the remote server is working, can you please post the heroku logs ?

saran-surya commented 2 years ago

Hi @adarsh-kn Is your issue resolve ?

adarsh-kn commented 2 years ago

Heyy @saran-surya , Everything is working perfectly fine now. Please don't mind me for replying a bit late. (Was busy developing my app). 😅 Really appreciate your quick support. 💯

saran-surya commented 2 years ago

Hello @adarsh-kn , thankyou. Have a great day✌🏽

rahulrajamani31 commented 2 years ago

sir iam also facing the same error my production server link is working properly ......... ----->https://emailauthserver.herokuapp.com/

But when i use this in my flutter code it showing 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 ---