-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fetching tweets in a list + mediaKeys error #23
Comments
Thanks for flagging @roblack! This is usually a decoding key error (i.e. I've written the name or type for a decoding key incorrectly) and can be debugged by trying to manually decode the response object in a breakpoint in the |
Weirdly, the only error I found was related to the |
great input @daneden! I will try to pinpoint it by examining the response as you noted above too, and see if I can come up with something. As a note, the response with the issue was present ONLY when the same mediaKey is used. Without it the response reads fine. |
While working on an app I encountered an issue while trying to retrieve URLs for images users posted in a tweet.
Specifically
.mediaKeys(mediaFields: [\.url])
expansion in the array is the one that causes the issue.The response we receive prints and
UnknownError
which actually contains a model which seems ok?! 🤷♂️The same request without the .mediaKeys value returns 👌.
Below is a method I used to retrieve the list tweets.
The text was updated successfully, but these errors were encountered: