fromthepage icon indicating copy to clipboard operation
fromthepage copied to clipboard

Bad record ID exception loading globe svg

Open saracarl opened this issue 1 year ago • 2 comments

We get a ton of these errors in the logs:

E, [2023-12-14T14:15:20.267594 #26696] ERROR -- : Bad record ID exception for params=<ActionController::Parameters {"controller"=>"display", "action"=>"read_work", "user_slug"=>"assets", "collection_id"=> "icons", "work_id"=>"globe", "format"=>"svg"} permitted: false> E, [2023-12-14T14:15:20.267899 #26696] ERROR -- : /home/fromthepage/deployment/releases/20231109191750/app/controllers/application_controller.rb:146:in `load_objects_from_params'

more than any other errors. It doesn't feel like spam, it feels like loading the globe icon in rails uses a bad route or something similar.

saracarl avatar Dec 14 '23 14:12 saracarl

This makes it hard to troubleshoot errors -- too much "noise".

saracarl avatar Dec 14 '23 14:12 saracarl

The current production log has 172K of these:

fromthepage@fromthepage:~/deployment/shared/config/environments$ grep globe ../../log/production.log | wc -l 172081

saracarl avatar Dec 14 '23 14:12 saracarl

This works in development but not in production, making me think that this may be an issue with the asset pipeline and image paths. This svg appears next to the language switcher in the application layout, but might also appear in the static landing pages which do not use the application layout.

benwbrum avatar May 19 '24 14:05 benwbrum