question

API-0510 avatar image
0 Votes"
API-0510 asked API-0510 commented

When trying to subscribe to my MSGraph message event i get an error


Hi everyone i'm doing this tutorial https://docs.microsoft.com/en-us/graph/tutorials/azure-functions
I'll leave the steps i'm doing after finishing the tutorial.

I created an app function in portal.Azure
![121747-image.png][1]
2.-Then I replace ngrokUrl value to my app function url
![121715-image.png][3]
3.- I started debugging, WHEN using ngrok, my subscription shows up correctly but when replacing ngrok value for my app function url.
In this part i get an error saying this.
121734-image.png
If someone could help me i'd appreciate it.


[3]: /answers/storage/attachments/121689-image.png

azure-functionsmicrosoft-graph-mailmicrosoft-graph-notifications
image.png (274.7 KiB)
image.png (57.8 KiB)
image.png (57.8 KiB)
image.png (286.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

nikomix avatar image
0 Votes"
nikomix answered API-0510 commented

And Object which you are trying to access, is null (a non initialized object) - can you please ensure, that graphClient is not null at the breakpoint?


Based on the code from: https://docs.microsoft.com/en-us/graph/tutorials/azure-functions?tutorial-step=4 this get's initialized above from the _clientService.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

no, is not null, is never null, when i'm testing with localhost i have no problem but with my azure url i can't subscribe

0 Votes 0 ·