Seeing this error in the Firefox console on a page with a datatables table (e.g. admin/z3950servers.pl) Fout bij brontoewijzing: Error: request failed with status 404 Bron-URL: https://dev.rijkskoha.nl:28443/intranet-tmpl/lib/datatables/datatables.min_20.0600037.js Brontoewijzings-URL: pdfmake.min.js.map Compare with an older mention of this error from bug 15400: > I'm getting a different error that I'm not sure how to fix > > Source map error: Error: request failed with status 404 > Resource URL: > http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_19.1200060. > js > Source Map URL: pdfmake.min.js.map I am kind of lost in datatables land. It is a nightmare component imo.
But on catalogue/detail.pl too etc.
Created attachment 116587 [details] [review] Bug 26471: Remove invalid Map URL There is a warning in the console: Error en el mapeo fuente: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data URL del recurso: http://kohadev-intra.mydnsname.org:8081/intranet-tmpl/lib/datatables/datatables.min_20.1200011.js URL del mapa fuente: pdfmake.min.js.map https://developer.mozilla.org/en-US/docs/Tools/Debugger/Source_map_errors
I'm not seeing this error on my setup (Ubuntu 18.04, Firefox Developer Edition and v87 (64 bit edition).
Created attachment 119247 [details] [review] Bug 26471: Remove invalid Map URL There is a warning in the console: Error en el mapeo fuente: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data URL del recurso: http://kohadev-intra.mydnsname.org:8081/intranet-tmpl/lib/datatables/datatables.min_20.1200011.js URL del mapa fuente: pdfmake.min.js.map https://developer.mozilla.org/en-US/docs/Tools/Debugger/Source_map_errors Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Created attachment 119248 [details] [review] Bug 26471: Remove invalid Map URL There is a warning in the console: Error en el mapeo fuente: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data URL del recurso: http://kohadev-intra.mydnsname.org:8081/intranet-tmpl/lib/datatables/datatables.min_20.1200011.js URL del mapa fuente: pdfmake.min.js.map https://developer.mozilla.org/en-US/docs/Tools/Debugger/Source_map_errors Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Created attachment 119249 [details] [review] Bug 26471: Remove invalid Map URL There is a warning in the console: Error en el mapeo fuente: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data URL del recurso: http://kohadev-intra.mydnsname.org:8081/intranet-tmpl/lib/datatables/datatables.min_20.1200011.js URL del mapa fuente: pdfmake.min.js.map https://developer.mozilla.org/en-US/docs/Tools/Debugger/Source_map_errors Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Created attachment 119250 [details] [review] Bug 26471: Remove invalid Map URL There is a warning in the console: Error en el mapeo fuente: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data URL del recurso: http://kohadev-intra.mydnsname.org:8081/intranet-tmpl/lib/datatables/datatables.min_20.1200011.js URL del mapa fuente: pdfmake.min.js.map https://developer.mozilla.org/en-US/docs/Tools/Debugger/Source_map_errors Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
oop.. I was getting 504 responses in git-bz, but it looks like the patches were actually getting through in the end anyway! This does resolve the problem (Can be seen in the console in Chrome 89). I wonder however, if rather than edit the file directly we should use the datatables builder to grab an up to date copy of the files?
Created attachment 120695 [details] [review] Bug 26471: Remove invalid Map URL There is a warning in the console: Error en el mapeo fuente: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data URL del recurso: http://kohadev-intra.mydnsname.org:8081/intranet-tmpl/lib/datatables/datatables.min_20.1200011.js URL del mapa fuente: pdfmake.min.js.map https://developer.mozilla.org/en-US/docs/Tools/Debugger/Source_map_errors Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Pushed to master for 21.05, thanks to everybody involved!
Pushed to 20.11.x for 20.11.06
Pushed to 20.05.x for 20.05.12
Not backported to oldoldstable (19.11.x). Feel free to ask if it's needed.