{"action":"created","issue":{"url":"https://api.github.com/repos/bugdone/headshotbox/issues/213","repository_url":"https://api.github.com/repos/bugdone/headshotbox","labels_url":"https://api.github.com/repos/bugdone/headshotbox/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/bugdone/headshotbox/issues/213/comments","events_url":"https://api.github.com/repos/bugdone/headshotbox/issues/213/events","html_url":"https://github.com/bugdone/headshotbox/issues/213","id":347709290,"node_id":"MDU6SXNzdWUzNDc3MDkyOTA=","number":213,"title":"Refresh Steam data not working","user":{"login":"clugg","id":14860421,"node_id":"MDQ6VXNlcjE0ODYwNDIx","avatar_url":"https://avatars3.githubusercontent.com/u/14860421?v=4","gravatar_id":"","url":"https://api.github.com/users/clugg","html_url":"https://github.com/clugg","followers_url":"https://api.github.com/users/clugg/followers","following_url":"https://api.github.com/users/clugg/following{/other_user}","gists_url":"https://api.github.com/users/clugg/gists{/gist_id}","starred_url":"https://api.github.com/users/clugg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clugg/subscriptions","organizations_url":"https://api.github.com/users/clugg/orgs","repos_url":"https://api.github.com/users/clugg/repos","events_url":"https://api.github.com/users/clugg/events{/privacy}","received_events_url":"https://api.github.com/users/clugg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-08-05T15:52:09Z","updated_at":"2018-08-14T08:31:54Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi,\r\nRecently I've found that the refresh player data button doesn't work anymore (up until the last month, it was perfect). However, if I attempt to view an individual user (or match, or the user list on the front page) when the data is stale, the request works for those specific users only. I've tested manually by dumping all of the steamids stored in the SQLite database (3421 apparently, although I remember having at least 5000 in the \"refreshed X players\" console message) and attempting to query the API with them, which returns a 400 bad request.\r\n\r\nMy working theory is that requests to the Steam API have some fixed maximum length which is being exceeded with the calls headshotbox is making. I noticed that you are using a dependency called 'watt' to make the API requests and can't see any obvious splitting of requests in either watt nor headshotbox's code, although I'm not great at reading clojure.\r\n\r\nInterestingly enough nothing shows up in the logs despite this line:\r\nhttps://github.com/bugdone/headshotbox/blob/fe8e4d2e7a1fdb7bc6fa335458f3862c699a3684/src/hsbox/steamapi.clj#L16\r\n\r\n`18-08-05 15:34:57 clug-PC INFO [hsbox.handler:148] - Refresh players steam info`\r\n\r\nI also manually changed the timestamps of all steamids in the database to 0 to ensure that they were stale, but still nothing.\r\nThanks."},"comment":{"url":"https://api.github.com/repos/bugdone/headshotbox/issues/comments/412796129","html_url":"https://github.com/bugdone/headshotbox/issues/213#issuecomment-412796129","issue_url":"https://api.github.com/repos/bugdone/headshotbox/issues/213","id":412796129,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjc5NjEyOQ==","user":{"login":"ajohnsen","id":1150113,"node_id":"MDQ6VXNlcjExNTAxMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1150113?v=4","gravatar_id":"","url":"https://api.github.com/users/ajohnsen","html_url":"https://github.com/ajohnsen","followers_url":"https://api.github.com/users/ajohnsen/followers","following_url":"https://api.github.com/users/ajohnsen/following{/other_user}","gists_url":"https://api.github.com/users/ajohnsen/gists{/gist_id}","starred_url":"https://api.github.com/users/ajohnsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajohnsen/subscriptions","organizations_url":"https://api.github.com/users/ajohnsen/orgs","repos_url":"https://api.github.com/users/ajohnsen/repos","events_url":"https://api.github.com/users/ajohnsen/events{/privacy}","received_events_url":"https://api.github.com/users/ajohnsen/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T08:31:54Z","updated_at":"2018-08-14T08:31:54Z","author_association":"CONTRIBUTOR","body":"It seems like i might have the same problem still, and that NumberFormatException is a different problem. When i click the refresh steam data button nothing happens.\r\n\r\nI can see in the network tab that the delete sent to api/steamids/info gets a 404, could that be the cause of the problem? "}}
{"actor":{"display_login":"ajohnsen"}}