mlooney

mlooney

Ash Framework: favicon annoyances

Users going through the book on safari, at least, get a bunch of annoying errors about favicon missing on each page load:

[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /apple-touch-icon-precomposed.png (TunezWeb.Router)
    (tunez 0.1.0) deps/phoenix/lib/phoenix/router.ex:465: TunezWeb.Router.call/2
    (tunez 0.1.0) lib/tunez_web/endpoint.ex:1: TunezWeb.Endpoint.plug_builder_call/2
    (tunez 0.1.0) deps/plug/lib/plug/debugger.ex:155: TunezWeb.Endpoint."call (overridable 3)"/2
    (tunez 0.1.0) lib/tunez_web/endpoint.ex:1: TunezWeb.Endpoint.call/2
    (phoenix 1.8.0-rc.3) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
    (bandit 1.7.0) lib/bandit/pipeline.ex:131: Bandit.Pipeline.call_plug!/2
    (bandit 1.7.0) lib/bandit/pipeline.ex:42: Bandit.Pipeline.run/5
    (bandit 1.7.0) lib/bandit/http1/handler.ex:13: Bandit.HTTP1.Handler.handle_data/3
    (bandit 1.7.0) lib/bandit/delegating_handler.ex:18: Bandit.DelegatingHandler.handle_data/3
    (bandit 1.7.0) lib/bandit/delegating_handler.ex:8: Bandit.DelegatingHandler.handle_continue/2
    (stdlib 6.2.2) gen_server.erl:2335: :gen_server.try_handle_continue/3
    (stdlib 6.2.2) gen_server.erl:2244: :gen_server.loop/7
    (stdlib 6.2.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3

[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /apple-touch-icon.png (TunezWeb.Router)
    (tunez 0.1.0) deps/phoenix/lib/phoenix/router.ex:465: TunezWeb.Router.call/2
    (tunez 0.1.0) lib/tunez_web/endpoint.ex:1: TunezWeb.Endpoint.plug_builder_call/2
    (tunez 0.1.0) deps/plug/lib/plug/debugger.ex:155: TunezWeb.Endpoint."call (overridable 3)"/2
    (tunez 0.1.0) lib/tunez_web/endpoint.ex:1: TunezWeb.Endpoint.call/2
    (phoenix 1.8.0-rc.3) lib/phoenix/endpoint/sync_code_reload_plug.ex:22: Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4
    (bandit 1.7.0) lib/bandit/pipeline.ex:131: Bandit.Pipeline.call_plug!/2
    (bandit 1.7.0) lib/bandit/pipeline.ex:42: Bandit.Pipeline.run/5
    (bandit 1.7.0) lib/bandit/http1/handler.ex:13: Bandit.HTTP1.Handler.handle_data/3
    (bandit 1.7.0) lib/bandit/delegating_handler.ex:18: Bandit.DelegatingHandler.handle_data/3
    (bandit 1.7.0) lib/bandit/delegating_handler.ex:8: Bandit.DelegatingHandler.handle_continue/2
    (stdlib 6.2.2) gen_server.erl:2335: :gen_server.try_handle_continue/3
    (stdlib 6.2.2) gen_server.erl:2244: :gen_server.loop/7
    (stdlib 6.2.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3

While obviously not your fault, and easily fixable by the reader who knows what is going on, it might be worth the effort to add the various favicons that browsers attempt to fetch into the GitHub repo. I’m sure other browsers do the same too.

First Post!

sevenseacat

sevenseacat

Author of Ash Framework

I haven’t actually seen that at all during development, and I don’t see it in Safari now either :thinking:

Let me look into it. The favicon names look familiar, but I thought you would have to configure them in the HTML, which we’re not doing…

Where Next?

Popular Pragmatic Bookshelf topics Top

raul
Page 28: It implements io.ReaderAt on the store type. Sorry if it’s a dumb question but was the io.ReaderAt supposed to be io.ReadAt? ...
New
AleksandrKudashkin
On the page xv there is an instruction to run bin/setup from the main folder. I downloaded the source code today (12/03/21) and can’t see...
New
Chrichton
Dear Sophie. I tried to do the “Authorization” exercise and have two questions: When trying to plug in an email-service, I found the ...
New
AndyDavis3416
@noelrappin Running the webpack dev server, I receive the following warning: ERROR in tsconfig.json TS18003: No inputs were found in c...
New
curtosis
Running mix deps.get in the sensor_hub directory fails with the following error: ** (Mix) No SSH public keys found in ~/.ssh. An ssh aut...
New
fynn
This is as much a suggestion as a question, as a note for others. Locally the SGP30 wasn’t available, so I ordered a SGP40. On page 53, ...
New
brunogirin
When I run the coverage example to report on missing lines, I get: pytest --cov=cards --report=term-missing ch7 ERROR: usage: pytest [op...
New
hazardco
On page 78 the following code appears: <%= link_to ‘Destroy’, product, class: ‘hover:underline’, method: :delete, data: { confirm...
New
AufHe
I’m a newbie to Rails 7 and have hit an issue with the bin/Dev script mentioned on pages 112-113. Iteration A1 - Seeing the list of prod...
New
taguniversalmachine
Hi, I am getting an error I cannot figure out on my test. I have what I think is the exact code from the book, other than I changed “us...
New

Other popular topics Top

brentjanderson
Bought the Moonlander mechanical keyboard. Cherry Brown MX switches. Arms and wrists have been hurting enough that it’s time I did someth...
New
AstonJ
There’s a whole world of custom keycaps out there that I didn’t know existed! Check out all of our Keycaps threads here: https://forum....
New
AstonJ
Thanks to @foxtrottwist’s and @Tomas’s posts in this thread: Poll: Which code editor do you use? I bought Onivim! :nerd_face: https://on...
New
AstonJ
Do the test and post your score :nerd_face: :keyboard: If possible, please add info such as the keyboard you’re using, the layout (Qw...
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
New
New
New
New
DevotionGeo
I have always used antique keyboards like Cherry MX 1800 or Cherry MX 8100 and almost always have modified the switches in some way, like...
New

Sub Categories: