Skip to content

Tag: node.js

Send Image from subdomain Express.js

Lets say I have this for local testing. This gets a file based on a path to the file of course. Now lets say that the img folder is actually the folder to the subdomain, and I wanted to send the image from the subdomain itself, so instead of the api requesting to the main site aka mysite.com, it would

Unexpected token, expected , (8:21)

So I’m working with this code for a blockchain mining class And I keep getting this error Unexpected token, expected , (8:21), for this line: Any help will be appreciated! Answer Try Using this Seems to me like you key:value pairs are not properly formatted.. The code in probably taking this above line …