hey, check if the title your looking for is nested under ‘properties’. printing out page_data might show the right structure. might be a mismatch in property names or version issues, try updating notion_client if needed
I encountered a similar issue recently and found that the problem was with the reliance on a method that didn’t match the current API structure. The page data may have nested properties that aren’t being correctly interpreted by get_title. In my experience, manually inspecting the JSON response helped to identify the correct key associated with the title. Adjusting the code to extract this value directly, rather than through a presumed method, resolved the error. It is also beneficial to verify compatibility with the most recent version of the client library.