Skip to content
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 is broken #3605

Closed
BrokenEagle opened this issue Apr 6, 2018 · 6 comments
Closed

IQDB is broken #3605

BrokenEagle opened this issue Apr 6, 2018 · 6 comments

Comments

@BrokenEagle
Copy link
Collaborator

http://danbooru.donmai.us/iqdb_queries?post_id=3000000

ActiveRecord::RecordNotFound exception raised
Couldn't find Post without an ID
app/logical/iqdb/download.rb:36:in `find_similar'
app/controllers/iqdb_queries_controller.rb:53:in `create_by_post'
app/controllers/iqdb_queries_controller.rb:13:in `show'

http://danbooru.donmai.us/iqdb_queries.json?post_id=3000000
{"success": false, "message": "That record was not found"}

I did a random sampling of several different posts and it seems to affect most of them, however, for whatever reason, post 1 still works...
http://danbooru.donmai.us/iqdb_queries.json?post_id=1
[ ]

@BrokenEagle BrokenEagle changed the title IQDB find by post is broken IQDB is broken Apr 6, 2018
@BrokenEagle
Copy link
Collaborator Author

Actually, looking at it more closely, even using the URL option doesn't have any success.

https://danbooru.donmai.us/iqdb_queries.json?url=https://i.pximg.net/img-original/img/2017/04/12/21/34/19/62379051_p2.jpg
https://danbooru.donmai.us/iqdb_queries.json?url=https://danbooru.donmai.us/data/1bc43bae7883ea5a3a88549949a3668b.jpg

The above is both the full-size image on Danbooru and the original source image for post #3077014. They both give the same message as before.
{"success": false, "message": "That record was not found"}

@evazion
Copy link
Member

evazion commented Apr 6, 2018

This error is because iqdb is returning post ids that don't exist on Danbooru. Which is weird, because I know post #3076791, post #3076792, and post #3076793 were working when I wrote #3386 (comment). That was only 8 hours ago, yet now they're not working.

@r888888888
Copy link
Collaborator

r888888888 commented Apr 6, 2018

It might be an associated record that isn't being found. Those post ids exist in the database and don't appear to be deleted.

@BrokenEagle
Copy link
Collaborator Author

Oh yeah, the reason why post 1 is "working" is because the thumbnail for that post is broken giving a 403 HTTP error. So in that case it wouldn't be returning post IDs, and so Line 43 would get executed.

@r888888888
Copy link
Collaborator

I think I just had to restart IQDB. It seems to be returning responses now.

@r888888888
Copy link
Collaborator

This is fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants