quer / the-steam-awards

Steam multi account module/event (get updates when event for steam)
95 stars 13 forks source link

SyntaxError: Unexpected token '<' #20

Closed stickerx closed 3 years ago

quer commented 3 years ago

As the error start whit. <!DOCTYPE html> that means that is what steam return in the url requst, if steam have a bad day. as log as you have not chance any thing in the module. just try to rerun it.

the url that it request, shoud return a json object. but it return the html for a page not found. only comes if the url if wrong, or steam is heavy loaded

stickerx commented 3 years ago

Thanks for the response

It was working fine before, but now every time I want to turn it on it shows the error

quer commented 3 years ago

Seeing the command you entered. are you sure that the login info is right. And that you have called NPM install. normal it will console log "Connected to Steam." where it tell that is will try to login to steam. But i cant tell why it shoud run the modules, if it did not login to steam. have you change the code in any way? beside line 13. Make sure you have the same code as the github Repositorie

stickerx commented 3 years ago

I do not change anything but all other modules run very well

but when I change

modules.push(require('./modules/events/salequeue'));

to

modules.push(require('./modules/queue'));

its work very well