[OSM-dev] Random server errors on API (custom install)

Grant Slater openstreetmap at firefishy.com
Thu Aug 30 11:01:35 BST 2012


On 30 August 2012 04:41, Jan Schejbal <jan.mailinglisten at googlemail.com> wrote:
> Hi,
> when calling the API on a custom server to get some data like this:
>   http://example.com:3000/api/0.6/map?bbox=8.19,49.83,9.208,50.373
> I sometimes get a result, and sometimes I just get a server error (code
> 500) with the following message:
>  NameError: uninitialized constant XMLEncoding::UTF_8
>
> However, it seems that hard-reloading the map page
> (http://example.com:3000/ in this case) "fixes" the error for some time.
> Restarting the server seems to bring the issue back. Waiting a few hours
> seems to do too.
>
> Does anyone have any ideas what can cause this, or how I can help debug
> this issue? I could imagine it to have something to do with some XML
> library not being properly loaded.
>

According to this entry:
http://wiki.openstreetmap.org/wiki/Talk:The_Rails_Port#Two_problems_I_encountered...
It is likely due to a missing (or broken) Gem install.

/ Grant



More information about the dev mailing list