Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Migrating Scout from 11 to 22 - Error when importing custom fonts from WEB
Migrating Scout from 11 to 22 - Error when importing custom fonts from WEB [message #1854714] Sat, 03 September 2022 06:35 Go to next message
Seydou Zakou is currently offline Seydou ZakouFriend
Messages: 43
Registered: May 2020
Member
Hi all,

When migrating from scout 11 to 22, we have the following error because of custom font import from google fonts
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)
Emitted 'error' event on ClientRequest instance at:
    at TLSSocket.socketErrorListener (node:_http_client:442:9)
    at TLSSocket.emit (node:events:526:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -54,
  code: 'ECONNRESET',
  syscall: 'read'
}


The part of our code that generate the error is following. There is no error if we comment it.
body, .outline-title, .desktop-tool-box-item.menu-item, .table-header-item, .form > .header > .title, .menubar > .menubox > .menu-item.menu-button.default-menu:not(.disabled), input, textarea, button,.tab-item, .desktop-tab.simple-tab > .title {
   @import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400&display=swap');
   font-family: 'Rubik', sans-serif;
 }


Re: Migrating Scout from 11 to 22 - Error when importing custom fonts from WEB [message #1856394 is a reply to message #1854714] Thu, 08 December 2022 12:03 Go to previous messageGo to next message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 201
Registered: November 2010
Senior Member
This doesn't seem to be related to Scout. The error is thrown by the node process compiling your LESS files. Looks like an SSL issue. Are you behind a firewall? Can you call the URL manually in your browser?

It is also possible that you need to adjust the LESS syntax. Here are some links that might help you:



Regards,
Beat
Re: Migrating Scout from 11 to 22 - Error when importing custom fonts from WEB [message #1856839 is a reply to message #1856394] Thu, 05 January 2023 10:35 Go to previous message
Seydou Zakou is currently offline Seydou ZakouFriend
Messages: 43
Registered: May 2020
Member
Thank you for response.

The work around we found for now was to download the font and put it in WebContent/fonts folder.
Previous Topic:Scout application in single war
Next Topic:Backend client bean and dependency injection in services
Goto Forum:
  


Current Time: Sat Feb 24 10:51:02 GMT 2024

Powered by FUDForum. Page generated in 0.01707 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top