Skip to content

Object reference not set to an instance of an object #7

@thomps0

Description

@thomps0

Where did you get the code?

Describe the bug
I've tried both following the tutorial, as well as downloading from GitHub and have what I believe is the same error that the other user posted. Currently can pull new messages, but on subscribing an email address I'm left with an "Object reference not set to an instance of an object" error. It fails out on azurefunctions.js:59 and does so every time.

Error on the web page is: Call to SetSubscription returned 500 "Internal Server Error"

Error in the console is:
[2021-05-14T17:28:38.394Z] Executed 'Notify' (Succeeded, Id=6a4ec2e3-f68e-4a4e-aa28-431bcb4f75a5, Duration=4ms)
[2021-05-14T17:28:39.069Z] Executed 'SetSubscription' (Failed, Id=13cfe347-1cde-4e97-80b8-011ab221e9fc, Duration=1801ms)
[2021-05-14T17:28:39.071Z] System.Private.CoreLib: Exception while executing function: SetSubscription. Microsoft.Graph.Core: Object reference not set to an instance of an object.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Subscriptions
  2. Enter an email address
  3. Click Subscribe
  4. See error

Expected behavior
Should subscribe the email.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome, Firefox and Edge (happens in all browsers)
  • Version [e.g. 22]

Dependency versions

  • Authentication library (MSAL, etc.) version:
  • Graph library (Graph SDK, REST library, etc.) version:

Additional context
Function Runtime Version: 3.0.15417.0
.NET SDK 5.0.202 (x64)
Running this from PowerShell using Azure Command Line
Editor: Visual Studio Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs author feedbackWaiting for author (creator) of issue to provide more infono recent activityIssue or PR is stale (no recent activity)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions