You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you create a task with remote sources and specify an image URL, CVAT should make HTTP requests with a custom User-Agent header (for example, CVAT/2.3.0 (https://cvat.ai/)). Same for any other requests that CVAT makes (such as webhooks).
Current Behaviour
It uses a generic User-Agent header (currently python-requests/2.26.0).
Select "Remote sources" and enter https://upload.wikimedia.org/wikipedia/commons/thumb/f/f0/Bicolor_he-cat.JPG/1280px-Bicolor_he-cat.JPG into the textbox.
Press "Submit & Open" and watch it fail (see below for an explanation)
Context
I was trying to create a test task using images from Wikipedia, but it wasn't working. I eventually found that the Wikimedia Foundation has a user agent policy that prohibits requests that use generic User-Agent strings.
I think we should comply with this policy. It would allow downloading images from Wikipedia (and any websites with similar policies), and it would be helpful for website administrators who want to know who downloads their images.
Your Environment
Reproduced with app.cvat.ai.
The text was updated successfully, but these errors were encountered:
My actions before raising this issue
Expected Behaviour
When you create a task with remote sources and specify an image URL, CVAT should make HTTP requests with a custom User-Agent header (for example,
CVAT/2.3.0 (https://cvat.ai/)
). Same for any other requests that CVAT makes (such as webhooks).Current Behaviour
It uses a generic User-Agent header (currently
python-requests/2.26.0
).Possible Solution
Self-explanatory.
Steps to Reproduce (for bugs)
https://upload.wikimedia.org/wikipedia/commons/thumb/f/f0/Bicolor_he-cat.JPG/1280px-Bicolor_he-cat.JPG
into the textbox.Context
I was trying to create a test task using images from Wikipedia, but it wasn't working. I eventually found that the Wikimedia Foundation has a user agent policy that prohibits requests that use generic User-Agent strings.
I think we should comply with this policy. It would allow downloading images from Wikipedia (and any websites with similar policies), and it would be helpful for website administrators who want to know who downloads their images.
Your Environment
Reproduced with app.cvat.ai.
The text was updated successfully, but these errors were encountered: