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

Error in get_mention_and_reply_notifications: Path /v2/mention-and-reply-notifications?limit=25 does not exist #747

Open
vsmelov opened this issue Dec 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@vsmelov
Copy link

vsmelov commented Dec 16, 2024

🐛 Bug Report

Error: Path /v2/mention-and-reply-notifications?limit=25 does not exist

Traceback (most recent call last):
  File "C:\Users\v\PycharmProjects\warpcast-sandbox\get_notifications.py", line 14, in <module>
    r = client.get_mention_and_reply_notifications()
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\v\PycharmProjects\warpcast-sandbox\.venv\Lib\site-packages\farcaster\client.py", line 650, in get_mention_and_reply_notifications
    response = self._get(
               ^^^^^^^^^^
  File "C:\Users\v\PycharmProjects\warpcast-sandbox\.venv\Lib\site-packages\farcaster\client.py", line 89, in _get
    raise Exception(response["errors"])  # pragma: no cover
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Exception: [{'message': 'Path /v2/mention-and-reply-notifications?limit=25 does not exist'}]

🔬 How To Reproduce

Run this

import os
from farcaster import Warpcast
from dotenv import load_dotenv

load_dotenv()
client = Warpcast(mnemonic=os.environ.get("MNEMONIC"))

if client.get_healthcheck():
    print("Connected API Warpcast")
else:
    print("Cannot connect to API Warpcast")
    exit(1)

r = client.get_mention_and_reply_notifications()
print(r)

Environment

  • OS: windows
  • Python version, get it with: 3.12
@vsmelov vsmelov added the bug Something isn't working label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant