You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue does not occur on my desktop PC, but on my weaker and older laptop (where I'm hosting my app), the loadImage() method can fail with a Request timed out error (at simple-get/index.js:75:8). I can resolve this issue myself by going into node modules and setting a 10 second timeout in either the simple-get module itself or the node-canvas module where simple-get is being called (canvas > lib > image.js), but obviously this isn't ideal because my modification can get overwritten when I update my dependencies. The loadImage() method has an options parameter, but I don't think this options parameter has anything to do with the options you can set for simple-get. If there is a way to set a timeout without locally editing simple-get or node-canvas, please enlighten me. I was able to get around this issue by rewriting my code to load the images in a slightly different way, but I'd appreciate being able to set a timeout.
Environment
Version of node-canvas: 2.11.2
Environment: node 21.4.0 on Ubuntu Server
The text was updated successfully, but these errors were encountered:
Issue
Issue does not occur on my desktop PC, but on my weaker and older laptop (where I'm hosting my app), the
loadImage()
method can fail with aRequest timed out
error (at simple-get/index.js:75:8). I can resolve this issue myself by going into node modules and setting a 10 second timeout in either the simple-get module itself or the node-canvas module where simple-get is being called (canvas > lib > image.js), but obviously this isn't ideal because my modification can get overwritten when I update my dependencies. TheloadImage()
method has an options parameter, but I don't think this options parameter has anything to do with the options you can set for simple-get. If there is a way to set a timeout without locally editing simple-get or node-canvas, please enlighten me. I was able to get around this issue by rewriting my code to load the images in a slightly different way, but I'd appreciate being able to set a timeout.Environment
The text was updated successfully, but these errors were encountered: