Giter Club home page Giter Club logo

Comments (2)

eiximenis avatar eiximenis commented on May 19, 2024

Hi!
Please enable application logs on Azure Portal for this website. Select the AppService, go to "Monitoring" -> Diagnostics logs & Enable Application Logging (filesystem) and Level "verbose".
Then restart the AppService

Now you can go to MONITORING -> Log Stream and you'll see the log of the AppService.
Connect using mobile app or postman and hopefully you'll see the error in the Log Stream.

Thx!

from bikesharing360_mobileapps.

SunnyMukherjee avatar SunnyMukherjee commented on May 19, 2024

Thank you for the tip! That tip helped me track down what else I needed to configure to get the My Rides section of the app to show data.

Here is the screenshot of my working app in the simulator:

image

So what was the error? I found out that the "restify" package was not installed during the deployment. I googled around and found out that I needed to run "npm install" manually to install the packages. I may not have had Visual Studio configured correctly with NodeJS and NPM to install the packages in the Rides project before deployment. So I had to do it manually.

Here are the extra manual steps in case anyone else runs into the same problem.

  1. Open the BikeSharing.Services.Deploy.sln.
  2. Go to BikeSharing.Services.Rides project.
  3. Open the package.json.
  4. Edit the version so it looks like the following: "version": "1.0.0". Otherwise, the NPM command will not run properly.
  5. Open the same project in Windows Explorer.
  6. Open a command-line prompt.
  7. Run "npm install".
  8. Return to the project in Visual Studio. You should see the npm folder in the Rides project populated with the installed packages. Right click on the Rides project and republish it.
  9. Go to the Rides App Service in Azure.
  10. Go to Monitoring -> Diagnostic Logs -> Enable Application Logging -> Level: Verbose.
  11. Restart the App Service.
  12. Start PostMan or start the app.
  13. You should see data in the My Rides section.
  14. Go to Log Stream. You should see the SQL queries that get run.

I hope this helps. Maybe the administrators of this project should create a troubleshooting section and add such steps in the ReadMe file.

Thank you

from bikesharing360_mobileapps.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.