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

cast created with post_cast disappears after 24h #739

Open
gabrielfior opened this issue May 7, 2024 · 1 comment
Open

cast created with post_cast disappears after 24h #739

gabrielfior opened this issue May 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gabrielfior
Copy link

🐛 Bug Report

The method post_cast creates a cast, however it disappears after a given period of time (24h).

🔬 How To Reproduce

Steps to reproduce the behavior:

# farcaster = "^0.7.11"
c2 = Warpcast(private_key="MY-PRIVATE-KEY")
cast = c2.post_cast("test cast")
cast_hash = cast.cast.hash
print (f"cast_hash {cast_hash}")
# ... Wait 24h
c2 = Warpcast(private_key="MY-PRIVATE-KEY")
cast = c2.get_cast(cast_hash)
$ Error
    c2.get_cast(cast.cast.hash)
  File "/home/gabrielfior/miniconda3/envs/PMA/lib/python3.10/site-packages/farcaster/client.py", line 338, in get_cast
    response = self._get(
  File "/home/gabrielfior/miniconda3/envs/PMA/lib/python3.10/site-packages/farcaster/client.py", line 89, in _get
    raise Exception(response["errors"])  # pragma: no cover
Exception: [{'message': 'Cast 0xabdea1ff98521bef0c1f5e24ef0461ae21d91805 does not exist'}]

For example, the post with hash 0xabdea1ff98521bef0c1f5e24ef0461ae21d91805 was created 1 day ago and now it doesn't exist anymore.

Code sample

See above

Environment

  • OS - Linux (Ubuntu)
  • Python version - Python 3.10.14

Screenshots

📈 Expected behavior

I expected the cast to be stored permanently and be available for later retrieval.

@gabrielfior gabrielfior added the bug Something isn't working label May 7, 2024
@butulkus
Copy link

butulkus commented Jul 6, 2024

get_cast don't work rn(probably they changed endpoint url).
you should try to access your cast by hubble https://docs.farcaster.xyz/reference/hubble/httpapi/casts

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

2 participants