Closed pieterlukasse closed 5 years ago
seems to be an issue on the public portal only. Is working on my local installation.
hm...portal seems to be down. This is how profile page looks now
Thanks @pieterlukasse. I can confirm the behaviour (spinning wheel does not stop spinning). .
Will look into it...
It must be an issue affecting only specific areas - Google Analytics shows that people are visiting and using the website as we speak
Screenshot taken at 13:54 on 15 January 2019
@mkarmona is looking into this. Apparently it is a "rate limit from the API code side, which should be removed".
Should be back to normal @pieterlukasse. Let us know how you get on.
is working again :+1: What was the issue?
@afaulconbridge has noticed a traffic spike of requests with header user Agent: "Open Targets Python Client/3.1.0".
@mkarmona has redeployed a new version without auth and rate limiting. It seems to work but do let us know if it misbehaves in the future.
ok, thanks!
To expand a bit on @deniseOme diagnosis, it seems that a user was using the Open Targets Python client to script against the API at about 200 requests per second for several minutes. In turn, this miss-triggered old partially disabled code relating to authentication and rate limiting (see http://blog.opentargets.org/2017/11/06/discovering-drug-targets-gets-faster-our-api-upgrades-to-v3/ ) which effectively shut out all users. This was because it had been disabled by making all access belong to a single user and giving that user a very high rate limit (but clearly one that wasn't high enough!).
To solve it, @mkarmona cleaned up and removed any of the old authentication code - which is really what should have happened in the first place!
thanks @afaulconbridge . Is there a link to the PR that fixes this? I have this issue locally and am wondering whether I could cherry-pick the fix.
See screenshot below:
Error details: