-
Notifications
You must be signed in to change notification settings - Fork 174
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
Twitter Profile Images Not Scraped #2012
Comments
That's seems like a fair compromise :) |
The issue is getting the raw profile picture url. |
That was super quick thanks! :) |
Hey @skjnldsv don't have time to investigate rn but looks like instagram is broken too? May be worth looking into. :) |
I can confirm insta is broken. when I took a look I saw a 429 (too many requests) and thought it was because of my background sync job being (too) active. Maybe worth a second opinion. |
@call-me-matt don't think its a 429 for me, but a login-page blocker instead :( I've just created #2016 to discuss. |
Describe the bug
When trying to use the "Get from twitter" button to assign profile photos from a twitter link, the user is shown a "Avatar download failed" error message, and the logs show the following:
This is because twitter requires a valid user agent header to be supplied. For example, try the following:
The response shows "This browser is no longer supported" (which is what is being presented to nextcloud currently).
However, if we provide the following instead...
...the correct response is returned.
TLDR; We need to include a browser header in the request in order to correctly scrape the twitter page due to changes in twitter's browser handling.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The twitter pfp should be correctly scraped.
Actual behavior
The previously described error appears.
Screenshots
N/A
Server configuration
Operating system: Ubuntu
Web server: Nginx
Database: Postgres
PHP version: 7.4
Nextcloud version: 19.0.6
Contacts version: 3.4.3
Updated from an older Nextcloud or fresh install: Updated from older
Nextcloud log
data/nextcloud.log
The text was updated successfully, but these errors were encountered: