ybabts
Explore posts from serversCannot access web server from other network devices when compiled
Yes I believe you can choose for the server to listen on a specific host name, just use the host name 0.0.0.0 instead of the default 127.0.0.1. But I'd have to test it later and try and replicate your problem.
10 replies
not sure why this code is erroring
Whatever object you're destructuring in the
then
statement, the name property isn't always a string, hence the error. You should log the output of the object you're destructuring to confirm this. The solution would be to type check name and videos to ensure that they are the proper types before attempting to write them to a file.13 replies