GithubHelp home page GithubHelp logo

notion2googlecal's Issues

CalendarID missing required parameter

Hi, i've added in my calendar id (tried multiple) in the variables but when I run the code after successfully authorizing it says that I'm missing required parameter "calendarID" even though I've inserted it (as a string) there.

TypeError and AttributeError

  1. TypeError

Traceback (most recent call last):
File "/Users/harry/Documents/Notion Google calander intergration/notion2googlecal-master/main.py", line 326, in
main("request")
File "/Users/harry/Documents/Notion Google calander intergration/notion2googlecal-master/main.py", line 64, in main
events_result = service.events().list(calendarId=calendar_id,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/googleapiclient/discovery.py", line 1018, in method
raise TypeError('Missing required parameter "%s"' % name)
TypeError: Missing required parameter "calendarId"

The above error shows when line 64 is the following
events_result = service.events().list(calendarId=calendar_id,

The bug disappear when I replace the "calendar_id" to the actual calendar id found in Google Calendar.

  1. AttributeError
    The programme ask for the notion account and password, after typing it in the console, the following appears:

Traceback (most recent call last):
File "/Users/harry/Documents/Notion Google calander intergration/notion2googlecal-master/main.py", line 326, in
main("request")
File "/Users/harry/Documents/Notion Google calander intergration/notion2googlecal-master/main.py", line 79, in main
calendar = client.get_collection_view(notion_cal)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/notion/client.py", line 211, in get_collection_view
if url_or_id.startswith("http"):
AttributeError: 'NoneType' object has no attribute 'startswith'

I can't solve the problem, and hope you can help me.

Thank you very much. :) Harry

If you wanna contact me via email, [email protected]

Invalid Input

Hello!

I followed all the setup instruction, installed the dependencies, authorise the application ...
When I run the script, I have this error which seems to be related to notion dependency:

Traceback (most recent call last):
  File "/Users/user/notion2googlecal/main.py", line 326, in <module>
    main("request")
  File "/Users/user/notion2googlecal/main.py", line 82, in main
    notion_events = calendar.collection.get_rows()
  File "/usr/local/lib/python3.9/site-packages/notion/collection.py", line 178, in get_rows
    return self.query(**kwargs)
  File "/usr/local/lib/python3.9/site-packages/notion/collection.py", line 175, in query
    return CollectionQuery(self, self._get_a_collection_view(), **kwargs).execute()
  File "/usr/local/lib/python3.9/site-packages/notion/collection.py", line 314, in execute
    self._client.query_collection(
  File "/usr/local/lib/python3.9/site-packages/notion/client.py", line 217, in query_collection
    return self._store.call_query_collection(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/notion/store.py", line 338, in call_query_collection
    response = self._client.post("queryCollection", data).json()
  File "/usr/local/lib/python3.9/site-packages/notion/client.py", line 183, in post
    raise HTTPError(
requests.exceptions.HTTPError: Invalid input.

Do you know how I could save this problem ? I would be more than happy to help for the investigation.

Thanks !

HTTP 400 error

I have everything setup as described but for some reason I keep getting this error when trying to sync. If you have any ideas how to fix it plz help! Really wanna get this to work.
Screen Shot 2021-05-08 at 1 39 43 PM

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.