NixOS / nixos-search

Search NixOS packages and options
https://search.nixos.org
MIT License
418 stars 104 forks source link

Searches for OSM (Open Street Map) Packags return "Bad Body" #238

Closed charlesfsl closed 3 years ago

charlesfsl commented 3 years ago

When searching for osmgpsmap, or any shortened version such as osm, I get a "Bad Body" error with this message:

The Json.Decode.oneOf at json.hits.hits[6]['_source']['package_homepage'] failed in the following 2 ways: (1) Problem with the given value: [ "https://wiki.openstreetmap.org/wiki/osmconvert", "https://wiki.openstreetmap.org/wiki/osmfilter", "https://wiki.openstreetmap.org/wiki/osmupdate" ] Expecting null (2) Problem with the given value: [ "https://wiki.openstreetmap.org/wiki/osmconvert", "https://wiki.openstreetmap.org/wiki/osmfilter", "https://wiki.openstreetmap.org/wiki/osmupdate" ] Expecting a STRING

osmgpsmap is listed as a dependency of the gramps package for genealogy research.

garbas commented 3 years ago

@turboMaCk do you maybe have time to look at this. it looks like package_homepage is not only a string but can be a list of strings. I think we need to update our Page.Packagges.decodeResultItemSource.

turboMaCk commented 3 years ago

I will try to find time over the weekend. I have some issues with backpain for few last days so I'm forbidden to spent more than 8hrs in front of computer per day.

Note: This should be an update in search result type and relevant decoder + fixes related to these changes.

garbas commented 3 years ago

@turboMaCk oh man, take care of your back! this can wait.

charlesfsl commented 3 years ago

Yes, this can certainly wait @turboMaCk !

On Wed, Dec 2, 2020 at 8:56 AM Rok Garbas notifications@github.com wrote:

@turboMaCk https://github.com/turboMaCk oh man, take care of your back! this can wait.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NixOS/nixos-search/issues/238#issuecomment-737281296, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZD7TKIRHO6HTKEDDPI6PLSSZIRBANCNFSM4UFO7HQA .

-- Charles Suggs worker-owner, full stack developer @ FullSteam Labs http://fullsteamlabs.com +1.828.202.5300 <+18282025300> fax: +1.747.529.9375 <+17475299375> encrypt: 9A03 4B63 B969 DDD8 CE51 ADDB 7C17 2D8E 6E1C DBEA https://keys.openpgp.org/search?q=charles%40fullsteamlabs.com

Please direct messages requesting web/tech support to support@fullsteamlabs.com. Thanks!

FullSteam Labs will be closed Nov. 26, Nov. 27, Dec. 25, and Jan. 1. If you anticipate having needs near to those dates please let us know in advance.

FullSteam Labs stands in solidarity with Black Lives Matter https://blacklivesmatter.com/, proudly supports Southerners on New Ground https://southernersonnewground.org/, and endorses the Energy Innovation and Carbon Dividend Act https://energyinnovationact.org/ (H.R. 763).

turboMaCk commented 3 years ago

Sorry for delays. These health issues caught me completely off guard messing all my plans. Luckily it turned out not to be chronic and I feel completely fine again. Thanks for the report and patience @charlesfsl. https://github.com/NixOS/nixos-search/pull/255 should fix the issue.