Arquisoft / radarin_en1b

0 stars 1 forks source link

RestAPi deployment not working in heroku #112

Closed albertodb99 closed 3 years ago

albertodb99 commented 3 years ago

image Without doing nothing, the deployment of the RestAPI in Heroku stays the same, but the code in local works, so this error should not be happening... can someone help?

albertodb99 commented 3 years ago

image After logging what it was receiving as mongo connection, this was obtained

albertodb99 commented 3 years ago

But when trying to establish a mongo connection from atlas, this is our connection string: image @pglez82 should we change the secret then?

pglez82 commented 3 years ago

It doesn't make sense to me to change the secret if the database, mongo user and password didn't change. What I would do is change the connection string locally (replace mongodb://localhost:27017) to the one that you are logging to see if you get the same error locally. Then we can test things faster. If it also fails locally, find out the proper connection string and once it works locally against the mongo cloud db, update the secret with the new value. It should work the same in heroku.

albertodb99 commented 3 years ago

There was a mistake with the password, it was changed yesterday, now it deploys correctly, and it works fine with our mobile application. Thanks Pablo! :)