boyter / searchcode

Official support channel for searchcode.com support issues and the like.
18 stars 3 forks source link

500 page when using API #15

Closed boyter closed 9 years ago

boyter commented 9 years ago

https://searchcode.com/api/codesearch_I/?per_page=1&lan=23&q=java.lang+StringBuilder+reverse

fails with an error code of 500 in the body, but not the HTTP response, yet the slightly broader query works perfectly:

https://searchcode.com/api/codesearch_I/?per_page=2&lan=23&q=java.lang+StringBuilder+reverse

boyter commented 9 years ago

Appears to be due to some some issue which has now gone but is now cached. Clearing the cache should resolve this but need to identify the underlying issue. Most likely a lack of hardware.

boyter commented 9 years ago

Flushed the cache. Need to look into not caching these as long as everything else although it means it makes things DDOS friendly. Best solution would be the fix the underlying issues.