Comments (4)
I think this has to do with a nitter end point not working. Changing to a different host seemed to work. Error code was a little unclear.
from discord-twitter-webhooks.
Hi, this should be fixed now.
I forgot to update the RSS feed before marking every entry as read. 🙃
from discord-twitter-webhooks.
After doing a pull and running poetry install I noticed a few updates
• Updating pydantic-core 2.4.0
• Updating pydantic 2.1.0
Now when I run the bot it crashes
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\MediaCenter\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\MediaCenter\Documents\discord_twitter\discord-twitter-webhooks\discord_twitter_webhooks\main.py", line 115, in <module>
@app.post("/feed")
^^^^^^^^^^^^^^^^^
File "C:\Users\MediaCenter\AppData\Local\pypoetry\Cache\virtualenvs\discord-twitter-webhooks-RQC6o9-p-py3.11\Lib\site-packages\fastapi\routing.py", line 706, in decorator
self.add_api_route(
File "C:\Users\MediaCenter\AppData\Local\pypoetry\Cache\virtualenvs\discord-twitter-webhooks-RQC6o9-p-py3.11\Lib\site-packages\fastapi\routing.py", line 645, in add_api_route
route = route_class(
^^^^^^^^^^^^
File "C:\Users\MediaCenter\AppData\Local\pypoetry\Cache\virtualenvs\discord-twitter-webhooks-RQC6o9-p-py3.11\Lib\site-packages\fastapi\routing.py", line 491, in __init__
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\MediaCenter\AppData\Local\pypoetry\Cache\virtualenvs\discord-twitter-webhooks-RQC6o9-p-py3.11\Lib\site-packages\fastapi\dependencies\utils.py", line 289, in get_dependant
add_param_to_fields(field=param_field, dependant=dependant)
File "C:\Users\MediaCenter\AppData\Local\pypoetry\Cache\virtualenvs\discord-twitter-webhooks-RQC6o9-p-py3.11\Lib\site-packages\fastapi\dependencies\utils.py", line 462, in add_param_to_fields
if field_info.in_ == params.ParamTypes.path:
^^^^^^^^^^^^^^
AttributeError: 'FieldInfo' object has no attribute 'in_'
I reverted poetry.lock and the requirements.txt file and it's running again
from discord-twitter-webhooks.
Thanks, I downgraded Pydantic to 2.0.3 and that seems to work.
tiangolo/fastapi#9709 (reply in thread) I guess we will have to wait for this before updating
from discord-twitter-webhooks.
Related Issues (20)
- Embed Link Directly to Twitter, not Nitter HOT 1
- Add an Additional Embed for Quote Tweets
- Embed Adjustments to Match Native Twitter Embeds
- Bot Disabled / Old Tweets Spamming Webhook HOT 5
- Image Gallery Embed Detached from Tweet Embed HOT 1
- UX: Add Feed Button
- Quote Tweets Always Display Nitter Links HOT 2
- Reply Tweets Missing From Feed
- Only 1 Tweet Posted per Feed Fetch HOT 7
- Send Tweets in Chronological Order
- Tweets matching two feeds, one with whitelist and one without, are posted to neither.
- In the logs, show which feed a tweet matches
- Custom Nitter Instance Not Working HOT 7
- REQUEST: Custom mention role per feed or "everyone"
- env sample
- Won't be able to enter the UI after setting up Docker
- Webhook status code 400
- Feature: support for other webhook clients
- support for https://twstalker.com/ and nitter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-twitter-webhooks.