We used heroku to host an app, which was built by using java and dagger. Even though heroku deployment was successful, but none of the data (in the java code for testing) was stored in MongoDB atlas. We tried the following ways, but cannot find out a solution.
- We test running build locally. The data were stored in MongoDB successfully.
- We opened up the ip access with anywhere.
- We run heroku log -tails, and everything seems fine.
What possible problems did we encounter? How can we fix them? Thank you.