I am trying to get events from my Calendar. I walked through all tutorials and searched through internet, but it seems like i am the only one who get the error. My calendar oppened for everyone. **ClientId**, **Api key**, **DISCOVERY\_DOCS** and **SCOPES** are correct, because i purposly made them wrong to check. Also i tried to change **calendarId** from 'primary' to actual calendar id, which is my email address. Same story. I **am** signed in and approved, so it is not the problem for sure. There **are** events in my Calendar, so it should have an array anyway. Looks like it doesn't get the array on some part of code and it is not possible for me to debug it step by step. At this point i completely don't understand what is wrong.

So the code straight from this tutorial [JavaScript Google Calendar](https://developers.google.com/calendar/api/quickstart/js), only CLIENT\_ID and API\_KEY changed, and there is no point inserting the same code here i guess.

[![enter image description here](https://i.stack.imgur.com/eqoL6.png)](https://i.stack.imgur.com/eqoL6.png)
[![enter image description here](https://i.stack.imgur.com/eMvkL.png)](https://i.stack.imgur.com/eMvkL.png)
[![enter image description here](https://i.stack.imgur.com/bWYc7.png)](https://i.stack.imgur.com/bWYc7.png)