When DuckPAN makes an API request, we should better indicate when the request fails (and maybe when it's successful) but mostly DuckPAN should probably stop execution and let the developer know.
For example after purposely breaking the URL for the NPM Spice, the DuckPAN server doesn't display anything on the page but if you look very closely in the terminal output you'll see that the request returned a 500 Error:
When DuckPAN makes an API request, we should better indicate when the request fails (and maybe when it's successful) but mostly DuckPAN should probably stop execution and let the developer know.
For example after purposely breaking the URL for the NPM Spice, the DuckPAN server doesn't display anything on the page but if you look very closely in the terminal output you'll see that the request returned a 500 Error:
I think when the request isn't a success, the DuckPAN Server should stop (or at the very least make it obvious what went wrong) and notify the user clearly that the request failed. Here's the code the would need to be updated: https://github.com/duckduckgo/p5-app-duckpan/blob/master/lib/App/DuckPAN/Web.pm#L146-166