Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration was working fine, but suddenly stopped working. #47

Open
julesmaregiano opened this issue Mar 31, 2023 · 1 comment
Open

Comments

@julesmaregiano
Copy link

Hello there,
I'm building a connection between my Rails app and Notion. I finished it 2 days ago and it worked as intended for ~24h... then stopped working:

  • I can successfully establish a new Notion API client with client = Notion::Client.new(token: '<secret Notion API token>')
  • Yes, my API key is fresh, Yes, my workspace is connected, Yes the database is shared.
  • When I call a Notion page NOTION_CLIENT.page(page_id: NOTION_ARTICLE_ID) the process just start buts blocks. I have no response, no error, and it never times out.
  • I tried creating another Integration, with fresh api key, etc., but no changes
  • Notion API status says it's all fine.
    Does anyone has any idea of what I could be doing wrong?
@phacks
Copy link
Owner

phacks commented Apr 5, 2023

Hello Jules, I unfortunately have no idea what could be the cause here—the fact that it worked, and then didn’t, is puzzling.

Here are a few experiments that could help zero in on the root cause:

  • If you use the same API token and page ID in a separate environment (the bin/console command in this repo, or an online environment like Replit), does it work?
  • If you restart the Rails server, does it work again? And if so, does it stop working again after some time?
  • Is the Rails app successfully making other 3rd party API calls when the Notion ones fail?

I’d be happy to pair on this if that helps—you know where to reach out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants