-
Notifications
You must be signed in to change notification settings - Fork 15
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
IQDB 403 error on upload page #360
Comments
It's a very long-standing issue, I'm actually quite surprised this is the first report here on GitHub, or how nobody's ever took the time to fix it. I took a look ages ago, I think the problem was something along the lines of re621 providing the IQDB endpoint with a local file path instead of uploading the file, which obviously won't work, resulting in an error. It's worth noting that it functions perfectly fine when using URL uploading, which is generally recommended for many other reasons too. |
This may or not be an issue because I never sat down and tried to figure out how to pass on the local file over to IQDB. |
I wrote a fix, but there are some limitations due to the nature of querying with a file, since it requires using a POST request instead of a GET request. I couldn't add a "Duplicates Found" link that linked to Likewise, I couldn't add any additional reverse image search links in Finally, I couldn't figure out why the Ultimately, those issues are minimal or beyond the scope of the weird 403 error, which has been resolved. |
Considering that I was only expecting, at most, for the check to be disabled when posting a local upload so the error wouldn't show, even a partially working or roundabout way to get an actual dupe check done would be above and beyond. Thanks for your hard work! |
Expected behaviour
The userscript attempts to check for duplicate images when the user selects a file for upload. I assume it's intended to warn the user if there's a hit.
Actual behaviour
https://i.imgur.com/qrfR6BY.png
When file is selected, displays error message: "IQDB: Internal Error 403 Forbidden" with a retry link that doesn't resolve the issue.
I'm seeing this behaviour on
Browser + Userscript Manager e.g. Tampermonkey on Google Chrome v80.
Tampermonkey on Waterfox G6.0.8(current)
Steps to reproduce
Just try to upload a picture in the upload form. I haven't tried it using URL uploading.
https://e621.net/iqdb_queries works. Queries to IQDB from other extensions work. The image is correctly checked when hitting submit and blocked if a duplicate is found, so there's nothing going really wrong.
The text was updated successfully, but these errors were encountered: