none
Unable to connect to Calendar/Mail through Outlook's APIs RRS feed

  • Question

  • In order to integrate an Outlook calendar into a project, I've looked at two tutorials provided by Microsoft for accessing a user calendar's events:


    Write a Node.js app to get Outlook mail

    https://dev.outlook.com/restapi/tutorial/node


    And 


    Node.js Sample for Calendar Sync with Office 365

    (from the links below)

    https://github.com/jasonjoh/node-calendar-sync

    https://www.youtube.com/watch?v=Sx46yCYPsek


    Using either of these independently, with a properly registered app (and corresponding app ID/password), has led to issues. 

    With the first, any account I attempt to read mail or calendar events from returns the following error after successfully generating cookie and user tokens: 

    • REST request returned 500; body: {"error":{"code":"ErrorInternalServerTransientError","message":"An internal server error occurred. Try again later."}

    With the second, after attempting to log in I am met with a Microsoft account error page that says:

    "We're unable to complete your request.
    Microsoft account is experiencing technical problems. Please try again later."

    It has been over a day and no change. I am trying to find any way to know whether this is truly an issue with Microsoft (as I can otherwise log in to my Outlook + Microsoft accounts) or some other issue I may be overlooking.  



    If it is an issue with Microsoft, I don't know if I can in good conscience implement this project using Outlook calendars if the service has such a likelihood to fail.


    Thursday, June 16, 2016 10:31 PM

All replies

  • Hi Vizwerks,

    This forum is used to discuss about Outlook developing issue, your issue is more related with Outlook rest api, I will move this thread to the more related forum.

    Reference: http://social.msdn.microsoft.com/Forums/en-US/home?forum=Office365forDevelopers

    Thanks for your understanding.

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.



    Friday, June 17, 2016 5:59 AM
  • Please firstly make sure you have set correctly the Node.js /O365 account environment :

    1.That you already have Node.js installed and working on your development machine.

    2.That you have an Office 365 tenant, with access to an administrator account in that tenant, OR an Outlook.com developer preview account.

    I have tested the above two tutorials and both work fine . Below test step is for your reference :

    #The first demo(https://dev.outlook.com/restapi/tutorial/node)

    1.     Register a new app at https://apps.dev.microsoft.com
      • Copy the Application Id and paste this value for the clientId value in authHelper.js
      • Click the Generate New Password button and copy the password. Paste this value for the clientSecret value in authHelper.js.
      • Click the Add Platform button and choose Web. Enter http://localhost:8000/authorize for the Redirect URI.
      • Click Save.
    2.     Open a command prompt to the directory where your files are located, and enter the following command for implementing OAuth2: npm install simple-oauth2
    3.  Enter the following command to install node-outlook library :npm install node-outlook
    4. Start working app :node index.js . Then you will get the result lke : listening on port:8000.
    5. Open localhost:8000 in browser . Sign in your account , authorize app permissions , and you will see the messages in your inbox .

    #The second demo (https://github.com/jasonjoh/node-calendar-sync )

    1.     Register a new app at https://apps.dev.microsoft.com
      • Copy the Application Id and paste this value for the clientId value in authHelper.js
      • Click the Generate New Password button and copy the password. Paste this value for the clientSecret value in authHelper.js.
      • Click the Add Platform button and choose Web. Enter http://localhost:3000/authorize for the Redirect URI.
      • Click Save.
    2.        Open a command prompt to the directory where your files are located, and enter the following command:   npm     install
    3.     start the app :  npm start
    4.     Open your browser and browse to http://localhost:3000. Sign in your account , authorize app permissions.


            

    Monday, June 20, 2016 5:25 AM
    Moderator